Package org.photonvision.vision.camera
Interface PVCameraInfo
- All Known Implementing Classes:
PVCameraInfo.PVCSICameraInfo
,PVCameraInfo.PVFileCameraInfo
,PVCameraInfo.PVUsbCameraInfo
public sealed interface PVCameraInfo
permits PVCameraInfo.PVUsbCameraInfo, PVCameraInfo.PVCSICameraInfo, PVCameraInfo.PVFileCameraInfo
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
equals
(PVCameraInfo other) static PVCameraInfo
fromCSICameraInfo
(String path, String baseName) static PVCameraInfo
fromFileInfo
(String path, String baseName) static PVCameraInfo
default String
name()
String[]
path()
type()
If the camera is a USB camera this method returns a unique descriptor of the USB port this camera is attached to.
-
Method Details
-
path
String path()- Returns:
- The path of the camera.
-
name
String name()- Returns:
- The base name of the camera aka the name as just ascii.
-
humanReadableName
- Returns:
- Returns a human readable name
-
uniquePath
String uniquePath()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)
- Returns:
- The unique path of the camera
-
otherPaths
String[] otherPaths() -
type
CameraType type() -
equals
-
fromUsbCameraInfo
-
fromCSICameraInfo
-
fromFileInfo
-