Class VisionSourceSettables
java.lang.Object
org.photonvision.vision.processes.VisionSourceSettables
- Direct Known Subclasses:
FileVisionSource.FileSourceSettables
,GenericUSBCameraSettables
,LibcameraGpuSettables
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected FrameStaticProperties
protected Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCalibration
(CameraCalibrationCoefficients calibrationCoefficients) protected void
abstract VideoMode
double
getFOV()
abstract double
abstract double
abstract double
abstract double
void
Runs exactly once the first time that the underlying device goes from disconnected to connectedabstract void
setAutoExposure
(boolean cameraAutoExposure) abstract void
setAutoWhiteBalance
(boolean autowb) void
setBlueGain
(int blue) abstract void
setBrightness
(int brightness) abstract void
setExposureRaw
(double exposureRaw) void
setFOV
(double fov) abstract void
setGain
(int gain) void
setRedGain
(int red) void
setVideoMode
(VideoMode mode) void
setVideoModeIndex
(int index) void
setVideoModeInternal
(int index) protected abstract void
setVideoModeInternal
(VideoMode videoMode) abstract void
setWhiteBalanceTemp
(double temp)
-
Field Details
-
logger
-
frameStaticProperties
-
videoModes
-
cameraPropertiesCached
protected boolean cameraPropertiesCached
-
-
Constructor Details
-
VisionSourceSettables
-
-
Method Details
-
getConfiguration
-
onCameraConnected
public void onCameraConnected()Runs exactly once the first time that the underlying device goes from disconnected to connected -
setExposureRaw
public abstract void setExposureRaw(double exposureRaw) -
getMinExposureRaw
public abstract double getMinExposureRaw() -
getMaxExposureRaw
public abstract double getMaxExposureRaw() -
setAutoExposure
public abstract void setAutoExposure(boolean cameraAutoExposure) -
setWhiteBalanceTemp
public abstract void setWhiteBalanceTemp(double temp) -
setAutoWhiteBalance
public abstract void setAutoWhiteBalance(boolean autowb) -
setBrightness
public abstract void setBrightness(int brightness) -
setGain
public abstract void setGain(int gain) -
setRedGain
public void setRedGain(int red) -
setBlueGain
public void setBlueGain(int blue) -
getCurrentVideoMode
-
setVideoModeInternal
public void setVideoModeInternal(int index) -
setVideoMode
-
setVideoModeInternal
-
setVideoModeIndex
public void setVideoModeIndex(int index) -
getAllVideoModes
-
getFOV
public double getFOV() -
setFOV
public void setFOV(double fov) -
addCalibration
-
calculateFrameStaticProps
protected void calculateFrameStaticProps() -
getFrameStaticProperties
-
getMinWhiteBalanceTemp
public abstract double getMinWhiteBalanceTemp() -
getMaxWhiteBalanceTemp
public abstract double getMaxWhiteBalanceTemp()
-