|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: How fast does your camera tracking run? | |||
| 1-3 hz |
|
2 | 3.39% |
| 3-6 |
|
7 | 11.86% |
| 6-9 hz |
|
4 | 6.78% |
| 9-12 hz |
|
17 | 28.81% |
| 12-15 hz |
|
7 | 11.86% |
| 15-18 hz |
|
1 | 1.69% |
| 18-21 hz |
|
6 | 10.17% |
| 21-24 hz |
|
2 | 3.39% |
| 24-27 hz |
|
1 | 1.69% |
| 27-30 hz |
|
12 | 20.34% |
| Voters: 59. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Speed of the camera
Hmmm, I wonder what the transmission rate of the DIO pins are .....
|
|
#2
|
|||||
|
|||||
|
Re: Speed of the camera
The GPIO inputs are sampled at 173KHz according to the GDC. Don't know about output rate (probably the same?).
|
|
#3
|
|||
|
|||
|
Re: Speed of the camera
My code can process 1000 640x480 images per second.
EDIT: I'm sorry. ~.00012 seconds was the time difference. It's actually about 10000 images at 160x120. I'll post the time for 640x480 tomorrow. -TheDominis Last edited by TheDominis : 30-01-2009 at 23:40. Reason: Number Changes |
|
#4
|
|||||
|
|||||
|
Re: Speed of the camera
I'm curious to know what your code is doing with the image, and what information it provides to the rest of the program when it has done its processing. What language is it written in, and would you consider sharing it?
|
|
#5
|
|||
|
|||
|
Re: Speed of the camera
I won't share it. I'm using C++ and my code provides accurate data to be used by our cannon.
-TheDominis Last edited by TheDominis : 30-01-2009 at 23:15. |
|
#6
|
|||
|
|||
|
Re: Speed of the camera
Pics or it didn't happen.
|
|
#7
|
|||
|
|||
|
Re: Speed of the camera
WE NEED HELP!
My team is testing it's camera and it sees the colors just fine. The problem we are having is that even the camera sees the color it won't track the color using the servos. Does anyone know what's going on? ![]() |
|
#8
|
|||
|
|||
|
Re: Speed of the camera
Make sure the servo channels match your wiring, make sure the channels you are using have jumpers, make sure your RSL light on your digital sidecar is steady green. All of these are necessary for the servos to move under computer control.
Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: Speed of the camera
How are you guys checking the frequency? What we see so far is just the framerate which is currently at 7.5fps, which is not tat great.
|
|
#10
|
|||
|
|||
|
Re: Speed of the camera
I've just tested 640x480 and it takes ~.0008 seconds for each image. 1250 images per second.
-TheDominis |
|
#11
|
||||
|
||||
|
Re: Speed of the camera
I find that extremely hard to believe since the camera can only support up to 30 Frames per second, which means it can receive 1 image at every ~0.0333 seconds, and thats the MAX possible by the Axis 206.
BTW, whats everyone's framerate running at? |
|
#12
|
|||
|
|||
|
Re: Speed of the camera
I am processing the same image more than once. I disabled the timestamp checking to see how many per second I could process.
-TheDominis |
|
#13
|
|||
|
|||
|
Re: Speed of the camera
Quote:
![]() |
|
#14
|
|||
|
|||
|
Re: Speed of the camera
Because I was curious as to how much running image processing on a faster processor would speed it up, I tried it on an (admittedly extremely slow - probably under 2 ghz) laptop and got a framerate of 20 at a res of 320x240. This was just a simple loop of getImage; with simple processing (threshold, fill holes, get measurements of particles), it didn't really slow down. At 160x120 it was more like 30 fps. Since it was running locally, outputting the image didn't slow it down.
Something I'm curious about is what the actual framerate of the axis 206 is - ie, not what the specs say, but what it can actually serve. The laptop - running xp - was reporting cpu usage around a consistent 10% or so, so either it was the network - 100 megabit ethernet (12.5 megabytes/sec) or the cpu onboard the camera is too slow to deliver at higher speeds. I could probably have sped the processing up a bit by running it in separate loops communicating through a global var so it could utilize both processors. Actually, best performance could (I think) be gotten by using a dual core and decoding and processing in one, and acquiring images in another processor/thread. Based on the results I've gotten, the network/camera seems to be a major bottleneck at higher resolutions, unless much more of the cpu was being used than what was shown. Tomorrow I'll try with the priority set to framerate and see if there's a difference. Does anyone have something they've written to test the bmp image retrieval capability? I would be interested in tweaking/changing that and posting any changed or improved code... Otherwise, I'll just post any code for it that I come up with. -jonathan |
|
#15
|
|||
|
|||
|
Re: Speed of the camera
The camera framerate is often limited by the amount of available light. If you reproduce the test, be sure to aim the camera at the ceiling, or at the lights. You should see the framerate go up. Then aim it at dark stuff, or mostly cover the lens and it should go down. Oddly, when you put your finger over the lens to make the camera go completely dark, it usually falls somewhere in between, presumably it gives up on a decent exposure.
If you set the exposure priority to framerate, the lower light images will get a higher framerate, but will be grainier. I've wrote and retested the BMP stuff just the other day. The framerate was miserable. Greg McKaksle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Speed of axis camera | nickmagus | C/C++ | 6 | 18-01-2009 18:25 |
| Drive Control, Wheel Speed Calibration, and Rapid Speed Changes | 7-11number1 | Programming | 3 | 23-01-2008 20:36 |
| Tell the difference: 2007 CMU Camera, 2006, 2005 camera? | Chris_Elston | Programming | 2 | 07-01-2008 13:11 |
| What speed do you surf the net? Take the test! | Elgin Clock | IT / Communications | 77 | 30-03-2005 16:28 |
| problems mounting the camera to the 'bot with the default servo/mount set up | Redneck | Programming | 0 | 16-02-2005 20:53 |