View Single Post
  #1   Spotlight this post!  
Unread 01-22-2016, 12:28 PM
noahl98 noahl98 is offline
Registered User
FRC #1350
 
Join Date: Jan 2016
Location: Rhode Island
Posts: 1
noahl98 is an unknown quantity at this point
USB Camera giving Invalid Image error

My team has been trying to set up camera feedback through the dashboard using Java. I have added the sample code from the Simple Vision example in eclipse.
When I deploy the code to the rio and start up the driver station I get this error.
Code:
Error when getting image from the camera: invalid image at pos 56403 (0) at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:222) 
edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:192) 
java.lang.Thread.run(Thread.java:745)
This error keeps spamming the log until I disconnect from the rio.
We are using a Logitech C170 web cam. I know that this camera hasn't officially been tested but it was the only one we had access to. Does this error mean that this camera isn't compatible?
Reply With Quote