Code Monkey home page Code Monkey logo

traffic's Introduction

Traffic Sign Recognition using Supervised Learning

This repository contains a Python program that uses supervised learning to identify traffic signs in a photograph. The program trains on a dataset and applies a convolutional neural network to classify traffic signs in the images.

Installation

To use the program, you will need to have Python 3.x installed on your computer. You can clone this repository and navigate to the project directory in your terminal or command prompt.

Install the dependencies by running the following command:

pip3 install -r requirements.txt

Dataset

The program was trained using the German Traffic Sign Recognition Benchmark (GTSRB) dataset, which contains thousands of images of traffic signs. The dataset was preprocessed and augmented to increase the size and diversity of the training set.

Install the GTSRB dataset to be analyzed here. Now, unzip the file.

Usage

To use the program, run the 'traffic.py' and provide a a path to the dataset you want to analyze as a command-line argument.

python3 traffic.py gtsrb

Training

The model was trained using a convolutional neural network (CNN) with multiple layers. The CNN was trained using a supervised learning approach, where the correct output (i.e., the type of traffic sign) was provided for each training image. The training process used the Adam optimizer and a categorical cross-entropy loss function.

Evaluation

The trained model was evaluated using a test set of images from the GTSRB dataset. The accuracy of the model on the test set was 98%.

traffic's People

Contributors

ksmit323 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.