Class CameraInfo

java.lang.Object
edu.wpi.first.cscore.UsbCameraInfo
org.photonvision.vision.camera.CameraInfo

public class CameraInfo extends UsbCameraInfo
  • Field Details

  • Constructor Details

    • CameraInfo

      public CameraInfo(int dev, String path, String name, String[] otherPaths, int vendorId, int productId)
    • CameraInfo

      public CameraInfo(int dev, String path, String name, String[] otherPaths, int vendorId, int productId, CameraType cameraType)
    • CameraInfo

      public CameraInfo(UsbCameraInfo info)
  • Method Details

    • getIsV4lCsiCamera

      public boolean getIsV4lCsiCamera()
      Returns:
      True, if this camera is reported from V4L and is a CSI camera.
    • getBaseName

      public String getBaseName()
      Returns:
      The base name of the camera aka the name as just ascii.
    • getHumanReadableName

      public String getHumanReadableName()
      Returns:
      Returns a human readable name
    • getUSBPath

      public Optional<String> 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

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

      public String toString()
      Overrides:
      toString in class Object