forked from luxonis/depthai-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroot.qml
125 lines (110 loc) · 2.95 KB
/
root.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import QtQuick 2.0
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.1
import QtQuick.Window 2.1
import QtQuick.Controls.Material 2.1
import dai.gui 1.0
ApplicationWindow {
width: 900
height: 500
Material.theme: Material.Dark
Material.accent: Material.Red
visible: true
property var previewChoices
property var medianChoices
AppBridge {
id: appBridge
}
Rectangle {
id: root
x: 0
y: 0
width: parent.width
height: parent.height
color: "#000000"
enabled: true
Rectangle {
id: cameraPreviewRect
color: "black"
width: 640
height: parent.height
ComboBox {
id: comboBoxImage
x: 100
y: 5
width: 150
height: 30
model: previewChoices
onActivated: function(index) {
appBridge.changeSelected(model[index])
}
}
ImageWriter {
id: imageWriter
objectName: "writer"
x: 10
y: 60
width: 600
height: parent.height - 100
}
}
Rectangle {
id: propsRect
color: "black"
x: 640
width: 360
height: parent.height
ComboBox {
id: comboBox
x: 0
y: 102
width: 195
height: 33
model: medianChoices
onActivated: function(index) {
appBridge.setMedianFilter(model[index])
}
}
Slider {
id: dctSlider
x: 360
y: 89
width: 200
height: 25
snapMode: RangeSlider.NoSnap
stepSize: 1
from: 0
to: 255
value: 240
onValueChanged: {
appBridge.setDisparityConfidenceThreshold(value)
}
}
Text {
id: text2
x: 0
y: 71
width: 195
height: 25
color: "#ffffff"
text: qsTr("Median filtering")
font.pixelSize: 18
font.styleName: "Regular"
font.weight: Font.Medium
font.family: "Courier"
}
Switch {
id: switch1
x: 0
y: 187
text: qsTr("<font color=\"white\">Left Right Check</font>")
transformOrigin: Item.Center
font.family: "Courier"
autoExclusive: false
onToggled: {
appBridge.toggleLeftRightCheck(switch1.checked)
}
}
}
}
}