tmp = new HashMap<>();
- tmp.put("pipeline", getOrdinalPipeline());
- broadcastMessage(tmp);
+ sendFullSettings();
try {
cam.setBrightness(cam.getCurrentPipeline().brightness);
cam.setExposure(cam.getCurrentPipeline().exposure);
diff --git a/chameleon-client/package-lock.json b/chameleon-client/package-lock.json
index 2beadcea2..963d66adc 100644
--- a/chameleon-client/package-lock.json
+++ b/chameleon-client/package-lock.json
@@ -13493,7 +13493,8 @@
},
"code-point-at": {
"version": "1.1.0",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"concat-map": {
"version": "0.0.1",
@@ -13502,7 +13503,8 @@
},
"console-control-strings": {
"version": "1.1.0",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -13605,7 +13607,8 @@
},
"inherits": {
"version": "2.0.3",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -13615,6 +13618,7 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
+ "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -13640,6 +13644,7 @@
"minipass": {
"version": "2.2.4",
"bundled": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
@@ -13656,6 +13661,7 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -13728,7 +13734,8 @@
},
"number-is-nan": {
"version": "1.0.1",
- "bundled": true
+ "bundled": true,
+ "optional": true
},
"object-assign": {
"version": "4.1.1",
@@ -13738,6 +13745,7 @@
"once": {
"version": "1.4.0",
"bundled": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -13843,6 +13851,7 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
diff --git a/chameleon-client/src/App.vue b/chameleon-client/src/App.vue
index 2fb184715..4bb7f2913 100644
--- a/chameleon-client/src/App.vue
+++ b/chameleon-client/src/App.vue
@@ -1,95 +1,94 @@
-
-
-
- Chameleon Vision
-
-
-
- Vision
- Settings
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ Chameleon Vision
+
+
+
+ Vision
+ Settings
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chameleon-client/src/components/OutputTab/DualCalibration.vue b/chameleon-client/src/components/OutputTab/DualCalibration.vue
new file mode 100644
index 000000000..8e0a65cc3
--- /dev/null
+++ b/chameleon-client/src/components/OutputTab/DualCalibration.vue
@@ -0,0 +1,65 @@
+
+
+
+
+ Take Point A
+
+
+ Take Point B
+
+
+ Clear All Points
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chameleon-client/src/components/OutputTab/SingleCalibration.vue b/chameleon-client/src/components/OutputTab/SingleCalibration.vue
new file mode 100644
index 000000000..c77dc8b53
--- /dev/null
+++ b/chameleon-client/src/components/OutputTab/SingleCalibration.vue
@@ -0,0 +1,33 @@
+
+
+
+
+ Take Point
+
+
+ Clear Point
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-icon.vue b/chameleon-client/src/components/cv-icon.vue
index a98b8a0f4..49bf772d8 100644
--- a/chameleon-client/src/components/cv-icon.vue
+++ b/chameleon-client/src/components/cv-icon.vue
@@ -2,7 +2,7 @@
- {{text}}
+ {{text}}
{{tooltip}}
@@ -12,20 +12,18 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-input.vue b/chameleon-client/src/components/cv-input.vue
index 342bf2094..76d7f864c 100644
--- a/chameleon-client/src/components/cv-input.vue
+++ b/chameleon-client/src/components/cv-input.vue
@@ -5,7 +5,8 @@
{{name}}
-
+
@@ -14,26 +15,24 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-number-input.vue b/chameleon-client/src/components/cv-number-input.vue
index 375861c1d..e97d6ac88 100644
--- a/chameleon-client/src/components/cv-number-input.vue
+++ b/chameleon-client/src/components/cv-number-input.vue
@@ -5,7 +5,8 @@
{{name}}
-
+
@@ -14,18 +15,16 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-radio.vue b/chameleon-client/src/components/cv-radio.vue
index 91dfb88ab..a6ec40a01 100644
--- a/chameleon-client/src/components/cv-radio.vue
+++ b/chameleon-client/src/components/cv-radio.vue
@@ -1,7 +1,7 @@
-
+
@@ -9,19 +9,17 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-range-slider.vue b/chameleon-client/src/components/cv-range-slider.vue
index 7a2d5e6fd..571fa086f 100644
--- a/chameleon-client/src/components/cv-range-slider.vue
+++ b/chameleon-client/src/components/cv-range-slider.vue
@@ -5,13 +5,18 @@
{{name}}
-
-
-
+
+
+
-
+
@@ -22,43 +27,43 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-select.vue b/chameleon-client/src/components/cv-select.vue
index 331330ca5..44a713527 100644
--- a/chameleon-client/src/components/cv-select.vue
+++ b/chameleon-client/src/components/cv-select.vue
@@ -5,7 +5,8 @@
{{name}}
-
+
@@ -14,26 +15,26 @@
\ No newline at end of file
diff --git a/chameleon-client/src/components/cv-switch.vue b/chameleon-client/src/components/cv-switch.vue
index 5e0fed2dd..de049dc09 100644
--- a/chameleon-client/src/components/cv-switch.vue
+++ b/chameleon-client/src/components/cv-switch.vue
@@ -5,7 +5,7 @@
{{name}}
-
+
@@ -14,19 +14,17 @@
\ No newline at end of file
diff --git a/chameleon-client/src/main.js b/chameleon-client/src/main.js
index 8c3acef75..e5b238da4 100644
--- a/chameleon-client/src/main.js
+++ b/chameleon-client/src/main.js
@@ -8,19 +8,19 @@ import msgPack from 'msgpack5';
Vue.config.productionTip = false;
// Vue.use(VueNativeSock,'ws://' + location.host + '/websocket',{format: 'json'});
-Vue.use(VueNativeSock,'ws://'+location.hostname+':8888/websocket');
+Vue.use(VueNativeSock, 'ws://' + location.hostname + ':8888/websocket');
Vue.prototype.$msgPack = msgPack(true)
Vue.mixin({
- methods:{
- handleInput(key,value){
- let msg = this.$msgPack.encode({[key]:value})
- this.$socket.send(msg);
+ methods: {
+ handleInput(key, value) {
+ let msg = this.$msgPack.encode({[key]: value})
+ this.$socket.send(msg);
+ }
}
- }
})
new Vue({
- router,
- store,
- vuetify,
- render: h => h(App)
+ router,
+ store,
+ vuetify,
+ render: h => h(App)
}).$mount('#app')
diff --git a/chameleon-client/src/plugins/vuetify.js b/chameleon-client/src/plugins/vuetify.js
index 45a2cd164..5522f5991 100644
--- a/chameleon-client/src/plugins/vuetify.js
+++ b/chameleon-client/src/plugins/vuetify.js
@@ -1,13 +1,11 @@
-
import '@mdi/font/css/materialdesignicons.css';
import 'material-design-icons-iconfont/dist/material-design-icons.css'
import Vue from 'vue';
import Vuetify from 'vuetify/lib';
+
Vue.use(Vuetify);
export default new Vuetify({
- icons: {
-
-}
-
+ icons: {}
+
});
diff --git a/chameleon-client/src/store.js b/chameleon-client/src/store.js
index 6a382b0ed..85e05e73b 100644
--- a/chameleon-client/src/store.js
+++ b/chameleon-client/src/store.js
@@ -33,7 +33,8 @@ export default new Vuex.Store({
targetGrouping:0,
targetIntersection:0,
sortMode:0,
- isBinary:0
+ isBinary:0,
+ calibrationMode:0
},
cameraSettings:{},
resolutionList:[],
@@ -54,7 +55,12 @@ export default new Vuex.Store({
currentPipelineIndex: set('currentPipelineIndex'),
cameraList: set('cameraList'),
pipelineList: set('pipelineList'),
- point:set('point')
+ point:set('point'),
+ setPipeValues(state,obj){
+ for(let i in obj){
+ Vue.set(state.pipeline,i,obj[i]);
+ }
+ }
},
actions: {
settings: state => state.settings,
@@ -67,10 +73,5 @@ export default new Vuex.Store({
cameraList: state =>state.cameraList,
pipelineList: state =>state.pipelineList,
point: state =>state.point,
- setPipeValues(state,obj){
- for(let i in obj){
- Vue.set(state.pipeline,i,obj[i]);
- }
- }
}
})
diff --git a/chameleon-client/src/views/Camera.vue b/chameleon-client/src/views/Camera.vue
index 917bc92f1..87d07cb48 100644
--- a/chameleon-client/src/views/Camera.vue
+++ b/chameleon-client/src/views/Camera.vue
@@ -4,124 +4,154 @@
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
- menu
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ menu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+ save
+ Save
+
+
-
+
Input
Threshold
Contours
Output
-
-
+
+
+
+
-
+
Normal
Threshold
-
![]()
+
No Cameras Are connected
{{point}}
-
-
-
-
- Duplicate Pipeline
+
+
+
+
+ Duplicate Pipeline
-
-
-
+
+
+
-
+
Duplicate
Cancels
-
-
-
-
+
+
+
+
Can not remove the only pipeline!
Close
-
+
+
+
+
Saved All changes
+
+
+
\ No newline at end of file
diff --git a/chameleon-client/src/views/CameraViewes/InputTab.vue b/chameleon-client/src/views/CameraViewes/InputTab.vue
index ba6b06168..6d602b5a4 100644
--- a/chameleon-client/src/views/CameraViewes/InputTab.vue
+++ b/chameleon-client/src/views/CameraViewes/InputTab.vue
@@ -1,34 +1,39 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/chameleon-client/src/views/CameraViewes/OutputTab.vue b/chameleon-client/src/views/CameraViewes/OutputTab.vue
index 56ab0a4aa..a81dce2cb 100644
--- a/chameleon-client/src/views/CameraViewes/OutputTab.vue
+++ b/chameleon-client/src/views/CameraViewes/OutputTab.vue
@@ -1,19 +1,13 @@
-
-
Calibrate:
-
-
- Take Point A
-
-
- Take Point B
-
-
- Clear All Points
-
-
-
+
+
Calibrate:
+
+
+
Points are too close
Close
@@ -22,57 +16,50 @@
diff --git a/chameleon-client/src/views/Settings.vue b/chameleon-client/src/views/Settings.vue
index 955341178..763e67c22 100644
--- a/chameleon-client/src/views/Settings.vue
+++ b/chameleon-client/src/views/Settings.vue
@@ -2,12 +2,13 @@
-
+
General
Cameras
-
+
@@ -15,28 +16,28 @@
-
+
\ No newline at end of file
diff --git a/chameleon-client/src/views/SettingsViewes/Cameras.vue b/chameleon-client/src/views/SettingsViewes/Cameras.vue
index 9ee8ec314..926c69e50 100644
--- a/chameleon-client/src/views/SettingsViewes/Cameras.vue
+++ b/chameleon-client/src/views/SettingsViewes/Cameras.vue
@@ -1,69 +1,69 @@
-
-
-
-
+
+
+
+
Save Camera Settings
\ No newline at end of file
diff --git a/chameleon-client/src/views/SettingsViewes/General.vue b/chameleon-client/src/views/SettingsViewes/General.vue
index 733cd7078..87b28c56e 100644
--- a/chameleon-client/src/views/SettingsViewes/General.vue
+++ b/chameleon-client/src/views/SettingsViewes/General.vue
@@ -1,46 +1,46 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
Save General Settings
\ No newline at end of file