Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

white Screen in Xcamera #46

Open
venkataraja705 opened this issue Apr 7, 2023 · 1 comment
Open

white Screen in Xcamera #46

venkataraja705 opened this issue Apr 7, 2023 · 1 comment

Comments

@venkataraja705
Copy link

image

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 picture_taken(self, obj, filename):
    print('Picture taken and saved to {}'.format(filename))

def main():
CameraApp().run()

if name == 'main':
main()

Anyone
suggest me i my code

@venkataraja705 venkataraja705 changed the title Help Me for Xcamera white Screen in Xcamera Apr 7, 2023
@OUZIYE
Copy link

OUZIYE commented Apr 30, 2024

I have the same problem,if you have solved the problem ,please tell me how to do,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants