Go to Post What about "I h8 Autonomous Mode" (for the programmers who actually have to make the robots work)? - Tristan Lall [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-08-2012, 12:09 AM
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Camera Vision Processing

Hi,

in my code i have
Code:
public void operatorControl(){
  while(isenabled() && isOperatorControl()){

         ColorImage img = Camera.getImage();
          .....and then i do a bunch of processing after i get the image.

  }
}
How do I get the camera to only take a picture 5 times per second? Doesn't the loop repeat like once every 10ms? So wouldn't that mean that the code I have now would take a picture once every 10ms?

Last edited by 2869Robotics : 02-08-2012 at 08:34 PM.
Reply With Quote
 


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


All times are GMT -5. The time now is 07:44 AM.

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