Go to advanced search

by rleonardi
Wed Jan 17, 2018 6:35 pm
Forum: Graphics programming
Topic: GUI toolkit based on OpenVG or OpenGL ES
Replies: 6
Views: 2341

Re: GUI toolkit based on OpenVG or OpenGL ES

Yes, also C++ could be fine.
by rleonardi
Wed Jan 17, 2018 5:14 pm
Forum: Graphics programming
Topic: GUI toolkit based on OpenVG or OpenGL ES
Replies: 6
Views: 2341

Re: GUI toolkit based on OpenVG or OpenGL ES

Hi Topguy,

>> Which programming language(s) ?
C

Thanks
by rleonardi
Wed Jan 17, 2018 4:30 pm
Forum: Graphics programming
Topic: GUI toolkit based on OpenVG or OpenGL ES
Replies: 6
Views: 2341

GUI toolkit based on OpenVG or OpenGL ES

Dear All, I've been working with OpenVG for a while and I really like it. Now I have to develop a GUI. I would like to use OpenVG. Could you possibly let me know: - What are good GUI toolkits based on OpenVG? - Is OpenVG a valid 2D rendering engine for GUI or should I look for something else, for ex...
by rleonardi
Mon Jul 10, 2017 5:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 1-Wire: writing to w1_slave?
Replies: 0
Views: 350

1-Wire: writing to w1_slave?

Dear all, I'm succesfully reading DS18B20 temperature by applying open() and read() functions to the corresponding /sys/devices/w1_bus_master1/<unique identifier>/w1_slave file. QUESTION: Is it possible to change the resolution, ie. to act on the scratchpad of the sensor, by using write() on the sam...
by rleonardi
Sat May 20, 2017 12:46 pm
Forum: Camera board
Topic: Using threads in C for reducing picamera dropped frames
Replies: 10
Views: 1585

Re: Using threads in C for reducing picamera dropped frames

Hi catubc,
Strobbing code is working surprisingly well ... lighting every single frame usually within 15usec or less of a new frame.
I'm trying to do something similar.

Could you possibly share your code?

Thank you.
Ciao
by rleonardi
Mon Mar 06, 2017 3:58 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

Hi,
Yes, I tried gpu_freq=400 and force_turbo=1 in config.txt and it really makes the difference.
Thanks
by rleonardi
Fri Oct 14, 2016 11:16 am
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

I can see that Arc() takes about 400:500 usecs and Polygon() takes about 250:300 usecs. Are these time consume values the ones expected? Am I doing something wrong in configuring OpenGL or something else? By looking into libshapes.c, I can see that: - Arc() calls newpath() and vguArc(), instead of c...
by rleonardi
Thu Oct 13, 2016 4:12 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

>> That all depends on what your program is doing. Is it doing a lot of drawing each frame? I would say no. For ex, for each loop I call n.9 times Arc() and n.9 times Polygon() (the polygon is a triangle), and it takes more than 10000usec. >> Also, did you re-build your program with the new library ...
by rleonardi
Thu Oct 13, 2016 2:37 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

By testing, the very most time consuming function seems to End(), that is eglSwapBuffer(). For ex, if I put n.2 consecutive calls of End() (instead just the one), the time of each loop is n.2 times. If I put n.3 consecutive calls of End(), the time of each loop is n.3 times.
by rleonardi
Thu Oct 13, 2016 2:06 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

Hi Paeryn, I migrated to jessie, updated ("sudo apt-get update", "sudo apt-get dist-upgrade", "sudo reboot") and reinstalled shapes by following the instruictions in https://github.com/paeryn/openvg/tree/windowsave. The time performarnces of my application have not changed. Any further suggestions? ...
by rleonardi
Wed Oct 12, 2016 4:50 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

>> Ahh, you're still on Wheezy, that's old. On an RPi3 too? :cry: Yes. I just moved the SD card from RPi2 to RPi3. Moreover, in /etc/apt/sources.list I can see "deb http://mirrordirector.raspbian.org/raspbian/". So I think this is why I'm not getting the 2.6-2rpi1rpi1g_armhf.deb from archive.raspbe...
by rleonardi
Wed Oct 12, 2016 3:07 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

Hi Paeryn, pi@raspberrypi ~/openvg $ apt-cache policy libfreetype6-dev libfreetype6-dev: Installed: 2.5.2-2rpi1rpi1 Candidate: 2.5.2-2rpi1rpi1 Version table: *** 2.5.2-2rpi1rpi1 0 500 http://archive.raspberrypi.org/debian/ wheezy/main armhf Packages 100 /var/lib/dpkg/status 2.4.9-1.1+deb7u3 0 500 ht...
by rleonardi
Wed Oct 12, 2016 1:40 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

Hi Paeryn, I'm trying to use the Shape library as in https://github.com/paeryn/openvg/tree/windowsave. I'm getting an error. By executing the following commands: sudo apt-get update sudo apt-get dist-upgrade sudo reboot sudo apt-get install libjpeg8-dev indent libfreetype6-dev ttf-dejavu-core libfon...
by rleonardi
Wed Oct 12, 2016 8:59 am
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

Re: How to increase OpenVG time performances

Hi Paeryn,
Thank you very much for all the information.
I'll immediately try the changes like "creating the paths at the beginning", etc.
Ciao
by rleonardi
Tue Oct 11, 2016 5:45 pm
Forum: OpenVG
Topic: How to increase OpenVG time performances
Replies: 17
Views: 13106

How to increase OpenVG time performances

Hi all, I've been using OpenVG on RPi3 just for few weeks, so I am a very beginner about it. I'm not reaching "good" time performances for my specific application. Could you possibly answer the following questions: - Do specific OpenVG (or other) settings exist to increase time performances? I tried...
by rleonardi
Mon Aug 01, 2016 12:17 pm
Forum: Troubleshooting
Topic: Display problems after updating
Replies: 2
Views: 529

SOLVED Display problems after updating

SOLVED
Dear Fruitoftheloom,
Yes, it worked well.
Thank you very much.
Ciao
by rleonardi
Mon Aug 01, 2016 11:18 am
Forum: Troubleshooting
Topic: Display problems after updating
Replies: 2
Views: 529

Display problems after updating

Dear all, I'm using Raspberry Pi2 and Raspberry official Touch Display 7". They worked fine. This morning I updated Raspbian by using "sudo rpi-update". After reboot and "startx", the menu bar of the desktop started to flicker and the Start button is nolonger available. I tried also "sudo apt-get up...
by rleonardi
Sat May 07, 2016 2:21 pm
Forum: HATs and other add-ons
Topic: Industrial Grade Touch Display
Replies: 0
Views: 331

Industrial Grade Touch Display

Dear All,
Could you possibly tell me if industrial grade touch displays exist for Raspberry Pi, both small (for ex. 3.5", 4", etc) and "large" (for ex. 12", 15", etc)?
Thank you in advance.
Best regards.
Riccardo
by rleonardi
Tue Mar 22, 2016 4:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: n.3 UART RS232 by using Raspberry
Replies: 4
Views: 930

n.3 UART RS232 by using Raspberry

Hi,
I'm using Raspberry 2 B and I have to control n.3 devices by using RS232, but Pi only has one RS232 via GPIO.
Could you possibly tell me the best way to do this (possibly industrial grade)?
Thank you in advance.
Regards
by rleonardi
Tue Jan 26, 2016 1:57 pm
Forum: Camera board
Topic: Extracting colors
Replies: 8
Views: 880

Re: Extracting colors

Hi all, If a way does not exist to act on the debayer and encoding at GPU level, does a way exist to remove red, green and/or blue from the preview, for example acting on the way it is rendered on the screen. Surfing into the forums, I can see posts about raspiraw, etc. As far as I understand, it is...
by rleonardi
Tue Jan 26, 2016 11:35 am
Forum: Camera board
Topic: Extracting colors
Replies: 8
Views: 880

Re: Extracting colors

Hi, Please find the following results of my further testing according to your information. I think there is still a strange behaviour of the preview and of the jpg. Thanks ------------------------------------ pi@raspberrypi ~/code/userland/build $ sudo ./bin/raspistill -f -awb off -ss 50000 -awbg 2....
by rleonardi
Thu Jan 21, 2016 5:48 pm
Forum: Camera board
Topic: Extracting colors
Replies: 8
Views: 880

Re: Extracting colors

... Testing ... By using "-awb off -awbg 2.0, 0.0", the preview is black and the captured jpg is green. By using "-awb off -awbg 2.0, 0.01", the preview is red and the captured jpg is red. Why just a little +0.01 to the gain changes so much the behaviour? ...
Thanks
by rleonardi
Thu Jan 21, 2016 4:35 pm
Forum: Camera board
Topic: Extracting colors
Replies: 8
Views: 880

Re: Extracting colors

Hi,
By doing further testing, I see that by specifying "-awb off" and removing the awbg (0 gains should be used), the preview is completely black but the jpg is correctly created and the picture is completely green. Why the preview is black?
Thanks again
by rleonardi
Thu Jan 21, 2016 2:53 pm
Forum: Camera board
Topic: Extracting colors
Replies: 8
Views: 880

Extracting colors

Dear all, I am using Raspberry Pi 2 B, the Raspberry Camera Module and raspistill. I would like to remove the red, the green and/or the blue from the preview and from the jpg pictures. For example, to watch a preview which only contains the information generated by the green and blue photodetectors ...
by rleonardi
Fri Nov 27, 2015 10:09 am
Forum: General discussion
Topic: Raspberry Pi for industry
Replies: 10
Views: 2110

Re: Raspberry Pi for industry

Thank you everybody for your answers. I've searched into the forums but I'm not able to find official answers about: - Long-term-availability guarantee; - Industrial qualifications, eg shock, temperature, EMI. I've just sent an email to info@raspberrypi.org. Could you possibly tell me if you know ot...

Go to advanced search