Giter Site home page Giter Site logo

ansarthescientist / traffic-sign-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 578 KB

This code implements a CNN using TensorFlow for German traffic sign classification with the GTSRB dataset. It preprocesses data, builds the model, trains it, evaluates accuracy, and generates a confusion matrix for performance analysis.

License: MIT License

Jupyter Notebook 100.00%
convolutional-neural-network deep-learning gtsrb-dataset image-classification keras tensorflow traffic-sign-recognition

traffic-sign-detector's Introduction

Traffic Sign Recognition with Convolutional Neural Networks

This repository contains code for a Convolutional Neural Network (CNN) designed to recognize and classify German traffic signs using the GTSRB dataset.

Description

This code implements a CNN using TensorFlow/Keras to classify 43 different types of traffic signs from the German Traffic Sign Recognition Benchmark dataset. The model is trained on images of traffic signs and achieves an accuracy of 97.13% on the test set.

Features

  • Data Preprocessing: Resizing images to 50x50 pixels, preparing training and test sets.
  • CNN Architecture: Utilizes Convolutional layers, MaxPooling, BatchNormalization, Dropout, and Dense layers.
  • Model Training: Trains the CNN with Adam optimizer and categorical cross-entropy loss function over 20 epochs.
  • Model Evaluation: Computes accuracy metrics on a test dataset and generates a confusion matrix.
  • Visualization: Plots training and validation accuracy/loss curves, as well as a heatmap of the confusion matrix.

Instructions

  1. Clone the repository.
  2. Install necessary libraries and dependencies.
  3. Execute the code in a Jupyter Notebook or Python environment.
  4. Explore the training process, accuracy, and model evaluation metrics.

Tags

  • Traffic Sign Recognition
  • Convolutional Neural Network
  • Deep Learning
  • TensorFlow
  • Keras
  • Image Classification
  • GTSRB Dataset

License

This code is licensed under MIT License.

Feel free to contribute or use this code for educational or research purposes.

traffic-sign-detector's People

Contributors

ansarthescientist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.