mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Revised 9782 defaults (#1431)
revised order to prevent some randomness around init
This commit is contained in:
@@ -55,6 +55,7 @@ public class QuirkyCamera {
|
||||
"",
|
||||
"Arducam Generic",
|
||||
CameraQuirk.ArduCamCamera,
|
||||
CameraQuirk.Gain,
|
||||
CameraQuirk.StickyFPS),
|
||||
// Arducam OV2311
|
||||
new QuirkyCamera(
|
||||
@@ -73,17 +74,18 @@ public class QuirkyCamera {
|
||||
"OV9281",
|
||||
CameraQuirk.ArduCamCamera,
|
||||
CameraQuirk.ArduOV9281Controls),
|
||||
// Arducam OV
|
||||
// Arducam OV9782
|
||||
new QuirkyCamera(
|
||||
0x0c45,
|
||||
0x6366,
|
||||
"OV9782",
|
||||
"OV9782",
|
||||
CameraQuirk.ArduCamCamera,
|
||||
CameraQuirk.Gain,
|
||||
CameraQuirk.ArduOV9782Controls),
|
||||
// Innomaker OV9281
|
||||
new QuirkyCamera(
|
||||
0x0c45, 0x636d, "USB Camera", "USB Camera", CameraQuirk.InnoOV9281Controls));
|
||||
0x0c45, 0x636d, "USB Camera", "Innomaker OV9281", CameraQuirk.InnoOV9281Controls));
|
||||
|
||||
public static final QuirkyCamera DefaultCamera = new QuirkyCamera(0, 0, "");
|
||||
public static final QuirkyCamera ZeroCopyPiCamera =
|
||||
|
||||
@@ -26,6 +26,15 @@ public class ArduOV9782CameraSettables extends GenericUSBCameraSettables {
|
||||
whiteBalanceTemperature = 3500;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAllCamDefaults() {
|
||||
softSet("power_line_frequency", 2); // Assume 60Hz USA
|
||||
softSet("exposure_metering_mode", 0);
|
||||
softSet("exposure_dynamic_framerate", 0);
|
||||
softSet("white_balance_automatic", 0);
|
||||
softSet("white_balance_temperature", whiteBalanceTemperature);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUpExposureProperties() {
|
||||
super.setUpExposureProperties();
|
||||
|
||||
@@ -100,7 +100,6 @@ public class GenericUSBCameraSettables extends VisionSourceSettables {
|
||||
softSet("exposure_dynamic_framerate", 0);
|
||||
softSet("focus_auto", 0);
|
||||
softSet("focus_absolute", 0); // Focus into infinity
|
||||
softSet("white_balance_temperature", whiteBalanceTemperature);
|
||||
}
|
||||
|
||||
public void setAutoExposure(boolean cameraAutoExposure) {
|
||||
|
||||
@@ -61,6 +61,7 @@ public class LifeCam3kWindowsCameraSettables extends GenericUSBCameraSettables {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAutoExposure(boolean cameraAutoExposure) {
|
||||
logger.debug("Setting auto exposure to " + cameraAutoExposure);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ public class PsEyeCameraSettables extends GenericUSBCameraSettables {
|
||||
super(configuration, camera);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAutoExposure(boolean cameraAutoExposure) {
|
||||
logger.debug("Setting auto exposure to " + cameraAutoExposure);
|
||||
|
||||
@@ -42,6 +43,7 @@ public class PsEyeCameraSettables extends GenericUSBCameraSettables {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAllCamDefaults() {
|
||||
// Common settings for all cameras to attempt to get their image
|
||||
// as close as possible to what we want for image processing
|
||||
|
||||
Reference in New Issue
Block a user