Package org.photonvision.vision.camera
Class PVCameraInfo.PVUsbCameraInfo
java.lang.Object
edu.wpi.first.cscore.UsbCameraInfo
org.photonvision.vision.camera.PVCameraInfo.PVUsbCameraInfo
- All Implemented Interfaces:
PVCameraInfo
- Enclosing interface:
- PVCameraInfo
public static final class PVCameraInfo.PVUsbCameraInfo
extends UsbCameraInfo
implements PVCameraInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.photonvision.vision.camera.PVCameraInfo
PVCameraInfo.PVCSICameraInfo, PVCameraInfo.PVFileCameraInfo, PVCameraInfo.PVUsbCameraInfo
-
Field Summary
Fields inherited from class edu.wpi.first.cscore.UsbCameraInfo
dev, name, otherPaths, path, productId, vendorId
-
Constructor Summary
ConstructorDescriptionPVUsbCameraInfo
(int dev, String path, String name, String[] otherPaths, int vendorId, int productId) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.photonvision.vision.camera.PVCameraInfo
equals, humanReadableName
-
Constructor Details
-
PVUsbCameraInfo
-
-
Method Details
-
path
- Specified by:
path
in interfacePVCameraInfo
- Returns:
- The path of the camera.
-
name
- Specified by:
name
in interfacePVCameraInfo
- Returns:
- The base name of the camera aka the name as just ascii.
-
uniquePath
Description copied from interface:PVCameraInfo
If the camera is a USB camera this method returns 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". If the camera is a CSI camera this method returns the path of the camera.If we are on Windows, this will return the opaque path as described by MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK (see https://learn.microsoft.com/en-us/windows/win32/medfound/mf-devsource-attribute-source-type-vidcap-symbolic-link)
- Specified by:
uniquePath
in interfacePVCameraInfo
- Returns:
- The unique path of the camera
-
otherPaths
- Specified by:
otherPaths
in interfacePVCameraInfo
-
type
- Specified by:
type
in interfacePVCameraInfo
-
equals
-
toString
-