Skip to content

lonebhen/Traffic-sign-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Sign Recognition

This project is a deep learning model that uses convolutional neural networks (CNNs) to predict traffic signs. The model is trained on the German Traffic Sign Recognition Benchmark (GTSRB) dataset, which contains over 50,000 images of 43 different traffic signs.

Requirements

  • Python 3.5 or later
  • TensorFlow 2.0 or later
  • NumPy
  • Matplotlib
  • OpenCV (for image pre-processing)

or simply download all the files in the requirements.txt file [pip install -r requirements.txt]

Getting Started

  1. Clone this repository:

  2. Download the GTSRB dataset from here and extract it to the root directory of the project.

Model Architecture

The model architecture consists of the following layers:

  • 2 convolutional layers with 32 filters each, kernel size of (3,3) and ReLU activation
  • Max pooling layer with a pool size of (2,2)
  • Dropout layer with a rate of 0.25
  • 2 convolutional layers with 64 filters each, kernel size of (3,3) and ReLU activation
  • Max pooling layer with a pool size of (2,2)
  • Dropout layer with a rate of 0.25
  • Flatten layer
  • Fully connected layer with 512 units and ReLU activation
  • Dropout layer with a rate of 0.5
  • Fully connected layer with 43 units and softmax activation

Results

The model achieved an accuracy of 99.2% on the test set.

Note

This is a simplified version of a traffic sign recognition system, in real-world applications, more preprocessing and data-augmentation techniques should be applied, and more advanced architectures should be considered.

Feel free to use this code as a starting point for your own project and improve upon it.

References

About

A deep learning project that classifies traffic signs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published