-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIrisDetector.kv
102 lines (100 loc) · 3.08 KB
/
IrisDetector.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
#:kivy 1.11.0
<Root>:
# Background of whole app
canvas.before:
Color:
rgba: 0, 0, 0, 1
Rectangle:
pos: self.pos
size: self.size
#Overall Window
BoxLayout:
# Top Button Panel
orientation: 'vertical'
BoxLayout:
size_hint_x: 0.3
size_hint_y: None
height: 30
Button:
size_hint_x: 0.2
text: 'Load'
font_size: 20
on_release: root.show_load()
Image:
size_hint_y: 0.7
id: imgInput
source: ''
allow_stretch: True
FloatLayout:
size_hint_y: 0.3
orientation: 'vertical'
ScrollView:
size_hint_x: 0.70
do_scroll_y: True
Label:
id: lblInfo
text: root.infoText
size_hint_x: 1.0
size_hint_y: None
text_size: self.width, None
font_size: 20
height: self.texture_size[1]
CheckBox:
id: cbEdgeFeatures
active: True
pos_hint: {'x': 0.81, 'y': 0.60}
size_hint: (0.1,0.15)
Label:
font_size: 20
text: "Use edge info?"
pos_hint: {'x': 0.87, 'y': 0.60}
size_hint: (0.1,0.15)
Button:
size_hint: (0.1,0.15)
pos_hint: {'x': 0.85, 'y': 0.30}
font_size: 20
text: 'Start Classifier'
on_release: root.startClassification()
Button:
size_hint: (0.1,0.15)
pos_hint: {'x': 0.85, 'y': 0.80}
font_size: 20
text: 'Define Circle'
on_release: root.startCircle()
Button:
size_hint: (0.1,0.15)
pos_hint: {'x': 0.85, 'y': 0.1}
font_size: 20
text: 'Exit'
on_release: app.stop()
TextInput:
id: txtIrisCentre
size_hint: (0.1,0.15)
pos_hint: {'x': 0.70, 'y': 0.3}
font_size: 20
hint_text: "Iris Centre"
text: "947,506"
TextInput:
id: txtIrisRadius
size_hint: (0.1,0.15)
pos_hint: {'x': 0.70, 'y': 0.1}
font_size: 20
hint_text: "Iris Radius"
text: "275"
<LoadDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooserListView:
id: filechooser
path: './images' # Starts with current path
BoxLayout:
size_hint_y: None
height: 30
Button:
text: "Load"
on_release: root.load(filechooser.selection)
Button:
text: "Cancel"
on_release: root.cancel()