USBCamera¶
-
class
wpilib._impl.USBCamera(name=None)[source]¶ Bases:
object-
class
WhiteBalance[source]¶ Bases:
object-
kFixedFlourescent2= 5200¶
-
kFixedFluorescent1= 5100¶
-
kFixedIndoor= 3000¶
-
kFixedOutdoor1= 4000¶
-
kFixedOutdoor2= 5000¶
-
-
USBCamera.kDefaultCameraName= b'cam0'¶
-
class
-
class
wpilib._impl.CameraServer[source]¶ Bases:
object-
getQuality()[source]¶ Get the quality of the compressed image sent to the dashboard
Returns: The quality, from 0 to 100
-
kPort= 1180¶
-
kSize160x120= 2¶
-
kSize320x240= 1¶
-
kSize640x480= 0¶
-
server= None¶
-
setQuality(quality)[source]¶ Set the quality of the compressed image sent to the dashboard
Parameters: quality – The quality of the JPEG image, from 0 to 100
-
startAutomaticCapture(camera)[source]¶ Start automatically capturing images to send to the dashboard.
You should call this method to just see a camera feed on the dashboard without doing any vision processing on the roboRIO. {@link #setImage} shouldn’t be called after this is called.
Parameters: camera – The camera interface (e.g. a USBCamera instance)
-