Simple project which uses OpenCV with its Java bindings to detect faces on a photo.
- Clone this repository, and copy a photo with faces in
src/main/resources/test.JPG. - Unzip the content of
opencv-2.4.9-0.9-<your_OS>-<your_architecture>.jarand put the content oforg/bytedeco/javacpp/<your_OS>-<your_architecture>in your a folder of your$PATHenvironment variable.
Using OpenJDK 7, there can be a segfault of the JVM when trying to open the JPG file. Use Oracle JDK instead and you will be good.