-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrande_echelle.kv
232 lines (216 loc) · 9.1 KB
/
grande_echelle.kv
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#:kivy 2.0.0
<MainScreen>:
BoxLayout: # une boite pour tout
orientation: 'vertical'
canvas:
Color:
rgb: 1.2, 0, 1.2 # Fond blanc
Rectangle:
size: self.size
pos: self.pos
BoxLayout: # une boite pour baisser le titre
orientation: 'vertical'
size_hint_y: 0.1
Label: # Titre de l'application
size_hint_y: 0.3
text: "Grande Echelle"
font_size: '64sp'
color: (0, 0, 0, 1)
BoxLayout: # une boite pour espacer
orientation: 'vertical'
size_hint_y: 0.1
BoxLayout: # Affichage de ce qui est envoyé en OSC
orientation: 'vertical'
size_hint_y: 0.4
BoxLayout:
orientation: 'vertical'
Label: # Text depth
text: 'Envoi en OSC de'
font_size: '24sp'
color: (1, 1, 1, 1)
Label: # valeur depth
id: depth_text
text: str(root.depth)
font_size: '36sp'
color: (1, 1, 1, 1)
Label: # plage
id: plage_text
text: 'Nombre de frame du film: ' + str(root.plage)
font_size: '24sp'
color: (1, 1, 1, 1)
Label: # ip port
id: adress_text
text: 'Adresse: ' + root.ip + ' / ' + str(root.port)
font_size: '24sp'
color: (1, 1, 1, 1)
BoxLayout: # boutons en bas
orientation: 'horizontal'
size_hint_y: 0.3
Button: # Réglages de profondeur
background_color: (0.7, 0.7, 0.7, 1)
text: 'Réglages de\n\ncapture'
color: (0, 1, 0, 1)
font_size: '22sp'
on_release: app.root.current = 'ReglageProfondeur'
Button: # Réglages IP POrt
background_color: (0.7, 0.7, 0.7, 1)
text: 'Réglage:\nIP / Port\nNombre de frame\ndu film'
color: (0, 1, 0, 1)
font_size: '22sp'
on_release: app.open_settings()
Button: # Quitter
background_color: (0.6, 0.6, 0.6, 1)
text: 'Quitter'
color: (0, 1, 0, 1)
font_size: '22sp'
on_release: app.do_quit()
<ReglageProfondeur>:
BoxLayout: # une boite pour tout
orientation: 'vertical'
BoxLayout: # une boite pour espacer
orientation: 'horizontal'
size_hint_y: 0.05
BoxLayout: # une boite pour slider et switch
orientation: 'horizontal'
BoxLayout: # une boite pour switch
size_hint_x: 0.4
BoxLayout:
orientation: 'vertical'
BoxLayout: # espace
size_hint_y: 0.75
BoxLayout: # mode expo
orientation: 'vertical'
size_hint_y: 0.25
Label:
text: 'Mode Expo'
Switch:
id: mode_expo
on_active: root.on_switch_mode_expo(*args)
BoxLayout: # une boite pour slider
orientation: 'vertical'
BoxLayout: # une boite texte et affichage threshold_pose
orientation: 'horizontal'
Label: # threshold_pose
text: 'Seuil de détection de la pose'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label: # threshold_pose
text: str(root.threshold_pose)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # threshold_pose
id: threshold_pose
orientation: 'horizontal'
range: 0.01, 0.99
step: 0.02
value: root.threshold_pose
value_position: root.threshold_pose
on_value: root.do_slider('threshold_pose', *args)
BoxLayout: # une boite texte et affichage threshold_points
orientation: 'horizontal'
Label: # threshold_points
text: 'Seuil de détection des points'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label: # threshold_points
text: str(root.threshold_points)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # threshold_points
id: threshold_points
orientation: 'horizontal'
range: 0.01, 0.99
step: 0.02
value: root.threshold_points
value_position: root.threshold_points
on_value: root.do_slider('threshold_points', *args)
BoxLayout: # une boite texte et affichage profondeur_mini
orientation: 'horizontal'
Label: # profondeur_mini
text: 'Profondeur mini'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label:
text: str(root.profondeur_mini)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # profondeur_mini
id: profondeur_mini
orientation: 'horizontal'
range: 500, 2000
step: 30
value: root.profondeur_mini
value_position: root.profondeur_mini
on_value: root.do_slider('profondeur_mini', *args)
BoxLayout: # une boite texte et affichage profondeur_maxi
orientation: 'horizontal'
Label: # profondeur_maxi
text: 'Profondeur maxi'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label:
text: str(root.profondeur_maxi)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # profondeur_maxi
id: profondeur_maxi
orientation: 'horizontal'
range: 3000, 8000
step: 100
value: root.profondeur_maxi
value_position: root.profondeur_maxi
on_value: root.do_slider('profondeur_maxi', *args)
BoxLayout: # une boite texte et affichage x maxi
orientation: 'horizontal'
Label: # largeur_maxi
text: 'Largeur maxi'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label:
text: str(root.largeur_maxi)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # largeur_maxi
id: largeur_maxi
orientation: 'horizontal'
range: 100, 2000
step: 40
value: root.largeur_maxi
value_position: root.largeur_maxi
on_value: root.do_slider('largeur_maxi', *args)
BoxLayout: # une boite texte et affichage lissage
orientation: 'horizontal'
Label: # lissage
text: 'Coefficient de lissage'
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Label:
text: str(root.lissage)
font_size: '16sp'
color: (0.5, 0.5, 0, 1)
Slider: # pile sizelissage
id: lissage
orientation: 'horizontal'
range: 1, 100
step: 1
value: root.lissage
value_position: root.lissage
on_value: root.do_slider('lissage', *args)
BoxLayout: # une boite pour espacer verticalemnt
orientation: 'horizontal'
size_hint_y: 0.05
BoxLayout: # une boite pour options retour quitter
orientation: 'horizontal'
size_hint_y: 0.10
Button: # Retour
background_color: (0.7, 0.7, 0.7, 1)
text: 'Retour'
color: (0, 1, 0, 1)
font_size: '22sp'
on_release: app.root.current = 'Main'
Button: # Quitter
background_color: (0.6, 0.6, 0.6, 1)
text: 'Quitter'
color: (0, 1, 0, 1)
font_size: '22sp'
on_release: app.do_quit()