-
Create Virtual Environment
mkvirtualenv --python=/usr/bin/python3.5 myenv
-
Install Django Framework
pip install django
-
Install Dependencies by pip
pip install -r requirements.txt
-
Start the virtual environment and Go to the project directory
source bin/activate cd AI_Hackathon_Server_Code-master/Django_Backend
-
Run Django Server
python manage.py runserver
So the server will run on the localhost.
https://github.com/garvitkataria/Pothole-Detection-App
Potholes have been a major cause of causalities in India. As per the latest data, in 2017, a total of 4,64,910 road accidents were reported in India. A constant detection of potholes and repair in proper time can not only result in ensure road surface quality but can also save many lives. The proposal describes one such low-cost road maintenance system by detecting potholes from images and videos gathered from drones and smartphone devices by using state of the art deep learning models. The objective is to detect the potholes from the images and map it to the Google Maps in real time.
Django, Flask, Ionic 4.0, Angular, TensorFlow
Source: http://machineintelligenceafrica.org/activities/hackathon/
We got our dataset from a hackathon where the challenge was to detect pothole in images, which is a binary classification problem. There were about 5000+ training images with labels. We got the images from dataset. However we had to manually label each of them for potholes. We manually labelled about 1500+ images using labellmg .
We created a mobile app for our project which have the following features:
- Authentication and Authorization.
- Mapping of pothole data on Google Maps
- Admin Dashboard for monitoring
- Camera Photograph upload of potholes with position from GPS.
- Feedback feature
We were able to train 3 tensor-flow deep learning state of the art models for object detection. The models and their results are listed below.
-
SSD_MOBILENET_V2_COCO (map=21)
• Average Precision (AP) @[IOU=1.50] = 0.409
• Average Recall (AR) @[IOU=1.50] = 0.473 -
FASTER_RCNN_INCEPTION_V2_COCO (map=24)
• Average Precision (AP) @[IOU=1.50] = 0.467
• Average Recall (AR) @[IOU=1.50] = 0.494 -
FASTER_RCNN_INCEPTION_RESNET_V2_ATROUS_COCO (map=37)
• Average Precision (AP) @[IOU=1.50] = 0.495
• Average Recall (AR) @[IOU=1.50] = 0.562
- SSD with MobileNet provides the best accuracy tradeoff within the fastest
- SSD is fast but performs worse for small objects comparing with others.
- SSD models are faster on average but cannot beat the Faster R-CNN in accuracy if speed is not a concern.
• Output depends on factors such as height from which image is taken, angle of inclination.
• Images captured in a wide variety of weather and illuminance conditions.
• Capturing video frames from drones and testing in real time.
Prototype of one such low-cost road maintenance system by detecting potholes from images and videos gathered from smartphone devices by using state of the art deep learning models. The objective is to detect the potholes from the images and map it to the Google Maps in real time.