Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philipp Auersperg
woodmaster-trainer
Commits
93b96d94
Commit
93b96d94
authored
6 years ago
by
Philipp Auersperg
Browse files
Options
Download
Email Patches
Plain Diff
camera als layer unter den controls
parent
d5f8f637
master
kivymd
kivymd-andremiras
python3
sqlalchemy
kivymd_works
bachelorarbeit_abgabe
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/kivy/cam.py
+65
-64
src/ui/kivy/cam.py
with
65 additions
and
64 deletions
+65
-64
src/ui/kivy/cam.py
+
65
-
64
View file @
93b96d94
...
...
@@ -6,6 +6,7 @@ import numpy as np
from
kivy.lang
import
Builder
from
kivy.uix.boxlayout
import
BoxLayout
from
kivy.uix.floatlayout
import
FloatLayout
from
kivy.uix.camera
import
Camera
from
kivy.uix.togglebutton
import
ToggleButton
...
...
@@ -89,77 +90,77 @@ try:
# btn_lifeview:btn_lifeview
# camera:camera
BoxLayout:
orientation:'vertical'
size_hint:.9,1
BoxLayout:
orientation:'horizontal'
size_hint:1,None
height:distance.height*2
padding_left:sp(20),0
MDNumberInput:
id:distance
textsize:20
value:4
step:.05
helper_text:'distance'
# helper_text_mode:'persistent'
MDLabel:
id:accel_info
text:root.accel_fmt
id:camera_space
size_hint:1,1
size:root.size
pos:root.pos
BoxLayout:
orientation:'horizontal'
size: root.size
pos:root.pos
BoxLayout:
orientation:'vertical'
size_hint:1,1
BoxLayout:
id:camera_space
size_hint:1,1
size_hint:.9,1
BoxLayout:
orientation:'horizontal'
size_hint:1,None
height:distance.height*2
padding_left:sp(20),0
MDNumberInput:
id:distance
textsize:20
value:4
step:.05
helper_text:'distance'
# helper_text_mode:'persistent'
MDLabel:
id:accel_info
text:root.accel_fmt
BoxLayout:
orientation:'vertical'
size_hint:1,1
BoxLayout:
size_hint:None,None
orientation:'vertical'
padding:dp(15)
MDSwitch:
text:'asdasd'
size_hint:None,None
size: sp(48), dp(20)
id:switch_camera
on_press: print self.active
MDLabel:
size_hint:None,None
height:dp(20)
text: 'Life view'
BoxLayout:
size_hint:None,None
orientation:'vertical'
padding:dp(15)
MDSwitch:
size_hint:1,None
BoxLayout:
size_hint:None,None
size:sp(48),dp(20)
id:switch_gps
MDLabel:
orientation:'vertical'
padding:dp(15)
MDSwitch:
text:'asdasd'
size_hint:None,None
size: sp(48), dp(20)
id:switch_camera
on_press: print self.active
MDLabel:
size_hint:None,None
height:dp(20)
text: 'Life view'
BoxLayout:
size_hint:None,None
height:dp(20)
text:'gps'
# MDNumberInput
:
# id:fov
# value:root.camera_fov #0.9257
# step:0.001
Label:
id:gps_pos
text:str(root.gps_position
)
height:'48dp
'
size_hint:.2,None
# Button:
#
text:
'cal.'
#
on_release:root.on_calibrate_accel()
orientation:'vertical'
padding:dp(15)
MDSwitch
:
size_hint:None,None
size:sp(48),dp(20)
id:switch_gps
MD
Label:
size_hint:None,None
height:dp(20
)
text:'gps
'
Label:
id:gps_pos
text:
str(root.gps_position)
height:'48dp'
size_hint:.2,None
MDRaisedButton:
size_hint:.1,1
text: 'Capture'
# height: '48dp'
on_press: root.capture()
MDRaisedButton:
size_hint:.1,1
text: 'Capture'
# height: '48dp'
on_press: root.capture()
'''
)
except
:
...
...
@@ -167,7 +168,7 @@ except:
raise
class
CameraClick
(
Box
Layout
):
class
CameraClick
(
Float
Layout
):
target_dir
=
StringProperty
(
"."
)
gps_active
=
BooleanProperty
(
False
)
gps_position
=
ObjectProperty
((
0
,
0
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help