I’m trying to get the Microsoft Lifecam HD-3000 camera working. Our team uses java, and our github is here. The problem stems from two places:
The option to add a USB webcam viewer as outlined in this article is not there. I’d assume this is because the article is out of date. What should I add to view the webcam in the Smart Dashboard?
This is the code that is often recommended to use:
CameraServer server = CameraServer.getInstance();
This code does not work. It throws an error because the method does not accept a single String (“cam0”). This can easily be resolved by removing the String, but then, how will the code identify the camera? I’d assume this example code that is thrown around often on these forums and by FIRST is outdated.
As of right now, all I’m getting is a black screen on the FRC dashboard. Could anyone provide any java code, or help regarding the FRC dashboard or our code? Thanks.