This is a GUI-based application built with Python, Tkinter, OpenCV, and a Machine Learning model to predict gender from images, videos, or live camera feeds using facial features.
- π· Predict gender from uploaded images
- ποΈ Predict gender from video files
- πΉ Predict gender from live webcam feed
- π§ Trained ML model integrated for real-time predictions
- π Simple login system
- π₯οΈ Interactive GUI using Tkinter
- π¦ Packaged and modular code structure
- Python
- Tkinter (GUI)
- OpenCV (Computer Vision)
- PIL (Image Display)
- Scikit-learn (Machine Learning)
- Joblib (Model Serialization)
- Haar Cascade (Face Detection)
Gender-Prediction-System/
βββ model.pkl # Trained gender classification model
βββ haarcascade_frontalface_default.xml # Face detection model
βββ app.py # Main application code
βββ README.md # Project documentation
βββ screenshots/
βββ login_page.png
βββ main_menu.png
|ββ image_prediction.png
https://github.com/2000pawan/Gender_Prediction_Sytsem.git
cd Gender-Prediction-System
Make sure you have Python 3 installed. Then, install required packages:
pip install opencv-python Pillow numpy scikit-learn joblib
python app.py
Username: admin
Password: admin
The ML model is trained to classify facial images as either "Male" or "Female".
It uses grayscale facial pixel values, resized to 90x90, as input features.
Prediction is made using a pre-trained model saved as model.pkl.
A bounding box and label (e.g., Gender: Male) are drawn around detected faces in images or video frames.
To train your own model, use a labeled dataset of facial images and preprocess them into grayscale 90x90 arrays. If any Problem occur then use Gender Prediction.ipynb file for step by step process.
Replace the current model.pkl with your own if needed.
PAWAN YADAV
(AI Engineer) | 2025
π§ Contact: [email protected]
This project is licensed under the MIT License.