Class VideoCamera

java.lang.Object
edu.wpi.first.cscore.VideoSource
edu.wpi.first.cscore.VideoCamera
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
HttpCamera, UsbCamera

public class VideoCamera extends VideoSource
A source that represents a video camera.
  • Constructor Details

    • VideoCamera

      protected VideoCamera(int handle)
      Constructs a VideoCamera.
      Parameters:
      handle - The video camera handle.
  • Method Details

    • setBrightness

      public void setBrightness(int brightness)
      Set the brightness, as a percentage (0-100).
      Parameters:
      brightness - Brightness as a percentage (0-100).
    • getBrightness

      public int getBrightness()
      Get the brightness, as a percentage (0-100).
      Returns:
      The brightness as a percentage (0-100).
    • setWhiteBalanceAuto

      public void setWhiteBalanceAuto()
      Set the white balance to auto.
    • setWhiteBalanceHoldCurrent

      Set the white balance to hold current.
    • setWhiteBalanceManual

      public void setWhiteBalanceManual(int value)
      Set the white balance to manual, with specified color temperature.
      Parameters:
      value - The specified color temperature.
    • setExposureAuto

      public void setExposureAuto()
      Set the exposure to auto aperture.
    • setExposureHoldCurrent

      public void setExposureHoldCurrent()
      Set the exposure to hold current.
    • setExposureManual

      public void setExposureManual(int value)
      Set the exposure to manual, as a percentage (0-100).
      Parameters:
      value - The exposure as a percentage (0-100).