https://github.com/eurohlam/opencv-java-samples
Some experiments with OpenCV
https://github.com/eurohlam/opencv-java-samples
java opencv
Last synced: 2 months ago
JSON representation
Some experiments with OpenCV
- Host: GitHub
- URL: https://github.com/eurohlam/opencv-java-samples
- Owner: eurohlam
- License: gpl-2.0
- Created: 2019-07-07T04:58:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T03:53:03.000Z (almost 7 years ago)
- Last Synced: 2025-05-18T11:34:11.605Z (about 1 year ago)
- Topics: java, opencv
- Language: Java
- Homepage:
- Size: 2.4 MB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opencv-java-samples
## how to install opencv for MAC using macport
sudo port selfupdate
sudo port install opencv +java
Check the installation
port contents opencv | grep java
It should show
/opt/local/share/OpenCV/java/libopencv_java343.dylib
/opt/local/share/OpenCV/java/opencv-343.jar
## how to add opencv support for java application
- alternative 1: add libopencv_java343.dylib as Java extension in MAC
cp /opt/local/share/OpenCV/java/libopencv_java343.dylib /Library/Java/Extensions
- alternative 2: run application with java.library.path
java -Djava.library.path=/opt/local/share/OpenCV/java