Docker image to build OpenCV Android SDK.
Size of shared library libopencv_java4.so
is reduced.
It includes only core,imgcodecs,imgproc and java modules.
And this use static library as C++ runtime.
Architecture | Official build | libc++_shared.so | This build (not needs libc++_shared.so) |
---|---|---|---|
arm64-v8 | 17M | 5.9M | 8.9M |
armeabi-v7a | 11M | 4M | 5.7M |
x86_64 | 51M | 6.1M | 13M |
x86 | 36M | 5.3M | 11M |
docker compose build
docker compose run main