OpenCV Camera does not work on Android

240 views
Skip to first unread message

ShibaInu

unread,
Nov 26, 2021, 8:57:27 AM11/26/21
to Kivy users support
Hello everyone,

 I am currently trying to create an App working with Kivy and OpenCV. 

When i run it on my PC everything works fine. So i generated an APK with buildozer.

After starting the Application the Camera shows no footage, also after giving it permission with my SpecFile.



I am calling the Camera like that:


capture = cv.VideoCapture(0)

( I also tried (-1) ) 


And my CameraClass looks like this on the Image here.



The ret Variable Checks the Cam Class and says there is no cam.

Anyone knows how to handle this? 

Thank you!




buildozer.spec
CameraClass.PNG
Message has been deleted

ShibaInu

unread,
Nov 26, 2021, 10:57:38 AM11/26/21
to Kivy users support

Degenerate Tech

unread,
Nov 27, 2021, 6:17:38 AM11/27/21
to Kivy users support

ShibaInu

unread,
Nov 27, 2021, 6:48:50 AM11/27/21
to Kivy users support
Hey, thanks for the hint. You use the kivy camera. I use  capture = cv.VideoCapture(0) and you use the kivy camera. I can generate an apk. I just need to know why cv.VideoCapture wont work on Anrdoid
Reply all
Reply to author
Forward
0 new messages