Human Hair Detection
Java based GUI application for extraction of human hair region from input image of human face using OpenCV.
Prerequisities
- Oracle Java v8.0 (64bit)
- JavaFX
- Netbeans >= v8.0
- OpenCV 3.1.0 native installation
Getting Started
Install Java with NetBeans
- Visit oracle and download JDK 8 with Netbeans for your platform. JDK 8 comes bundled with JavaFX, so you don't have to install JDK manually.
Install OpenCV
- Visit openCV and download the source code.
- Extract the contents of ZIP in a directory and follow the instructions in the link below to compile OpenCV natively. http://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html
Setting up the project in Net Beans
HTTPS
git clone https://github.com/sujit25/Human-hair-detection.git
SSH
git clone git@github.com:sujit25/Human-hair-detection.git
- Add reference to opencv-310.jar available from binaries generated during compilation.
- Go to Hair Detection Netbeans Project > Properties > Run > VM Options : add
-Djava.library.path=/path/to/lib/containing/opencv_libraries
for e.g. on my machine:
-Djava.library.path="/home/sujit25/softwares/opencv-3.1.0-with-cuda8/release/lib"