View Single Post
  #9   Spotlight this post!  
Unread 15-02-2014, 03:33
sailorjoe sailorjoe is offline
Mentor, RoboEagles, FWHS
AKA: Joe Hafner
FRC #4579 (RoboEagles)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Auburn, WA
Posts: 10
sailorjoe is an unknown quantity at this point
Re: Vision sample code

Hi, SparkyShires. This might help, but my apologies if this is redundant. I spent two days trying to get an image. I'd start the the sample code, see about ten thousand error lines, shut down the code, and continue to debug the program. Eventually I realized that the first image took almost five seconds to materialize, and about 25 ms for each image thereafter. So unless you wait around for at least 5 seconds to get an image, your report size will be zero.

It's also possible to take a perfectly good image, and with thresholding and filtering, make all the pixels go away. You can see if this is happening by using your favorite web browser to FTP into the cRIO. In the URL window, type in "ftp://10.xx.yy.2", without the quotes. If you've captured images, they'll show up in the cRIO directory. By the way, you have to refresh the browser when you have a new image captured.
Good luck!
Reply With Quote