Reputation: 13
I've developed an android application which is using Opencv v2.4.10. I have used javacameraview in my capture activity and it is working fine on devices which has api level lower than 23. But protected boolean initializeCamera(int width, int height) function returns false on devices with api level 23 (Android Marshmallow).
I couldn't find any possible solution for this error.Has anyone encountered this problem? How can i solve it?
Thanks in advance.
Upvotes: 1
Views: 790
Reputation: 134
You will have to request permission for access to the camera at runtime by adding it on enableView() method on JavaCameraView object.
Upvotes: 1