Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Python: Having problems with USB camera? (http://www.chiefdelphi.com/forums/showthread.php?t=134251)

team-4480 09-02-2015 17:49

Python: Having problems with USB camera?
 
Hi! We are still trying to get our USB Camera working with this __init__ code:
Code:

try:
            self.camera = wpilib.USBCamera()
            self.camera.startCapture()
            self.camServ = wpilib.CameraServer()
            self.camServ.startAutomaticCapture(self.camera)
        except:
            self.camera = None

The camera shows up in the RoboRIO web interface but we can't seem to get it to show up in the SmartDashboard or the Driver Station. Maybe I missed a step in setting up the camera since this is the first time I have set a USB Camera up with the RIO. We are using RobotPy and Pyfrc. Any help would be greatly appreciated!

TimTheGreat 09-02-2015 20:53

Re: Python: Having problems with USB camera?
 
hmm... make sure you enabled the camera in the Driverstation. You should be able to select Camera HW (or similar) from the DS. The default is Camera Off, so make sure you change that


All times are GMT -5. The time now is 01:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi