added selction of threshold and normal images

This commit is contained in:
ori
2019-04-27 12:00:15 -07:00
parent 09685d46eb
commit 1f550f91c6
2 changed files with 25 additions and 6 deletions

View File

@@ -16,6 +16,10 @@
<router-view></router-view>
</Col>
<Col span="12">
<Tabs :animated="false" v-model="isBinary" @on-click="handleImage">
<TabPane label="Normal"></TabPane>
<TabPane label="Threshold"></TabPane>
</Tabs>
<img :src="steamAdress" style="">
</Col>
</Col>
@@ -38,17 +42,29 @@
}
},
methods: {
handleImage() {
this.$socket.sendObj({"is_binary":this.isBinary});
}
},
computed: {
steamAdress: {
get: function(){
return this.$store.state.streamAdress;
}
},
isBinary: {
get: function(){
return this.$store.state.isBinaryImage;
},
set: function(value){
this.$store.commit('isBinaryImage',value)
}
}
},
}
</script>
<style scoped>
<style>
.ivu-tabs-nav .ivu-tabs-tab:hover{
color: #0cdfc3 !important;
}
</style>