Make the camera fill the entire screen with Python/Kivy

Asked

Viewed 56 times

0

I’m not facing errors, but when accessing the camera using kivy, I don’t know how to make the image occupy the whole size of the window. Below is the part of Kv file that does this:

<CapturarImagens>:

    orientation: 'vertical'
    Camera:
        id: camera
        resolution: (860, 600)
        play: True

In "Resolution: " I tried for (self.width, self.height) but showed white screen. Someone knows how I should do?

1 answer

0

I don’t know why I showed white screen before, but now when using:

Camera:
    resolution: (self.width, self.height)

It worked perfectly. Maybe I wrote it wrong and didn’t realize... The only thing is that it shows some errors as below:

[ WARN:0] videoio(MSMF): OnReadSample() is called with error status: -1072873821
[ WARN:0] videoio(MSMF): async ReadSample() call is failed with error status: -1072873821
[ WARN:1] videoio(MSMF): OnReadSample() is called with error status: -1072873821
[ WARN:1] videoio(MSMF): async ReadSample() call is failed with error status: -1072873821

I still don’t know if these mistakes are worrying...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.