Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate the metaio + Open CV for android application?

Hi i'm trying to create a application related to the Augmented Reality (AR) and was able to configure my application with Metaio SDK and OpenCV library successfully in two separate application.

but the thing is i want to use both the library of OpenCV and Metaio together into one application. so can any one help me with its integration.

In my single application I want to use OpenCV for markerless detection and MetaIO for 3D Model rendering.

Metaio:http://www.metaio.com/

OpenCV:http://opencv.org/

=====>

I'm using opencv to detect shapes in a camera image and want to display 3D objects rendered by metaio on those shapes. Similar to marker tracking.

Metaio and openCV, each have their own cameraview. I have disabled cameraview of openCV.

I want to convert an ImageStruct object received in onNewCameraFrame() method into an OpenCV Mat in Android. For this, I have registered MetaioSDKCallback to continuously receive camera frame.

But onSDKReady() and onNewCameraFrame() method of this callback is not being called,though I have added 'metaioSDK.requestCameraImage()'.

This where i'm stuck with it.

like image 790
Balu Avatar asked Feb 05 '14 08:02

Balu


People also ask

How to integrate OpenCV with Android Studio?

Go to the location > OpenCV > SDK >java and done, the android studio will automatically fetch the module from there. Click on Next > finish. Now you have to modify the project structure also.

What is the best book to learn OpenCV for Android development?

The book “Android Application Programming with OpenCV” is now for sale from Packt Publishing with free shipping to many countries! It provides a fast-paced introduction to OpenCV’s Java bindings for Android. Integration with Android SDK, MediaStore, and OpenGL is also covered. Setting up an Android development environment and OpenCV.

Where can I find instructions on OpenCV SDK?

Detailed instructions on SDK are available in the “OpenCV for Android SDK” tutorial. You’ll see a couple of sample applications, which you can use as a basis for your own developments. “Android development with OpenCV” shows you how to add OpenCV functionality into your Android application.

How to add OpenCV as a dependency in Android app?

Now you have to modify the project structure also. So go to File > Project Structure > Dependencies in All Dependencies folder click on the + icon then add the module dependency. Click on the app and then select the OpenCV dependency and then next then OK.


1 Answers

I suggest you to integrate the sdk of Opencv4android, and to see the samples come with, they are very good examples to teach you how to use the camera easily

For your objective probably face detection example is good to check.

Here is the tuto that help you to install and configure opencv SDK

For AR I can't help you so much, but have look at this discussion, it could be helpful.

like image 99
Y.AL Avatar answered Oct 02 '22 01:10

Y.AL