Ask Your Question

How to compile own opencv library for Android platform?

asked 2012-08-30 00:33:49 -0500

arthur1026 gravatar image

I am using the Android binary package of Opencv right now (by following the tutorials here:

But I am in the need of modifying the maximum number of iterations of RANSAC in the cvFindHomography() function. However I did not find any instructions about how to compile the binary package from the source file for Android platform.

So could anybody direct me into some tutorials on doing this?

Thanks a lot!

edit retag flag offensive close merge delete


up up up~ Anyone knows the answer ?

arthur1026 gravatar imagearthur1026 ( 2012-09-02 22:14:14 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2012-09-06 01:02:52 -0500

Andrey Pavlenko gravatar image

An outdated instruction exists on OpenCV DevZone wiki, but it needs update.

In particular (1) the OpenCV sources are now in GIT and (2) after successful build for Android you need to run "make install" command in the build folder and get a kind of SDK in "install" subfolder.

edit flag offensive delete link more

answered 2012-09-05 17:23:14 -0500

Rui Marques gravatar image

Things changed with the latest opencv and I think the devs haven't finished a tutorial updated to the current version. You will be able to find it here when they do:

You can find the latest (unstable) documentation here:

To compile just the C++ version you can read here:

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-08-30 00:33:49 -0500

Seen: 287 times

Last updated: Sep 06 '12