added show multiple switch in ui and back end

This commit is contained in:
ori agranat
2019-11-29 16:50:16 +02:00
parent 720911e5e6
commit 3ff1f56bd5
7 changed files with 23 additions and 6 deletions

View File

@@ -33,6 +33,7 @@ export default new Vuex.Store({
targetGrouping: 0,
targetIntersection: 0,
sortMode: 0,
multiple:false,
isBinary: 0,
calibrationMode: 0
},

View File

@@ -269,7 +269,11 @@
let p = this.$store.state.point.calculated;
let fps = this.$store.state.point.fps;
if (p !== undefined) {
return `Pitch: ${parseFloat(p['pitch']).toFixed(2)}, Yaw: ${parseFloat(p['yaw']).toFixed(2)}, Area: ${p['area'].toFixed(2)}, FPS: ${fps.toFixed(2)}`
try {
return `Pitch: ${parseFloat(p['pitch']).toFixed(2)}, Yaw: ${parseFloat(p['yaw']).toFixed(2)}, Area: ${p['area'].toFixed(2)}, FPS: ${fps.toFixed(2)}`
} catch (e) {
return ""
}
} else {
return undefined;
}

View File

@@ -3,6 +3,7 @@
<CVselect name="SortMode" v-model="value.sortMode"
:list="['Largest','Smallest','Highest','Lowest','Rightmost','Leftmost','Centermost']"
@input="handleData('sortMode')"/>
<CVswitch name="Output multiple" v-model="value.multiple" @input="handleData('multiple')"></CVswitch>
<span>Calibrate:</span>
<v-divider dark color="white"/>
<CVselect name="Calibration Mode" v-model="value.calibrationMode" :list="['None','Single point','Dual point']"
@@ -17,14 +18,17 @@
<script>
import CVselect from '../../components/cv-select'
import CVswitch from '../../components/cv-switch'
import DualCalibration from "../../components/OutputTab/DualCalibration";
import SingleCalibration from "../../components/OutputTab/SingleCalibration";
export default {
name: 'Output',
props: ['value'],
components: {
CVselect,
CVswitch,
SingleCalibration,
DualCalibration,