Class UsbCameraInfo

java.lang.Object
edu.wpi.first.cscore.UsbCameraInfo

public class UsbCameraInfo extends Object
USB camera information.
  • Field Details

    • dev

      public int dev
      Device number (e.g. N in '/dev/videoN' on Linux).
    • path

      public String path
      Path to device if available (e.g. '/dev/video0' on Linux).
    • name

      public String name
      Vendor/model name of the camera as provided by the USB driver.
    • otherPaths

      public String[] otherPaths
      Other path aliases to device (e.g. '/dev/v4l/by-id/...' etc on Linux).
    • vendorId

      public int vendorId
      USB vendor id.
    • productId

      public int productId
      USB product id.
  • Constructor Details

    • UsbCameraInfo

      public UsbCameraInfo(int dev, String path, String name, String[] otherPaths, int vendorId, int productId)
      Create a new set of UsbCameraInfo.
      Parameters:
      dev - Device number (e.g. N in '/dev/videoN' on Linux)
      path - Path to device if available (e.g. '/dev/video0' on Linux)
      name - Vendor/model name of the camera as provided by the USB driver
      otherPaths - Other path aliases to device
      vendorId - USB vendor id
      productId - USB product id