Class PVCameraInfo.PVCSICameraInfo

java.lang.Object
org.photonvision.vision.camera.PVCameraInfo.PVCSICameraInfo
All Implemented Interfaces:
PVCameraInfo
Enclosing interface:
PVCameraInfo

public static final class PVCameraInfo.PVCSICameraInfo extends Object implements PVCameraInfo
  • Field Details

    • path

      public final String path
    • baseName

      public final String baseName
  • Constructor Details

    • PVCSICameraInfo

      public PVCSICameraInfo(String path, String baseName)
  • Method Details

    • path

      public String path()
      Specified by:
      path in interface PVCameraInfo
      Returns:
      The path of the camera.
    • name

      public String name()
      Specified by:
      name in interface PVCameraInfo
      Returns:
      The base name of the camera aka the name as just ascii.
    • uniquePath

      public String 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 interface PVCameraInfo
      Returns:
      The unique path of the camera
    • otherPaths

      public String[] otherPaths()
      Specified by:
      otherPaths in interface PVCameraInfo
    • type

      public CameraType type()
      Specified by:
      type in interface PVCameraInfo
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object