Improve Pi Non-GPU-accel exposure (#148)

Changes exposure setters to accept a floating point input (rather than integer)
Updates the UI to change exposure in increments of 0.1 (rather than 1.0)
Updates quirky PI camera logic to use the raw_ interface with scaling/offset logic matching the GPU-accelerated pi3 camera logic from Declan.
Adds logic to disable auto-white-balance in the PI camera, which should yield more consistent vision processing results.
This commit is contained in:
Chris Gerth
2020-10-27 16:57:11 -05:00
committed by GitHub
parent 33bbb4c69f
commit 0ce49bd8f2
6 changed files with 48 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
name="Exposure"
min="0"
max="100"
step="0.1"
tooltip="Directly controls how much light is allowed to fall onto the sensor, which affects brightness"
:slider-cols="largeBox"
@input="handlePipelineData('cameraExposure')"
@@ -87,10 +88,10 @@
},
cameraExposure: {
get() {
return parseInt(this.$store.getters.currentPipelineSettings.cameraExposure);
return parseFloat(this.$store.getters.currentPipelineSettings.cameraExposure);
},
set(val) {
this.$store.commit("mutatePipeline", {"cameraExposure": parseInt(val)});
this.$store.commit("mutatePipeline", {"cameraExposure": parseFloat(val)});
}
},
cameraBrightness: {