This commit is contained in:
Olivier Barais
2019-04-08 13:36:30 +02:00
parent 8622fc94b2
commit d8a5523c0a

View File

@@ -189,14 +189,14 @@ This application was inspired by the ingenious ["Trollator" mobile Android appli
1. OpenCV Installation for local Maven repository 1. OpenCV Installation for local Maven repository
--- ---
OpenCV is a native library with Java bindings so you need to install this to your system. OpenCV is a native library with Java bindings so you need to install this to your system.
- *libopencv_java300.so* installed in you java.library.path ( - *libopencv_java346.so* installed in you java.library.path (
- *opencv-300.jar* availble for application - *opencv-346.jar* availble for application
There are good instructions how to build OpenCV with Java bindings for your own platform here: http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html There are good instructions how to build OpenCV with Java bindings for your own platform here: http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html
Once you have built the Java library you can install the resulting jar file to your local Maven repository using Once you have built the Java library you can install the resulting jar file to your local Maven repository using
mvn install:install-file -Dfile=./bin/opencv-300.jar \ mvn install:install-file -Dfile=./bin/opencv-346.jar \
-DgroupId=org.opencv -DartifactId=opencv -Dversion=3.0.0 -Dpackaging=jar -DgroupId=org.opencv -DartifactId=opencv -Dversion=3.4.6 -Dpackaging=jar
2. Building this application 2. Building this application
@@ -211,6 +211,7 @@ And run the application using the embedded Jetty plugin in http://localhost:8888
mvn package mvn package
java -Djava.library.path=/home/barais/git/opencv/build/lib/ -jar target/fatjar-0.0.1-SNAPSHOT.jar java -Djava.library.path=/home/barais/git/opencv/build/lib/ -jar target/fatjar-0.0.1-SNAPSHOT.jar
# Do not forget to update the path to your opencv install in Main.java # Do not forget to update the path to your opencv install in Main.java
# You can change the image trollface ;)
# Fork this repo # Fork this repo