1 | initial version |
Are you sure that you can open the default camera? You simply return Success
without a check.
First I would eliminate the videocapture handling from the native code and see if the native call works from the onCreate
.
Anyway have you set the following in Android.mk
?
OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on
Have you set camera rights in AndroidManifest.xml
?
<uses-permission android:name="android.permission.CAMERA"/>
Do you specifically need static initialization? If so then you need to configure your environment according to this description. Otherwise it is recommended to use async initialization.