Class UsbCamera
java.lang.Object
org.wpilib.vision.camera.VideoSource
org.wpilib.vision.camera.VideoCamera
org.wpilib.vision.camera.UsbCamera
- All Implemented Interfaces:
AutoCloseable
A source that represents a USB camera.
-
Nested Class Summary
Nested classes/interfaces inherited from class VideoCamera
VideoCamera.WhiteBalanceNested classes/interfaces inherited from class VideoSource
VideoSource.ConnectionStrategy, VideoSource.Kind -
Field Summary
Fields inherited from class VideoSource
m_handle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UsbCameraInfo[]Enumerate USB cameras on the local system.getInfo()Get the full camera information for the device.getPath()Get the path to the device.voidsetConnectVerbose(int level) Set how verbose the camera connection messages are.Methods inherited from class VideoCamera
getBrightness, setBrightness, setExposureAuto, setExposureHoldCurrent, setExposureManual, setWhiteBalanceAuto, setWhiteBalanceHoldCurrent, setWhiteBalanceManualMethods inherited from class VideoSource
close, enumerateProperties, enumerateSinks, enumerateSources, enumerateVideoModes, equals, getActualDataRate, getActualFPS, getConfigJson, getDescription, getHandle, getKind, getKindFromInt, getLastFrameTime, getName, getProperty, getVideoMode, hashCode, isConnected, isEnabled, isValid, setConfigJson, setConnectionStrategy, setFPS, setPixelFormat, setResolution, setVideoMode, setVideoMode
-
Constructor Details
-
UsbCamera
-
UsbCamera
-
-
Method Details
-
enumerateUsbCameras
Enumerate USB cameras on the local system.- Returns:
- Vector of USB camera information (one for each camera)
-
getPath
-
getInfo
Get the full camera information for the device.- Returns:
- The camera information.
-
setConnectVerbose
Set how verbose the camera connection messages are.- Parameters:
level- 0=don't display Connecting message, 1=do display message
-