1 | initial version |
I tried this too, the issue is cv2.VideoCapture(1).isOpened() == False , always
I used cv2.VideoCapture(1), and tried -1, 0 , and 2 on Android these last three all gave me:
[WARNING] [Base ] Unknown <android> provider
So it seems like 1 is the right device, in my case
Android tells me my app has Camera permission, so that is not the issue.
I also built OpenCV 4.2.0, the results were the same.
This used to work last year, so I speculate that Python for Android's (a Kivy sub project) shift to Android NDK 19 requires using the OpenCV Manager to initialize OpenCV.
Can anybody help me to find the documentation for the Python API for OpenCV Manager? (help(cv2) overwhelmed me, and I looked in site-packages on Android but opencv is a .so)
Instructions on how to use the Python API for OpenCV Manager would be even better. :)