|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
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)
|
|
#2
|
||||
|
||||
|
Re: What Java code is required to run a USB camera?
|
|
#3
|
||||
|
||||
|
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"); } |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
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. Last edited by Cobra Commander : 10-01-2015 at 22:20. |
|
#6
|
||||
|
||||
|
Re: What Java code is required to run a USB camera?
Quote:
|
|
#7
|
||||
|
||||
|
Re: What Java code is required to run a USB camera?
The WebDashboard was just proof that it was being detected we are trying to view it from the Driver Station. What "View" tab are you talking about?
|
|
#8
|
||||
|
||||
|
Re: What Java code is required to run a USB camera?
This is the SmartDashboard. I have attached a photo of how to add the USB Webcam Viewer.
|
|
#9
|
||||
|
||||
|
Re: What Java code is required to run a USB camera?
Quote:
|
|
#10
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|