Go to advanced search

by guzunty
Wed May 25, 2016 8:14 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi moayedov, Sorry for the slow response, I've been away on business. > i did face detection Did you follow the OpenCV tutorial on face detection? If so, there is another tutorial in the same series that shows how to detect a sample image in a scene: http://docs.opencv.org/2.4/doc/tutorials/features...
by guzunty
Mon Oct 19, 2015 8:01 pm
Forum: Other projects
Topic: CPLD Programming over GPIO
Replies: 21
Views: 9451

Re: CPLD Programming over GPIO

Sorry, but gz_load, the Guzunty programmer, is based on public Xilinx code. I doubt that it would program an Altera device. I do know it is capable of programming a range of Xilinx CPLDs, but then you'd expect that wouldn't you. You're welcome to try and report back :) Debian's ok, what problems did...
by guzunty
Mon Oct 19, 2015 7:51 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi, sorry for the slow response. Hmmm, not sure what to suggest beyond the advice in the original article. Getting the colour mask value just right was very important, but I get the impression you have persevered with that. One thing I haven't previously mentioned was that I found the bounding recta...
by guzunty
Mon Jul 20, 2015 7:26 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Great news! Have fun and keep those questions coming if you see something you don't understand in the sample code.
by guzunty
Thu Jul 16, 2015 5:43 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Ok, couldn't resist having a quick look. Having upgraded and dist-upgraded, I am seeing what looks like a hang with trackingWithThreads on a Model B+. The Pi 2 looks to be working normally, and the B+ seems to be working OK with the single threaded version. Since I'd recommend the single threaded ve...
by guzunty
Thu Jul 16, 2015 4:14 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hmmm, I can't say that I have seen behaviour exactly like that. I have noticed that sometimes the windows can take a long time to start showing images, particularly the colour.py tuning code. I put that down to some stability problems inside OpenCV itself. The demo code is closely based on code from...
by guzunty
Sun Jul 12, 2015 5:52 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi diavolo, Sorry you're having a bit of trouble. I just cloned the Guzunty code without any errors. A quick Google about GH 403 gave me this: https://help.github.com/articles/https-cloning-errors/ I think trying to cut/copy/paste the '.so' file from the website will never work since its a binary. I...
by guzunty
Fri May 15, 2015 4:28 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi Pascal, I'm afraid haven't had time to go back and experiment more with the Pi NoIR camera. As I recall, I encountered the same issue as you have; being unable to get good range parameters. The behaviour was such that I concluded that there was some subtle difference in the data coming from the P...
by guzunty
Sat Feb 28, 2015 3:31 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

The modified tracking.py and the new multithreaded programs are now in GitHub for anyone who would like to reproduce my measurements. In case it is not obvious, tracking.py was used to produce the single threaded results and trackingWithThreads.py produced the multi threaded results. The latter uses...
by guzunty
Fri Feb 27, 2015 1:18 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Finally, the Pi 2: Pi 2 Single Thread AVG -> AQU: 0.024807, IRG: 0.004034, MSK: 0.062391, DCT: 0.120350, DEC: 0.009744, TTL: 0.210951, SPF: 0.511227 MAX -> AQU: 0.531965, IRG: 0.009787, MSK: 0.095889, DCT: 0.168232, DEC: 0.034217, TTL: 0.530957, SPF: 1.062964 MIN -> AQU: 0.010046, IRG: 0.003695, MSK...
by guzunty
Fri Feb 27, 2015 1:03 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Now the B+: B+ Single Thread AVG -> AQU: 0.017099, IRG: 0.013638, MSK: 0.102850, DCT: 0.180537, DEC: 0.018630, TTL: 0.357363, SPF: 0.600208 MAX -> AQU: 0.623729, IRG: 0.032538, MSK: 0.147921, DCT: 0.268542, DEC: 0.068043, TTL: 1.185496, SPF: 1.809293 MIN -> AQU: 0.010018, IRG: 0.008008, MSK: 0.08673...
by guzunty
Fri Feb 27, 2015 12:45 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

So here's the data for the A+: A+ Single Thread AVG -> AQU: 0.016508, IRG: 0.016409, MSK: 0.112361, DCT: 0.186243, DEC: 0.017875, TTL: 0.377341, SPF: 0.623902 MAX -> AQU: 0.518836, IRG: 0.036090, MSK: 0.165004, DCT: 0.403119, DEC: 0.046400, TTL: 1.142532, SPF: 1.661459 MIN -> AQU: 0.010041, IRG: 0.0...
by guzunty
Fri Feb 27, 2015 12:33 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

I promised a few weeks ago that I would grab some performance statistics from the symbol tracking OpenCV programs I presented in the MagPi. Well, now I have and I think they make for some interesting reading. First up some background info; I wasn't happy with the frame rates and latencies I was seei...
by guzunty
Wed Feb 25, 2015 12:13 pm
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 31923

Re: Guzunty Pi. New users start here.

May I ask how the wires are connected for the 7 segment driver example ? You certainly can and you are absolutely right, the LED display has no ground connection, this is intentional. A LED illuminates whenever current flows through it. It is a diode, so this will happen any time its anode is more ...
by guzunty
Mon Feb 23, 2015 10:14 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Yes absolutely, I don't know if it came across in the articles, but I would recommend anyone to build a robot, simply for the amount of new knowledge you acquire while doing it! I thought about streaming the data back to a host. Like you, I wasn't satisfied with the deadlines available when processi...
by guzunty
Mon Feb 23, 2015 9:24 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Yes, I'm sure things will be much faster! It is in my TODO list to characterise and quantify the performance of Raspberry Pi 2 platform with respect to OpneCV. I'll publish the results here when I get to it, but I am expecting very significant differences compared to a previous generation Pi. For su...
by guzunty
Tue Feb 10, 2015 8:39 am
Forum: Other projects
Topic: Guzunty Pi. New users start here.
Replies: 186
Views: 31923

Re: Guzunty Pi. New users start here.

We have seen a very few CPLDs that refuse to program, well under 1%.

I will PM you and arrange to get you a replacement device.

HTH,

Derek
by guzunty
Sun Feb 08, 2015 5:18 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Sorry for the delay, caused by Raspbian distro upgrade fallout which gave PiTeR a big headache. :-) It broke the python library I use to control the servos and LEDs. So having got that going again, I finally got around to measuring the time taken to execute inRange. On the Model B Pi mounted in PiTe...
by guzunty
Wed Feb 04, 2015 4:45 pm
Forum: General discussion
Topic: The Raspberry Pi 2 Q&A thread
Replies: 442
Views: 109573

Re: The Raspberry Pi 2 Q&A thread

jdb wrote:
guzunty wrote:
RaTTuS wrote:thread locking via different CPU cores ?
Can you run the same test on a Pi1 that is fully up to date?
Done. Fully updated B+ shows expected 1ms delay.

I can supply LA images if you need them.
by guzunty
Wed Feb 04, 2015 2:58 pm
Forum: General discussion
Topic: The Raspberry Pi 2 Q&A thread
Replies: 442
Views: 109573

Re: The Raspberry Pi 2 Q&A thread

thread locking via different CPU cores ? I didn't start any threads myself. I used Gert and Doms demo program here: http://elinux.org/RPi_Low-level_peripherals#C_2 to make the measurements. I just changed the sleep(1) to usleep(1000) and modified for the new peripheral base address. Of course, some...
by guzunty
Wed Feb 04, 2015 2:30 pm
Forum: General discussion
Topic: The Raspberry Pi 2 Q&A thread
Replies: 442
Views: 109573

Re: The Raspberry Pi 2 Q&A thread

I am seeing a difference in behaviour of usleep between a B+ and Pi2.

Using a bitscope on non pi host I see 1ms on B+ but around 3ms on Pi2.

This is with a call to usleep(1000).

Has anyone else seen this or have I missed something?

[EDIT] Correction, I see 1ms on B+ and 28ms(!) on Pi2.
by guzunty
Fri Jan 30, 2015 11:06 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

PiTeR captures at 320 x 240:

self.cap.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 320)
self.cap.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 240)

(SymbolFinder.py around line 83)

Your measurement method looks fine.
by guzunty
Fri Jan 30, 2015 9:35 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi Johnathan, Yes, performance is definitely a challenge on the Pi compared to running it on an i7 or something. As you have said, image size is a big factor when tuning an OpenCV program. I will try to do some measurements on PiTeR and let you know what I get, but it's definitely quicker than 1s to...
by guzunty
Tue Dec 16, 2014 9:33 am
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi Steve, Two comments: 1) Note that rc.local is run as root, so your script will be too. This will affect the environment, including the paths. This could well be the reason you need the explicit script calls where you do. 2) While as you have seen, putting a modprobe in the script works, it is not...
by guzunty
Sat Dec 13, 2014 2:25 pm
Forum: Automation, sensing and robotics
Topic: PiTeR, OpenCV and MagPi issue 28
Replies: 47
Views: 10347

Re: PiTeR, OpenCV and MagPi issue 28

Hi Steve, LD_LIBRARY_PATH is not set in my default environment. I don't need it to launch PiTeR.py. I'm not in a position to test the OpenCV functionality right now, but it appears to start just fine and successfully opens the camera without error. I'm not sure why I recommended setting LD_LIBRARY_P...

Go to advanced search