View Single Post
  #1   Spotlight this post!  
Unread 08-02-2012, 00:09
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 : 08-02-2012 at 20:34.
Reply With Quote