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
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
Extract the Number Plate of Overspeeding Cars
Speed Detection Algorithm
Speed Detection Algorithm
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.