![]() |
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 fpsThe error isn't fatal but it prevents us from opening up the java smart dashboard. Any ideas? Code:
usbCam = CameraServer.getInstance(); |
Re: USB Camera not working
We just encountered this identical error with a new COTS USB camera we would like to use for this season.
The roboRIO sends a single image to the smart dashboard when the code starts. Then the above error is spammed on the driver's station until the robot is shut off. The error is in the capture() method of the CameraServer class in the wpi library. This is the camera we're attempting to use. Is there a way to contact the wpilib team to report this bug? We really want to use this camera in particular because of its fisheye lens. Is there an alternate way to display a USB camera on the driver's computer? |
Re: USB Camera not working
Quote:
Hopefully I will find time to test it in the near future. We just bought that camera today so hopefully I can find a fix. |
Re: USB Camera not working
Quote:
|
Re: USB Camera not working
Quote:
|
Re: USB Camera not working
The code that I wrote for it but I still haven't tested it because we are getting ready to reassemble the electronics on our robot. Otherwise try this:
Make sure you name the usb cam in the roboRio web panel to the appropriate name ("cam1") Code:
public void robotInit() |
Re: USB Camera not working
Quote:
|
Re: USB Camera not working
Quote:
https://usfirst.collab.net/sf/go/art...=1455129586145 |
Re: USB Camera not working
I don't know if you heard back from the WPI developers but I got my camera to work again. It was throwing that error temporarily but by putting the quality down a bit and restarting the dashboard, it works perfectly again. I might suggest putting the FPS to 20 or 25 instead.
|
Re: USB Camera not working
Interesting... We decided to stream the camera through a Raspberry Pi instead. I'll try reducing the quality and framerate to see if we can replicate your results though.
|
| All times are GMT -5. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi