Ask Your Question


asked 2018-07-12 04:36:37 -0500

mamk92 gravatar image

System information (version)

OpenCV => 3.4.1

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2017 (Xamarin.Android)

Detailed description

I'm making Android Application using OpenCV 3.4.1 for image processing. The library has other features like video processing, 3d image and more, which I don't need in my app like.

Is it possible to generate the file which include some files, or is it possible just to extract only the feature from OpenCV which I am interested in and create .so for those features like(, if it posible, how?

edit retag flag offensive close merge delete


nice, that you made it here !

since is built from the android sdk, are you able to build that locally ? (you'd have to !)

berak gravatar imageberak ( 2018-07-12 04:38:59 -0500 )edit

I have read, can i do that with cmake but i dont know how. thanks.

mamk92 gravatar imagemamk92 ( 2018-07-12 04:48:36 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-12 04:49:30 -0500

berak gravatar image

updated 2018-07-12 05:01:04 -0500

well it IS possible, but it means, you have to rebuild the opencv4android sdk locally.

you'd have to start here , modify the build script and add a line like:


(add the modules you want/need there, seperated by commas)

and make sure, all tests and examples are OFF (they might rely on features you disabled)

you'll need:

the build scipt has some issues with python3, so make sure to use 2.7 there.

good luck !

edit flag offensive delete link more


Thank you for your answer. I have read this way but i don't know how to use it. i have tried but it is hard for me to make it. please let me know if you know a tutorial or link (step by step).

mamk92 gravatar imagemamk92 ( 2018-07-12 08:36:08 -0500 )edit

let me know if you know a tutorial or link

sorry, but none of this exists ;(

there are a few related questions on this site (use the search bar)

berak gravatar imageberak ( 2018-07-12 08:40:03 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-07-12 04:36:37 -0500

Seen: 15 times

Last updated: Jul 12