Ask Your Question
0

Size libopencv_java3.so

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

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 libopencv_java3.so 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(libopencv_core.so, libopencv_imgproc.so)? if it posible, how?

edit retag flag offensive close merge delete

Comments

nice, that you made it here !

since libopencv_java3.so 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 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

berak gravatar image

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

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:

        BUILD_LIST="core,imgproc",

(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

Comments

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 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 1,345 times

Last updated: Jul 12 '18