Interface PVCameraInfo

All Known Implementing Classes:
PVCameraInfo.PVCSICameraInfo, PVCameraInfo.PVFileCameraInfo, PVCameraInfo.PVUsbCameraInfo

  • 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

      default String 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

      default boolean equals(PVCameraInfo other)
    • fromUsbCameraInfo

      static PVCameraInfo fromUsbCameraInfo(UsbCameraInfo info)
    • fromCSICameraInfo

      static PVCameraInfo fromCSICameraInfo(String path, String baseName)
    • fromFileInfo

      static PVCameraInfo fromFileInfo(String path, String baseName)