GithubHelp home page GithubHelp logo

traffic-sign-prediction-app_1's Introduction


Traffic sign prediction app deployed on Stramlit Cloud

Built with

How To UseHow To Run LocallyBuilt processFeedback

How To Use

App link: https://boramorka-traffic-sign-prediction-app-1-appmain-app-pxaza3.streamlitapp.com/

Note: The model was trained on German road signs. please use German signs.

Note: The application may be in sleep mode. In this case, you will see an offer to wake it up. You'll have to wait a couple of minutes.

Example

How To Run Locally

# Clone this repository
$ git clone https://github.com/boramorka/Traffic-sign-prediction-app_1.git

# Go into the repository
$ cd Traffic-sign-prediction-app_1

# Load traffic_sign_model.h5 from app folder and test it using Keras API

Built process

Development process described in Traffic sign prediction model building jupyter notebook

Main notes:

  • Libraries:
    # Importing libraries
    import os
    import pandas as pd
    import numpy as np
    import matplotlib.pyplot as plt
    from matplotlib.image import imread
    import seaborn as sns
    import random
    from PIL import Image
    from sklearn.model_selection import  train_test_split
    from tensorflow.keras.utils import to_categorical
    import tensorflow as tf
    from tensorflow.keras.models import Sequential
    from tensorflow.keras.layers import Dense, Flatten, Dropout, Conv2D, MaxPool2D
  • Device: NVIDIA GeForce RTX 2060
  • Model Architectue:
    model = Sequential()
    
    model.add(Conv2D(filters = 64, kernel_size = (3,3), input_shape = x_train.shape[1:], activation = 'relu', padding = 'same'))
    model.add(MaxPool2D(pool_size=(2,2)))
    model.add(Dropout(0.5))
    
    model.add(Conv2D(filters = 64, kernel_size = (3,3), activation = 'relu'))
    model.add(MaxPool2D(pool_size=(2,2)))
    model.add(Dropout(0.5))
    
    model.add(Flatten())
    model.add(Dense(128, activation = 'relu'))
    model.add(Dropout(0.5))
    model.add(Dense(43, activation = 'softmax'))
  • Total params: 445 803

Conclusion

We started with downloading the dataset, preprocessing it, created the model and found out the predictions using the model. During preprocessing we found that this dataset has 43 classes. Model reached an accuracy of 95%+ in just 50 epochs, we can further optimize the model using hyper parameter tuning and reach a higher accuracy.

Scope

This model can be used in self driving cars which will enable them to automatically recognize traffic signs similarly the driver alert system inside cars will help and protect drivers by understanding the traffic signs around them.

Feedback

🤵 Feel free to send me feedback on Telegram. Feature requests are always welcome.

🧮 Check my other projects.

traffic-sign-prediction-app_1's People

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.