Go to Post yesterday we completed our bot mechanically and let me tell you.... i was jumping up and down like a 12 year old girl going to a boy-band concert - Leav [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
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

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2009, 10:22
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,964
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Speed of the camera

Quote:
Originally Posted by StevenB View Post
You could use a couple of digital IO pins as a serial port. It's been done before...
Hmmm, I wonder what the transmission rate of the DIO pins are .....
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #2   Spotlight this post!  
Unread 29-01-2009, 10:42
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Speed of the camera

Quote:
Originally Posted by Daniel_LaFleur View Post
Hmmm, I wonder what the transmission rate of the DIO pins are .....
The GPIO inputs are sampled at 173KHz according to the GDC. Don't know about output rate (probably the same?).
  #3   Spotlight this post!  
Unread 30-01-2009, 21:26
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
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   Spotlight this post!  
Unread 30-01-2009, 22:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Speed of the camera

Quote:
Originally Posted by TheDominis View Post
My code can process 1000 640x480 images per second.
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   Spotlight this post!  
Unread 30-01-2009, 23:07
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
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   Spotlight this post!  
Unread 31-01-2009, 00:08
Zultraranger Zultraranger is offline
Registered User
FRC #0870
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New York
Posts: 112
Zultraranger will become famous soon enoughZultraranger will become famous soon enough
Re: Speed of the camera

Quote:
Originally Posted by TheDominis View Post
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
Pics or it didn't happen.
  #7   Spotlight this post!  
Unread 31-01-2009, 02:46
Robopanda6 Robopanda6 is offline
Registered User
FRC #2477
 
Join Date: Jan 2009
Location: Waipahu,HI
Posts: 18
Robopanda6 is an unknown quantity at this point
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   Spotlight this post!  
Unread 31-01-2009, 08:32
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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   Spotlight this post!  
Unread 31-01-2009, 09:03
Shamx's Avatar
Shamx Shamx is offline
Senior Programmer
AKA: Shamikul Amin
FRC #1241 (Theory6)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Arlington, TX
Posts: 2
Shamx is an unknown quantity at this point
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   Spotlight this post!  
Unread 31-01-2009, 11:48
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Speed of the camera

I've just tested 640x480 and it takes ~.0008 seconds for each image. 1250 images per second.

-TheDominis
  #11   Spotlight this post!  
Unread 31-01-2009, 15:45
Shamx's Avatar
Shamx Shamx is offline
Senior Programmer
AKA: Shamikul Amin
FRC #1241 (Theory6)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Arlington, TX
Posts: 2
Shamx is an unknown quantity at this point
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   Spotlight this post!  
Unread 31-01-2009, 18:38
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
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   Spotlight this post!  
Unread 01-02-2009, 12:37
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: Speed of the camera

Quote:
Originally Posted by TheDominis View Post
I am processing the same image more than once. I disabled the timestamp checking to see how many per second I could process.

-TheDominis
There is absolutely no point in doing that, other than to benchmark the cRIO using the imaq library. It has little use in tracking anything, other than to waste cycles that could be used by other parts of your program.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
  #14   Spotlight this post!  
Unread 01-02-2009, 22:26
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
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   Spotlight this post!  
Unread 01-02-2009, 23:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi