[Python] Kivy Camera display is rotated -90 degrees

Discussão em 'Python' iniciado por Stack, Junho 3, 2025.

  1. Stack

    Stack Membro Participativo

    I am accessing my camera in android 4.4 using python with kivy framework.

    This is my simple code:

    from kivy.app import App
    from kivy.uix.camera import Camera
    from kivy.core.window import Window

    class CamApp(App):
    def build(self):
    return Camera(resolution= Window.size)

    CamApp().run()


    But when I ran my code, it displayed this:

    [​IMG]

    Ideally, it should look like this:

    [​IMG]

    It looks like the kivy Camera is displaying the output with a built in -90 degrees. Is this normal or a bug? Or should I rotate the display myself?

    Continue reading...

Compartilhe esta Página