Skip to content

A deep learning and computer vision based warning indicator system for the vehicle drivers using live dash-cam footage.

Notifications You must be signed in to change notification settings

AshishGusain17/Vehicle-Warning-Indicator-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle-Warning-Indicator-System

A deep learning and computer vision based warning system for vehicle drivers using live dash-cam footages.

Tracking of vehicles
The tracking of the vehicles with a track ID can be seen below.

|

Watch the complete video


Detection of the lanes. 
Whenever the driver gets out of the lane, he will be displayed a warning to stay inside the lane.

|

Watch the complete video


Tail light detection
Detect all the tail lights of the vehicles applying brakes at night.

|

Watch the complete video


Traffic signal recognition
Warning is shown when to stop and resume again using traffic lights.

|



Vehicle collision estimation
Incase, a collision is estimated, driver is warned.

|



Pedestrian stepping 
Whenever, pedestrian comes in our view, a warning is displayed.

|


Dependencies:

Check for requirements.txt file with all the dependencies and their specific versions
For installation of the libraries: pip install -r requirements.txt

Project Structure:

  • lanes:This folder contains files related to lane detection only.
  • tf-color: This folder contains files related to traffic light detection and detect the colour and accordingly give instructions to the driver.
  • tracked: This folder contains detection and tracking algorithm for the vehicles.
  • untracked: Detection and visualization only
  • utils: contains various functions that are used continuously again and again for different frames.
  • estimations: Detect pedestrians and vehicles too close to us that may cause collision.
  • cropping: Cropping frames using drag and drop or clicking points.
  • display: All the gifs shown above are stored here.

Requisities:

Download the tensorflow model from here.

  • Provide the path to the labels txt file using variable named PATH_TO_LABELS.
  • Provide the path to the tensorflow model using variable named model_name.
  • Make sure all the files are imported properly from the utils folder. If you get an error, add the location of the utils folder using sys module.
  • Tensorflow version 2.0 is must or else you may come across various error.

Working:

Run python integrate3.py or python intyolo.py after following the above mentioned requisities.
Now select the dash area for the car by clicking on multiple points as shown below. This is done to 
remove detection of our own vehicle in some cases which may generate false results.

In the second step, select the area where searching of the lanes should be made. This may differ due to 
the placement of dash-cams in the vehicle. The area above the horizon where road ends should not be selected.

Now, you can visualize the working and see the warnings/suggestions displayed to the driver.
All the works that are implemented individually are present in their respective folders, which are integrated together.
Old models may have some bugs now, as many files inside utils are changed.
Visit honors branch of models repository forked from tf/models to see more work on this project, 
that I have done in google colab.

Drawbacks:

  • At night, searching for tail light should be made in the dark. If sufficient light is present, false cases can get introduced.
  • Tracking works good for bigger objects, while smaller may loose their track ID at places.
  • Threshold values used in lane detection needs to be altered depending on the roads and the quality of the videos.
  • Object detection needs to work properly for better results throughout. The model with higher accuracy should be downloaded from the link given above.

About

A deep learning and computer vision based warning indicator system for the vehicle drivers using live dash-cam footage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages