RoninSanta / VideoProcessing-MovementDetect_and_Counting

A python script that can detect cars moving in the video and count the number of moving objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video Processing - Movement Detection and Counting

A python script that can detect cars moving in the video and count the number of moving objects. This is the prototype of my final coursework project, I used the basis of the detection system shown in this python script and created a full-fledged Camera Surveillance System.

[Background]

This script uses frame differencing and background subtraction techniques to detect and label cars on the 'Main Street'. Frame differencing involves comparing two video frames and identifying any changes in pixels. Background subtraction involves identifying moving objects by comparing the current frame and ref frame.

[Open-CV]

This library is the KEY for object detection and analysis, it is an important open-source computer vision it can be used to detect and recognize faces, identify objects, classify human actions in videos, track camera movements, track moving objects etc...

[Highlight Objects]

After applying the final function, I use the cv2 library to detect contours and draw bounding rectangles around objects that meet a certain area threshold (>2500). This helps to avoid tagging bicycles and pedestrians.

[Before] before

[After] after

About

A python script that can detect cars moving in the video and count the number of moving objects


Languages

Language:Jupyter Notebook 100.0%