Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.12 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.12 KB

Variable-Traffic-Light-System

This projects is a step-forward towards the problem of Traffic in our country.

Getting Started

The project is easy to set up. Just download the .xml files (you can use any one of them) and python file on your system. Download the required libraries

Prerequisites

You will need only a single library of Python - OpenCV

Code Explanation

  1. Make a classifier for 'Cars'.
  2. Define Vehicle Detection functions for the four junctions of Traffic Light.
  3. Check the count of the cars on each side of the junction.
  4. Then according to the count of the cars, estimate the time for the green light at every junction.
  5. This time is revised every time the green light of the particular junction goes off.

Additions to be made

  1. You need to add an Rasberry pi and four pi cams for each side of the junction to take live pictures of the traffic (Obviously this is needed to be replaced with the CCTV cameras on the junction).
  2. The image processing can be improved using machine learning.

Uses

This helps in deciding the green light's on time and can really help in decreasing the traffic.