Skip to content

πŸ‘€ Gender Prediction System using Machine Learning 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.

License

Notifications You must be signed in to change notification settings

2000pawan/Gender_Prediction_Sytsem

Repository files navigation

πŸ‘€ Gender Prediction System using Machine Learning

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.


πŸ” 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

πŸ› οΈ Technologies Used

  • Python
  • Tkinter (GUI)
  • OpenCV (Computer Vision)
  • PIL (Image Display)
  • Scikit-learn (Machine Learning)
  • Joblib (Model Serialization)
  • Haar Cascade (Face Detection)

πŸ“ Project Structure

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

πŸš€ Getting Started

1. Clone the Repository

https://github.com/2000pawan/Gender_Prediction_Sytsem.git
cd Gender-Prediction-System

2. Install Dependencies

Make sure you have Python 3 installed. Then, install required packages:

   pip install opencv-python Pillow numpy scikit-learn joblib

3. Run the Application

   python app.py

4. Login Credentials

Username: admin

Password: admin

πŸ€– How the Model Works

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.

Screenshots

Screenshots

πŸ” Login Page

Login Page

🏠 Main Menu

Main Menu

πŸ“· Image Prediction Example

Prediction

πŸ–Ό Sample Output

A bounding box and label (e.g., Gender: Male) are drawn around detected faces in images or video frames.

πŸ“Œ Notes

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.

πŸ‘¨β€πŸ’» Developed By

PAWAN YADAV

(AI Engineer) | 2025

πŸ“§ Contact: [email protected]

πŸ“œ License

This project is licensed under the MIT License.

About

πŸ‘€ Gender Prediction System using Machine Learning 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published