![]() |
What Java code is required to run a USB camera?
We have a Logitech c270 web cam, the WebViewer does detect the camera but I can not find sample code of what needs to accompany our new camera. (Java by the way)
|
Re: What Java code is required to run a USB camera?
|
Re: What Java code is required to run a USB camera?
Quote:
This is the initialization code copied exactly from our robot. I did verify that it is called "cam0". public void robotInit() { CameraServer server = CameraServer.getInstance(); server.setQuality(50); server.startAutomaticCapture("cam0"); } |
Re: What Java code is required to run a USB camera?
What do you mean by "the WebViewer does detect the camera"? Do you mean SmartDashboard? Is there a specific error? Pictures are always helpful.
|
Re: What Java code is required to run a USB camera?
Quote:
http://imgur.com/jzLsbAJ I have no errors because it does not appear. The roboRIO is detecting it I know this by looking at the 172.22.11.2 page. |
Re: What Java code is required to run a USB camera?
Quote:
|
Re: What Java code is required to run a USB camera?
Quote:
|
Re: What Java code is required to run a USB camera?
1 Attachment(s)
This is the SmartDashboard. I have attached a photo of how to add the USB Webcam Viewer.
|
Re: What Java code is required to run a USB camera?
How are you trying to access the camera feed? You will need to open the smart dashboard and add a USB camera viewer widget, or open the LabVIEW dashboard and switch the camera type to USB.
|
Re: What Java code is required to run a USB camera?
Quote:
|
| All times are GMT -5. The time now is 02:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi