Give image of a person (frontal face), and this program will try to recognize male and female using Template Matching. Face detection part is accomplished using OpenCV.
How to Run?
- Import the project in IDE, & integrate OpenCV in the build path. Follow this link for installing OpenCV in Java project.
- For training the machine run Train.java.
- For testing run Predict.java (change file-paths in the main method according to need).
Visual of Learned Templates
License
GenderRecognizer is licensed under MIT License.