Android - OpenCV Native Camera Library for Android 5.0 onwards? -


good day. building android application using opencv when noticed discrepancies in how opencv library takes video input of android device. using nexus 5 2nd generation.

below, have screenshot opencv application, showing square:

opencv screenshot

and can see, square seems stretched, , rectangle. comparison, here screenshot camera application:

camera application screenshot

however, screenshot taken native camera application, squares squares. changed code from:

<org.opencv.android.javacameraview      android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:id="@+id/color_blob_detection_activity_surface_view" /> 

to

<org.opencv.android.nativecameraview      android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:id="@+id/color_blob_detection_activity_surface_view" /> 

this works fine on devices running android 4.0-4.4, however, when ran on nexus 5 running on lollipop (5.0), gave me "it seems device not support camera (or locked)." error. have camera permissions in android manifest. checked files in libs folders, , noticed had libnative_camera_r2.2.0.so until libnative_camera_r4.4.0.so, inferred rx.x.x.so refers version number, , reason why not work because there's no native camera library android 5.0.

my question is:

when libnative_camera_r5.0.0.so released? can't use lower version because using features unique android lollipop.

the opencv change log version 3.0 lists native camera being dropped

"the other, bit sad inevitable news – had drop support nativecamera on android. used undocumented api , never worked stable."

from: https://github.com/itseez/opencv/wiki/changelog (post dated june 2015)


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -