-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacereco.kv
56 lines (53 loc) · 1.74 KB
/
facereco.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
# :kivy 2.0.0
<MainWindow>:
# Reserved for camera in main.py
BoxLayout:
orientation: 'vertical'
BoxLayout:
id: camera
BoxLayout:
Spinner:
id: index_spinner
text: "Camera 0"
values: "Camera 0", "Camera 1", "Camera 2"
size_hint: (None, None)
height: '48dp'
on_text: root.reload_camera()
Button:
text: 'Take a picture'
size_hint_y: None
height: '48dp'
on_press: root.capture()
ToggleButton:
id: toggle_button
text: 'Pause'
on_press: root.toggleCamera()
size_hint_y: None
height: '48dp'
BoxLayout:
orientation: 'vertical'
Image:
id: captured_img
# flip_vertical: True
BoxLayout:
Button:
id: save_descriptor_button
text: 'Save descriptor'
size_hint_y: None
height: '48dp'
on_press: root.save_descriptor()
disabled: True
Button:
id: compare_descriptors_button
text: 'Compare descriptors'
size_hint_y: None
height: '48dp'
on_press: root.compare_descriptors()
disabled: True
Spinner:
id: detection_method_spinner
text: "Haar Cascade"
values: "Haar Cascade", "CNN"
size_hint: (None, None)
height: '48dp'
on_text: root.change_face_detection()