Quote:
Originally Posted by Thad House
In your robot code, you have to use the CameraServer class, which will stream the images from your camera to your driver station. The robot does not do this by default.
|
Yep, I should have added that I am currently using this code(It is in Python but it isn't any different then Java/C++)
Code:
try:
self.camera = wpilib.USBCamera()
self.camera.startCapture()
self.camServ = wpilib.CameraServer()
self.camServ.startAutomaticCapture(self.camera)
except:
self.camera = None
I put this in the startup __init__ code.