JavaCameraView fails on camera.open

asked 2017-05-21 19:57:14 -0500

jacobk gravatar image

updated 2017-05-21 20:19:28 -0500

Hi, I am trying to run the tutorials at https://github.com/opencv/opencv/tree... in android studio. Since they seem to be made for eclipse i tried copying the essential functionality into a new android app in android studio. I used the following procedure:

1) I created a new app in android studio and configured it to include the openck sdk as shown in the answer here. http://stackoverflow.com/questions/27... 2) I then included the essential functionality from the tutorial into it including activity code, layout and manifest file permission details.

I tried running the app but it fails saying that there is no camera or its locked. Looking further into the code indicates that it it failing at camera.open in javacameraview and the ide complains that camera is deprecated.

Im relatively a noob at this so im not sure if im doing something wrong here or if the code is old. Any help would be appreciated!

Thanks!

edit retag flag offensive close merge delete