View Single Post
  #2   Spotlight this post!  
Unread 10-03-2012, 19:30
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Camera Code help

I didn't have time to look through your code, but I'm guessing you're not starting a seperate thread for the image processing. I believe our image processing took about a half second to process an image - which is a very long time if the rest of the robot is waiting for that to get done. So if you start a seperate thread to get the image and process it - the rest of the robot code can continue on until the image processing is done.
Another option, since you probably don't have much time to resolve this, is to only grab one image, process it and do what you need to do. Don't continuiously grab and process images.
Hope that helps a bit.

Dale Van Voorst
Reply With Quote