Package org.photonvision.vision.camera
Class CameraInfo
java.lang.Object
edu.wpi.first.cscore.UsbCameraInfo
org.photonvision.vision.camera.CameraInfo
-
Field Summary
Fields inherited from class edu.wpi.first.cscore.UsbCameraInfo
dev, name, otherPaths, path, productId, vendorId
-
Constructor Summary
ConstructorDescriptionCameraInfo
(int dev, String path, String name, String[] otherPaths, int vendorId, int productId) CameraInfo
(int dev, String path, String name, String[] otherPaths, int vendorId, int productId, CameraType cameraType) CameraInfo
(UsbCameraInfo info) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Get a unique descriptor of the USB port this camera is attached to.toString()
-
Field Details
-
cameraType
-
-
Constructor Details
-
CameraInfo
-
CameraInfo
public CameraInfo(int dev, String path, String name, String[] otherPaths, int vendorId, int productId, CameraType cameraType) -
CameraInfo
-
-
Method Details
-
getIsV4lCsiCamera
public boolean getIsV4lCsiCamera()- Returns:
- True, if this camera is reported from V4L and is a CSI camera.
-
getBaseName
- Returns:
- The base name of the camera aka the name as just ascii.
-
getHumanReadableName
- Returns:
- Returns a human readable name
-
getUSBPath
Get a unique descriptor of the USB port this camera is attached to. EG "/dev/v4l/by-path/platform-fc800000.usb-usb-0:1.3:1.0-video-index0"- Returns:
-
equals
-
toString
-