How to reduce the OpenCV library size for Android NDK

asked 2014-06-04 08:48:08 -0500

sanchiski gravatar image

Hello, I'm using the Stitcher functionality within Android NDK. For this I'm linking statically the OpenCV library. The problem I'm seeing is that by the nature of how OpenCV has been coded a lot of unnecessary code is being also linked and not stripped off, which by readying the code I also understand no linker will know how to strip, ie: using anonymous enums, etc., which makes a linker difficult to guess what is not used.

Is there any example or has anyone achieved to create a minimal/compact library to use only the stitcher related code and not to have included so much unnecessary and unrelated code?

I know about OpenCVManager but this is not an option for me.

Thanks

edit retag flag offensive close merge delete