-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyfspro.kv
355 lines (353 loc) · 12.6 KB
/
pyfspro.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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<MyScreen>:
oimage_wid: my_oimage
iimage_wid: my_iimage
osd_wid: my_osd
vec_wid: my_vec
ipan_wid: my_ipan
opan_wid: my_opan
mid_wid: my_middle
inp_wid: my_input
out_wid: my_output
inpb_wid: my_inpbox
outb_wid: my_outbox
bpan_wid: my_bpan
tpan_wid: my_tpan
igain_wid: my_igain
ioffset_wid: my_ioffset
iauto_wid: my_iauto
ogain_wid: my_ogain
ooffset_wid: my_ooffset
oauto_wid: my_oauto
iblur_wid: my_iblur
idnz_wid: my_idnz
oblur_wid: my_oblur
odnz_wid: my_odnz
iequ_wid: my_iequ
oequ_wid: my_oequ
iflt_wid: my_iflt
oflt_wid: my_oflt
proc_wid: my_proc
dark_wid: my_dark
stack_wid: my_stack
reset_wid: my_reset
stackdisplay_wid: my_stackdisplay
dout_wid: my_dout
inifile_wid: my_inifile
actuator_wid: my_actuator
recorder_wid: my_recorder
override_wid: my_override
colors_wid: my_colors
flipx_wid: my_flipx
flipy_wid: my_flipy
ichan_wid: my_ichan
indicator_wid: my_indicator
zindicator_wid: my_zindicator
marker_wid: my_marker
indzoom_wid: my_indzoom
indzoomvalue_wid: my_indzoomvalue
indzoombox_wid: my_indzoombox
zero_wid: my_zero
ihist_wid: my_ihist
ohist_wid: my_ohist
ostab_wid: my_ostab
istab_wid: my_istab
playmode_wid: my_playmode
trf_wid: my_trf
vectype_wid: my_vectype
mask_wid: my_mask
FloatLayout:
FloatLayout:
id: my_middle
FloatLayout:
BoxLayout:
id: my_outbox
pos_hint: {'x':0.1}
size_hint_x: 0.8
ScatterLayout:
do_rotation: False
auto_bring_to_front: False
Video:
id: my_oimage
allow_stretch: True
ScatterLayout:
id: my_indicator
pos_hint: {'x':2, 'y':2}
size_hint_x: 0.1
size_hint_y: 0.1
Label:
id: my_zindicator
color: (0,1,0,1)
text: '0'
Image:
id: my_marker
source: 'assets/hud_marker.png'
allow_stretch: True
BoxLayout:
id: my_inpbox
pos_hint: {'x':0.1, 'top':0.9}
size_hint_x: 0.2
size_hint_y: 0.2
ScatterLayout:
do_rotation: False
auto_bring_to_front: False
Image:
id: my_iimage
allow_stretch: True
BoxLayout:
id: my_tpan
pos_hint: {'x':0.1, 'top':1}
size_hint_x: 0.8
size_hint_y: 0.1
Spinner:
size_hint_x: 0.3
id: my_playmode
text: '>'
values: ('>', '>||', '||')
Spinner:
size_hint_x: 0.3
id: my_mask
text: 'Msk-OFF'
values: ('Msk-OFF', 'XOR', 'XORA', 'XORC')
Spinner:
size_hint_x: 0.3
id: my_proc
text: 'Proc-OFF'
values: ('Proc-OFF', 'AVG', 'DIFF', 'CUMSUM', 'CUM-Z')
Spinner:
size_hint_x: 0.3
id: my_dark
text: 'Dark-OFF'
values: ('Dark-OFF', 'DynDark', 'Static', 'Grey')
Button:
size_hint_x: 0.3
id: my_reset
text: 'Reset'
Spinner:
size_hint_x: 0.3
id: my_trf
text: 'TF-OFF'
values: ('TF-OFF', 'Rise', 'Fall')
BoxLayout:
orientation: 'vertical'
BoxLayout:
id: my_indzoombox
Slider:
id: my_indzoom
min: 1
max: 400
step: 1
value: 1
on_value: my_indzoomvalue.text = str(int(self.value))
Label:
size_hint_x: 0.1
id: my_indzoomvalue
text: '1'
BoxLayout:
Slider:
id: my_stack
min: 1
max: 255
step: 1
value: 128
on_value: my_stackdisplay.text = str(int(self.value))
Label:
size_hint_x: 0.1
id: my_stackdisplay
text: '128'
BoxLayout:
id: my_ipan
orientation: 'vertical'
size_hint_x: 0.1
size_hint_y: 0.9
pos_hint: {'right':0.1, 'top':1}
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.36
ToggleButton:
id: my_input
text: 'Input'
state: 'down'
BoxLayout:
ToggleButton:
id: my_flipx
text: 'X'
ToggleButton:
id: my_flipy
text: 'Y'
Spinner:
id: my_iequ
text: 'EQ-OFF'
values: ('EQU-OFF', 'HIST', 'CLAHE')
ToggleButton:
id: my_idnz
text: 'Denoise'
Spinner:
id: my_iflt
text: 'FLT-OFF'
values: ('FLT-OFF')
ToggleButton:
id: my_istab
text: 'Lock'
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.46
BoxLayout:
size_hint_y: 0.1
Label:
text: 'G'
Label:
text: 'O'
BoxLayout:
Slider:
id: my_igain
orientation: 'vertical'
min: 1
max: 10
value: 1
step: 0.1
on_value: my_igaindisplay.text = str("%.2f" % round(my_igain.value,2))
Slider:
id: my_ioffset
orientation: 'vertical'
min: -127
max: 127
value: 0
on_value: my_ioffsetdisplay.text = str("%.2f" % round(my_ioffset.value,2))
BoxLayout:
size_hint_y: 0.1
Label:
id: my_igaindisplay
text: '1.00'
Label:
id: my_ioffsetdisplay
text: '0.00'
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.18
ToggleButton:
id: my_iauto
text: 'Auto'
ToggleButton:
id: my_iblur
text: 'Blur'
ToggleButton:
id: my_ihist
text: 'Hist'
BoxLayout:
id: my_opan
orientation: 'vertical'
pos_hint: {'right':1, 'top':1}
size_hint_x: 0.1
size_hint_y: 0.9
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.36
ToggleButton:
id: my_output
text: 'Output'
state: 'down'
Spinner:
id: my_colors
text: 'GREY'
values: ('GREY', 'AUTUMN', 'BONE', 'JET', 'WINTER', 'RAINBOW', 'OCEAN', 'SUMMER', 'SPRING', 'COOL', 'HSV', 'PINK', 'HOT')
Spinner:
id: my_oequ
text: 'EQ-OFF'
values: ('EQU-OFF', 'HIST', 'CLAHE')
ToggleButton:
id: my_odnz
text: 'Denoise'
Spinner:
id: my_oflt
text: 'FLT-OFF'
values: ('FLT-OFF')
ToggleButton:
id: my_ostab
text: 'Lock'
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.46
BoxLayout:
size_hint_y: 0.1
Label:
text: 'G'
Label:
text: 'O'
BoxLayout:
Slider:
id: my_ogain
orientation: 'vertical'
min: 1
max: 10
value: 1
step: 0.1
on_value: my_ogaindisplay.text = str("%.2f" % round(my_ogain.value,2))
Slider:
id: my_ooffset
orientation: 'vertical'
min: -127
max: 127
value: 0
on_value: my_ooffsetdisplay.text = str("%.2f" % round(my_ooffset.value,2))
BoxLayout:
size_hint_y: 0.1
Label:
id: my_ogaindisplay
text: '1.00'
Label:
id: my_ooffsetdisplay
text: '0.00'
BoxLayout:
orientation: 'vertical'
size_hint_y: 0.18
ToggleButton:
id: my_oauto
text: 'Auto'
ToggleButton:
id: my_oblur
text: 'Blur'
ToggleButton:
id: my_ohist
text: 'Hist'
BoxLayout:
id: my_bpan
pos_hint: {'x':0, 'top':0.1}
size_hint_x: 0.9
size_hint_y: 0.1
Spinner:
id: my_ichan
text: 'BW'
values: ('BW', 'R', 'G', 'B', 'H', 'S', 'V', 'Y', 'Cr', 'Cb', 'RND')
Button:
id: my_inifile
text: 'Save\nConfig'
Spinner:
id: my_recorder
text: 'Rec-OFF'
values: ('Rec-OFF', 'Sequence', 'Video')
ToggleButton:
id: my_vec
text: 'Data\nDisplay'
Spinner:
id: my_vectype
text: 'Datamode\nAVG'
values: ('Datamode\nAVG', 'Datamode\nCUM-Z')
ToggleButton:
id: my_dout
text: 'Data\nOutput (1)'
Button:
id: my_zero
text: 'Zero\nOutput (2)'
ToggleButton:
id: my_override
text: 'Joystick\nDisabled (3)' if self.state == 'down' else 'Joystick\nOverride (3)'
ToggleButton:
id: my_actuator
text: 'Actuator\nACTION! (4)' if self.state == 'down' else 'Actuator\nPaused (4)'
ToggleButton:
id: my_osd
pos_hint: {'x':0.9}
size_hint_x: 0.1
size_hint_y: 0.1
state: 'down'
text: 'OSD'