You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from kivy.app import App
from kivy.lang import Builder
from kivy.utils import platform
from kivy_garden.xcamera.xcamera import XCamera
if platform == "android":
from android.permissions import request_permissions, Permission
request_permissions([Permission.CAMERA])
i get the white screen for camera
this is my code
from kivy.app import App
from kivy.lang import Builder
from kivy.utils import platform
from kivy_garden.xcamera.xcamera import XCamera
if platform == "android":
from android.permissions import request_permissions, Permission
request_permissions([Permission.CAMERA])
kv = """
FloatLayout:
XCamera:
id: xcamera
on_picture_taken: app.picture_taken(*args)
BoxLayout:
orientation: 'horizontal'
size_hint: 1, None
height: sp(50)
Button:
text: 'Set landscape'
on_release: xcamera.force_landscape()
Button:
text: 'Restore orientation'
on_release: xcamera.restore_orientation()
"""
class CameraApp(App):
def build(self):
return Builder.load_string(kv)
def main():
CameraApp().run()
if name == 'main':
main()
Anyone
suggest me i my code
The text was updated successfully, but these errors were encountered: