View Single Post
  #1   Spotlight this post!  
Unread 03-03-2015, 05:36 PM
JacobD's Avatar
JacobD JacobD is offline
Registered User
AKA: Jacob
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: New Jersey
Posts: 90
JacobD is an unknown quantity at this point
USB Camera not working

Hi, after updating all of the FRC java libraries, we're getting this error when we call the startAutomaticCapture() method on an instance of a CameraServer:

Code:
found mode 12: 320 x 240 JPEG 30.00 fps
Error when getting image from the camera: invalid image: could not find jpeg end 199999 at edu.wpi.first.wpilibj.CameraServer.capture(CameraServer.java:212)
edu.wpi.first.wpilibj.CameraServer$2.run(CameraServer.java:182)
Apparently it can't find the end of the jpeg images the camera is sending? The camera worked perfectly before we updated the libraries. We're using a logitech USB camera.

The error isn't fatal but it prevents us from opening up the java smart dashboard. Any ideas?

Code:
		usbCam = CameraServer.getInstance();
		usbCam.setQuality(100); //full-quality JPEG images. 100 is full quality
		usbCam.startAutomaticCapture("cam1");
Reply With Quote