Class GenericUSBCameraSettables
java.lang.Object
org.photonvision.vision.processes.VisionSourceSettables
org.photonvision.vision.camera.USBCameras.GenericUSBCameraSettables
- Direct Known Subclasses:
ArduOV2311CameraSettables
,ArduOV2311WindowsCameraSettables
,ArduOV9281CameraSettables
,ArduOV9782CameraSettables
,InnoOV9281CameraSettables
,LifeCam3kCameraSettables
,LifeCam3kWindowsCameraSettables
,PsEyeCameraSettables
,See3Cam24CUGSettables
-
Field Summary
Modifier and TypeFieldDescriptionprotected VideoProperty
protected UsbCamera
protected CameraConfiguration
protected VideoProperty
protected int
protected double
protected int
protected double
protected double
protected double
protected double
protected static final int
protected static final int
protected VideoProperty
Fields inherited from class org.photonvision.vision.processes.VisionSourceSettables
frameStaticProperties, logger, videoModes
-
Constructor Summary
ConstructorDescriptionGenericUSBCameraSettables
(CameraConfiguration configuration, UsbCamera camera) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<VideoProperty>
findProperty
(String... options) Returns the first property with a name in the list.double
double
double
double
void
void
setAutoExposure
(boolean cameraAutoExposure) void
setAutoWhiteBalance
(boolean autoWB) void
setBrightness
(int brightness) void
setExposureRaw
(double exposureRaw) void
setGain
(int gain) protected void
protected void
void
setVideoModeInternal
(VideoMode videoMode) void
setWhiteBalanceTemp
(double tempNumber) protected void
Forgiving "set this property" action.Methods inherited from class org.photonvision.vision.processes.VisionSourceSettables
addCalibration, getConfiguration, getFOV, getFrameStaticProperties, setBlueGain, setFOV, setRedGain, setVideoMode, setVideoModeIndex, setVideoModeInternal
-
Field Details
-
lastExposureRaw
protected double lastExposureRaw -
lastBrightness
protected int lastBrightness -
exposureAbsProp
-
autoExposureProp
-
wbTempProp
-
minExposure
protected double minExposure -
maxExposure
protected double maxExposure -
minWhiteBalanceTemp
protected double minWhiteBalanceTemp -
maxWhiteBalanceTemp
protected double maxWhiteBalanceTemp -
lastWhiteBalanceTemp
protected int lastWhiteBalanceTemp -
PROP_AUTO_EXPOSURE_ENABLED
protected static final int PROP_AUTO_EXPOSURE_ENABLED- See Also:
-
PROP_AUTO_EXPOSURE_DISABLED
protected static final int PROP_AUTO_EXPOSURE_DISABLED- See Also:
-
camera
-
configuration
-
-
Constructor Details
-
GenericUSBCameraSettables
-
-
Method Details
-
setUpWhiteBalanceProperties
protected void setUpWhiteBalanceProperties() -
setUpExposureProperties
protected void setUpExposureProperties() -
setAllCamDefaults
public void setAllCamDefaults() -
setWhiteBalanceTemp
public void setWhiteBalanceTemp(double tempNumber) - Specified by:
setWhiteBalanceTemp
in classVisionSourceSettables
-
setAutoWhiteBalance
public void setAutoWhiteBalance(boolean autoWB) - Specified by:
setAutoWhiteBalance
in classVisionSourceSettables
-
setAutoExposure
public void setAutoExposure(boolean cameraAutoExposure) - Specified by:
setAutoExposure
in classVisionSourceSettables
-
getMinExposureRaw
public double getMinExposureRaw()- Specified by:
getMinExposureRaw
in classVisionSourceSettables
-
getMaxExposureRaw
public double getMaxExposureRaw()- Specified by:
getMaxExposureRaw
in classVisionSourceSettables
-
setExposureRaw
public void setExposureRaw(double exposureRaw) - Specified by:
setExposureRaw
in classVisionSourceSettables
-
setBrightness
public void setBrightness(int brightness) - Specified by:
setBrightness
in classVisionSourceSettables
-
setGain
public void setGain(int gain) - Specified by:
setGain
in classVisionSourceSettables
-
getCurrentVideoMode
- Specified by:
getCurrentVideoMode
in classVisionSourceSettables
-
setVideoModeInternal
- Specified by:
setVideoModeInternal
in classVisionSourceSettables
-
getAllVideoModes
- Specified by:
getAllVideoModes
in classVisionSourceSettables
-
softSet
Forgiving "set this property" action. Produces a debug message but skips properties if they aren't supported Errors if the property exists but the set fails.- Parameters:
property
-value
-
-
findProperty
Returns the first property with a name in the list. Useful to find gandolf property that goes by many names in different os/releases/whatever- Parameters:
options
-- Returns:
-
getMaxWhiteBalanceTemp
public double getMaxWhiteBalanceTemp()- Specified by:
getMaxWhiteBalanceTemp
in classVisionSourceSettables
-
getMinWhiteBalanceTemp
public double getMinWhiteBalanceTemp()- Specified by:
getMinWhiteBalanceTemp
in classVisionSourceSettables
-