Skip to content

Deepansha-re/Traffic_Sign_Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚦 Traffic Sign Recognition using Deep Learning (CNN)

This project implements a Traffic Sign Recognition System using Convolutional Neural Networks (CNNs) and Computer Vision techniques. It is capable of classifying traffic signs from images and also supports real-time recognition using a webcam.

The project demonstrates a complete deep learning workflow: dataset handling β†’ model training β†’ evaluation β†’ real-time inference.

πŸ“Œ Features

Image classification using CNN (TensorFlow / Keras) Preprocessing and normalization of input images Performance evaluation using accuracy and confusion matrix Real-time traffic sign recognition via webcam Confidence thresholding and temporal smoothing for stable predictions

πŸ›  Tech Stack

Python TensorFlow / Keras OpenCV NumPy Matplotlib / Seaborn

πŸ“‚ Project Structure

TrafficSignRecognition/ β”‚ β”œβ”€β”€ dataset/ β”‚ └── README.md # Dataset instructions (full dataset not included) β”‚ β”œβ”€β”€ Traffic_sign_Reco.py # Model training and evaluation β”œβ”€β”€ webcam_predict.py # Real-time webcam prediction β”œβ”€β”€ check_structure.py # Dataset structure validation β”œβ”€β”€ requirements.txt # Project dependencies β”œβ”€β”€ .gitignore └── README.md

πŸ“Š Dataset

This project uses a custom traffic sign image dataset. ⚠️ The full dataset is not included in the repository due to size constraints. You can generate or collect your own images following the folder structure described below.

Expected Dataset Structure dataset/ └── raw_images/ β”œβ”€β”€ Stop/ β”œβ”€β”€ Speed_Limit_50/ β”œβ”€β”€ Yield/

πŸš€ How to Run the Project

1️⃣ Install Dependencies pip install -r requirements.txt

2️⃣ Train the Model python Traffic_sign_Reco.py

This will: Train the CNN model Save the trained model as final_traffic_sign_model.h5

3️⃣ Real-Time Traffic Sign Recognition (Webcam) python webcam_predict.py

Controls inside webcam window: q β†’ Quit s β†’ Save current frame r β†’ Reset predictions t β†’ Toggle confidence threshold d β†’ Debug information

πŸ“ˆ Results

High classification accuracy on validation data Stable predictions using confidence thresholding Smooth real-time recognition using temporal averaging (Sample result images and confusion matrix can be added in a results/ folder.)

🎯 Learning Outcomes

Practical implementation of CNNs for image classification Dataset preprocessing and augmentation techniques Model evaluation and performance visualization Real-time deployment of deep learning models using OpenCV

πŸ“Œ Future Improvements

Data augmentation for better generalization Transfer learning with pretrained models (ResNet, MobileNet) Deployment as a web or mobile application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages