How do i deploy C++ OpenCV code on Android

asked 2019-11-25 03:57:54 -0500

Dimitar Veljanovski gravatar image

updated 2019-11-25 05:19:50 -0500

berak gravatar image

I want to develop an OpenCV application that works on android devices. The code is almost done and i need to start thinking about deployment. I did some RESEARCH and found that i need to use the OpenCV SDK which is only compatible with the Java API.

Is there any way to compile my headers and cpp's and use them on android?

edit retag flag offensive close merge delete

Comments

uhm, can you take a look at the android samples (most of them a mix of c++/jni and java code(think: app framewrork / gui) ?

then you probably want to show us, what you already have, and refine your question ?

berak gravatar imageberak ( 2019-11-25 05:10:52 -0500 )edit

@berak i basically have a class which has functions such as set_sample (sets sample image of the object, and finds keypoints and descriptors of the sample), get_camera_feed(reads from camera and returns a cv mat (image from camera)), i also have update(where i match descriptors of the sample and the scene, then do some math to find scale rotation and middle of the object). There are a few other methods in the class but they are not relevant. I discussed using jni with my coworker, he said its too demanding in performance. I wanted to ask if i can compile the DLLs into SDKs for android. Is that possible?

Dimitar Veljanovski gravatar imageDimitar Veljanovski ( 2019-11-26 01:32:43 -0500 )edit