OpenCV for Java
This docker image generates all the OpenCV Java class files contained in a JAR file as well as the native dynamic library for Java OpenCV. This is a self-contained library that works with JNI and is required to run a Java OpenCV application.
$ docker run --rm -it -v $(pwd):/gen joshuamarquez/opencv-java
$ cp /opencv-java-bin/* .
The command above copies opencv-300.jar
and libopencv_java300.so
to your current dir, these files are necessary to run OpenCV on Java.