Computer Vision News - February 2019
26 Computer Vision News Focus on Tried for You The next step is to copy the compiled OpenCV shared library into your project. For that you need to copy the “libs” folder from the opencv-3.4.3-android-sdk to your project under (OpenCVwCamera\app\src\main) as demonstrated in the following figure: And rename it to “jniLibs” as you can see here: Since we want to have an app with some image processing capabilities based on the camera input, we will need to add camera permissions; this is done by adding the following lines into AndroidManifest.xml under app->manifests Next, let’s add JavaCameraView to content_main.xml; here are the lines to add for this: <uses-permission android:name="android.permission.CAMERA"/> <uses-feature android:name="android.hardware.camera" android:required="false"/> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/> <uses-feature android:name="android.hardware.camera.front" android:required="false"/> <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/> <org.opencv.android.JavaCameraView android:layout_width="fill_parent" android:layout_height="fill_parent"
Made with FlippingBook
RkJQdWJsaXNoZXIy NTc3NzU=