Give image of a person or persons (frontal face like this), and this program will try to recognize male and female using Template Matching. Face detection part is accomplished using OpenCV.
- Download Gender Recognizer, and import it in your IDE.
- Now, integrate OpenCV in the build path. Follow this link for installing OpenCV in your Java project.
- For training the machine run Train.java.
- For testing run Predict.java (change file-paths in the main method according to need).
If you like this project, you may also like AlphabetRecognizer- Simple Optical Character Recognizer and SkinDetector- Detects Human Skin From Image.
GenderRecognizer is licensed under MIT License.