GithubHelp home page GithubHelp logo

azri41 / adaptive_traffic_light_system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vr620/adaptive_traffic_light_system

0.0 0.0 0.0 2.17 MB

Traffic congestion lead to disorder on roads. Currently traffic signals have pre defined timers. Our approach is, to control the signals based on real time vehicle density thus saving time, resources and reducing pollution.

License: MIT License

Jupyter Notebook 96.34% Python 3.66%

adaptive_traffic_light_system's Introduction

ADAPTIVE_TRAFFIC_LIGHT_SYSTEM

ABOUT REPOSITORY

what is the problem ?

Traffic congestion lead to disorder on roads. Currently traffic signals have pre defined timers. Our approach is, to control the signals based on real time vehicle density thus saving time, resources and reducing pollution.One of the main reasons behind today’s traffic problem are the techniques that are used for traffic management. It has no emphasis on live traffic scenario, thus leading to inefficient traffic management systems.

If the traffic light timers are showing correct time to regulate the traffic, then the time wasted on unwanted green signals will be saved. Timer for every lane is the simplest way to control traffic. And if those timers are predicting exact time then automatically the system will be more efficient.

https://camo.githubusercontent.com/46eeb2384e8f7e1213475d5b1bfdb2404a2c9d81/68747470733a2f2f7777772e7472616e73706f72746174696f6e2e676f762f73697465732f646f742e676f762f66696c65732f322e6a7067

REQUIREMENTS

  1. TENSORFLOW

  2. NUMPY

  3. OPENCV

  4. YOLO

DATA

1.link of input folder

2.link of output

ROADMAP OF COUNTING.

openCV approach Placing a Camera on each side of the intersection and Processing the images to get the number of vehicles on each side of the intersection.

  1. Read using OpenCv Library in Python.
  2. resized according to need.
  3. use opencv dnn module to detect images(use trained weights and config file).
  4. get the count of vehicles using label list.

link of process

https://github.com/vaibhavsethia/Smart-Traffic-Light/blob/master/IMG/imagenew.jpg

How are these Numbers manipulated ??

Once stored in a list the number of cars are manipulated to clear the congestion as soon as possible .

1st method using variance of cars in all four lens

  1. count vehicles in all four lens.
  2. calculate varience.
  3. allotment of timings according to the varience. link of method

2nd method using profit loss method

  1. count vehicles in a single len.
  2. calculate timing of that len.
  3. calculate the profit gained from this cycle.
  4. add the profit to the next len timing if that len is congested. link of method

Future Scope

  1. Can be developed for three lanes of each side of the road ( Prototype Extended Version )
  2. Can be moulded to be used in situations like mass evacuation
  3. Linking of other traffic lights in sync to provide better congestion clearing Can be developed further to be used by emergency vehicles to provide Green route and decreasing accidents on intersections.
  4. repeat.

adaptive_traffic_light_system's People

Contributors

vr620 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.