Giter Club home page Giter Club logo

sastava007 / traffic-control-plus-plus Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 12.0 7.77 MB

A project for ticketing automated challan for overspeeding vehicles on a decentralized network, and generating dynamic traffic signal timings based on traffic.

Python 3.25% JavaScript 95.16% HTML 0.95% Solidity 0.64%
automated-challan traffic-light traffic-control traffic-jam blockchain compter-vision opencv traffic-light-timings overspeeding-vehicles

traffic-control-plus-plus's Introduction

TC++ : The complete Traffic Solution

Idea

The main idea is to provide a smart solution for our existing traffic system. Including automated challan for overspeeding vehicles on a decentralized network and dynamic traffic signal timings and also create an interactive visualization through a dashboard to monitor the above functionalities. The Idea won 2nd Runner Up at Technex Hackthon, Nagpur.

Solution

The idea has three major parts :

  • Detect and identify overspeeding vehicles using Computer Vision Technology and generate automated challan using Decentralized Blockchain Network.
  • Detect traffic density on Signals and dynamically change the traffic light timings accordingly using Background Subtraction in Computer Vision.
  • Create the dashboard for the above features for monitoring purposes and map the realtime traffic on Google Maps.

Details

Detect the vehicles using blobs and track them to calculate their speed. If the speed exceeds a certain threhold capture the ROI(Region of intrest), save it and detect the number plate of the vehicle extract the number and call the Info API to get info of vehicle and send the challan to the same using blockchain.

Detect the static standing vehicles on the traffic signal, calculate the density of traffic based on the lane and dynamically change the traffic light timings using our self-developed algorithms.

System Architecture

enter image description here Overview of Architecture

We are running two microservices, The Python Server(Flask framework) processes the image processing, speed detection and dynamic traffic light part. NodeJS handles the Blockchain Network.

Tech Stack

  • React
  • Python(Flask) and NodeJS Microservices
  • openCV
  • Etherium
  • Solidity
  • Matic
  • AntD React Components

How it works?

Please go through the below illustrations, to understand how exactly a speeding car will be detected and how we'll be extracting it's number plate. Once the number plate is detected, we'll fetch the detail of it's owner and issue a ticket against him using our blockchain network.

Overspeeding Vehicle Detection enter image description here Extract the Number Plate of Overspeeding Cars enter image description here

Speed Detection Algorithm

enter image description here

Speed Detection Algorithm

enter image description here

Note:

This repository contains the code for number plate extraction, and speed detection. The other service to generate and issue ticket for over-speeding vehicles is developed as a seperate service. It was developed in 24hr at Technex Hackathon, under modern-mobility theme and we landed as 2nd runner up.

About the Team

We are from IIIT Gwalior The Three Amigos, passionate about Tech and crazy about Tshirts and Swags, do connect, network and collaborate.

traffic-control-plus-plus's People

Contributors

prajwal714 avatar sastava007 avatar shivam1192 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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