mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
* Selectively send pipeline changes * Make input and output both rotated * Notify UI of driver mode change over NT * Fix "show multiple" * Rename extent to fullness, fix area filtering This is a breaking change to docs (make sure we note area is out of 100 and is percentage) * Apply stream divisor to both streams Co-authored-by: Banks T <btrout.dhrs@gmail.com>
45 lines
954 B
JavaScript
45 lines
954 B
JavaScript
import Vue from 'vue'
|
|
|
|
export default {
|
|
state: {
|
|
exposure: 0,
|
|
brightness: 0,
|
|
gain: 0,
|
|
rotationMode: 0,
|
|
hue: [0, 15],
|
|
saturation: [0, 15],
|
|
value: [0, 25],
|
|
erode: false,
|
|
dilate: false,
|
|
area: [0, 12],
|
|
ratio: [0, 12],
|
|
fullness: [0, 12],
|
|
speckle: 5,
|
|
targetGrouping: 0,
|
|
targetIntersection: 0,
|
|
sortMode: 0,
|
|
multiple: false,
|
|
isBinary: 0,
|
|
calibrationMode: 0,
|
|
videoModeIndex: 0,
|
|
streamDivisor: 0,
|
|
is3D: false,
|
|
targetRegion: 0,
|
|
targetOrientation: 1
|
|
},
|
|
mutations: {
|
|
isBinary: (state, value) => {
|
|
state.isBinary = value
|
|
},
|
|
mutatePipeline: (state, {key, value}) => {
|
|
Vue.set(state, key, value)
|
|
}
|
|
|
|
},
|
|
actions: {},
|
|
getters: {
|
|
pipeline: state => {
|
|
return state
|
|
}
|
|
}
|
|
}; |