View Single Post
  #1   Spotlight this post!  
Unread 26-01-2012, 23:36
Glen Glen is offline
Registered User
FRC #1444
 
Join Date: Jan 2012
Location: St. Louis
Posts: 5
Glen is an unknown quantity at this point
How to capture image from Axis 206 and save to cRIO?

Hi, I am a beginner programmer for Team 1444, and we are trying to capture an image from the Axis camera and then save it to the cRIO. I have seen some other posts around, but looking through the FIRST documentation, we can't seem to figure out how that would work. We have the live video streaming correctly to the driver station, and we are using c++. We don't care where the image is saved to (the home directory is fine). Would anyone be able to provide some advice and/or a code example which would be much appreciated?

By the way, we directly took the code from FIRST's WPILib Guide for the 2012 Vision System, and it seems like this line is what saves the image, but we never find the image in the cRIO's file system(ftp://10.14.44.2):

HSLImage *targetImage = new HSLImage("/testImage.png"); // create image

I am unsure as to what this is supposed to be doing, but it looks like this should save the image , right? What could be wrong?

Last edited by Glen : 26-01-2012 at 23:55. Reason: incorrect wording
Reply With Quote