Skip to content

This repository is the project for detecting vehicles from a highway surveillance camera footage

Notifications You must be signed in to change notification settings

nogh98/Vehicle-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle-detection

This repository is for detecting vehicles from a highway surveillance camera footage project

This project is done using MATLAB and its image processing toolbox

You should provide a video from a highway (at least 100 frames) for the algorithm to work

A sample video is already provided in the repository

How to run the algorithm?

Run VehicleDetection.m

make sure the video2.mp4 is in the same directory of your m-file

STEPS OF THE ALGORITHM:

(IMAGE PROCESSING SECTION)

First, the Background is calculated by the median filter over the temporal dimension of the video (across the frames)

alt text

Then, by subtracting the Background from each frame, the foreground is calculated

foreground

After that, using tresholding and some morphological operations, we are ready to detect vehicles

(COMPUTER VISION SECTION)

The black and white frames are fed into a Blob Analysis algorithm which returns the coordinates of the detected vehicle

Media1

About

This repository is the project for detecting vehicles from a highway surveillance camera footage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages