It seems that opencv can't use native camera on Android 5.+ ( lollipop ). cf : http://code.opencv.org/issues/4185
Is there an other way to grab pictures from a native activity and then convert into cv::mat ? Or, maybe I could use jni to call a grab function in java from my c++ activity ?
Thank you for your help
Charles
You could use jni to call a grab function in java from c++ activity, like this(threshold example):
Java code:
JNI c++ code:
Hope this helps!