Created By: Patrik Beqo, Sathira Katugaha and Sarvath Sharma
Link to Web App: https://traffic.xor.dev/
We are on the verge of creating a Smart Traffic Control System. By using Image Processing Tools from Matlab we aim to take an input, which will be a video of an intersection where we will interpret the density of the traffic flow throughout certain points in time. This data will then be used to determine the duration of traffic signals and will show a histogram of the traffic flow. The histogram will show the number of cars and from which direction the density is the largest (TBD).
- Grab videos of traffic intersections
- Analyze the density and patterns of the environment using Matlab
- Need to clean image and isolate vehicles on the road using foreground detection
- Once cleaned, use Blob Analysis/Kalman Filter to detect and track vehicles
- Using a Queue ADT, store the values of the traffic density into a CSV file
- Using Python run the MATLAB script and display the graph of the traffic flow on the website
- Using a server and host run the entire program instead of locally running it
We will be using .mp4 file format with 60fps video quality.
To watch the actual MATLAB script run make sure you have MATLAB installed and download the GitHub repo. In the motionTracking.m file edit the path of where the video is. The line to change is line 138:
file = fullfile('..', 'static', 'uploads', 'traffic-test.mp4');
Change it such that the path is valid (currently is '../static/uploads/traffic-test.mp4')