8000 GitHub - arielfayol37/Traffic: Classifying traffic signs images by training a deep convolutional neural network.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Classifying traffic signs images by training a deep convolutional neural network.

Notifications You must be signed in to change notification settings

arielfayol37/Traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Traffic Sign Recognition with TensorFlow

pip install -r requirements.txt

Background

As research continues in the development of self-driving cars, one of the key challenges is computer vision, allowing these cars to develop an understanding of their environment from digital images. In particular, this involves the ability to recognize and distinguish road signs – stop signs, speed limit signs, yield signs, and more.

In this project, we used TensorFlow to build a neural network to classify road signs based on an image of those signs. We used the German Traffic Sign Recognition Benchmark (GTSRB) dataset, which contains thousands of images of 43 different kinds of road signs.

Understanding

We have a dataset with labeled road sign images, and have implement the following functions in traffic.py.

load_data(data_dir)

The load_data function takes the data directory path as an argument and returns image arrays and labels for each image in the data set. We assume that the data directory contains 43 subdirectories, one for each category (numbered 0 through NUM_CATEGORIES - 1). Inside each category directory, there are several image files. We use the OpenCV-Python module (cv2) to read each image as a numpy.ndarray, resize them to have width IMG_WIDTH and height IMG_HEIGHT, and return a tuple (images, labels) where images is a list of numpy.ndarrays representing the images and labels is a list of integers representing the category number for each image.

get_model()

The get_model function returns a compiled neural network model. We assume that the input to the neural network is of shape (IMG_WIDTH, IMG_HEIGHT, 3) representing an image with three values for each pixel (red, green, and blue). The output layer of the neural network has NUM_CATEGORIES units, one for each of the traffic sign categories. The architecture of the neural network is up to us to decide. We may experiment with different numbers of convolutional and pooling layers, different filter sizes for convolutional layers, different pool sizes for pooling layers, different numbers and sizes of hidden layers, and dropout.

About

Classifying traffic signs images by training a deep convolutional neural network.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0