-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdigit_recogniser.kv
53 lines (50 loc) · 1.37 KB
/
digit_recogniser.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
Root:
im : im
im2 : im2
lbl : lbl
BoxLayout:
orientation: 'vertical'
BoxLayout:
size_hint_y: None
height: 60
Button:
text: 'Browse File'
font_size: '30sp'
on_release: root.show_load()
Button:
text: 'Capture Image'
font_size: '30sp'
on_release: root.show_camera()
BoxLayout:
orientation: 'vertical'
BoxLayout:
Image:
opacity : 0
id : im
allow_stretch : True
keep_ratio : True
Image:
opacity : 0
id : im2
allow_stretch : True
keep_ratio : True
Label:
id : lbl
font_size : '45sp'
<LoadDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooserIconView:
id: filechooser
path: './'
BoxLayout:
size_hint_y: None
height: 30
Button:
text: "Cancel"
on_release: root.cancel()
Button:
text: "Load"
on_release: root.load(filechooser.path, filechooser.selection)