Motion Detection for Surveillance Applications

Citation Author(s):
Jabulani Brown
Submitted by:
Jabulani Mpofu
Last updated:
Mon, 10/30/2023 - 11:50
Data Format:
0 ratings - Please login to submit your rating.


This dataset, presents the results of motion detection experiments conducted on five distinct datasets sourced from bungalows, boats, highway, fall and pedestrians. The motion detection process was executed using two distinct algorithms: the original ViBe algorithm proposed by Barnich et al. (G-ViBe) and the CCTV-optimized ViBe algorithm known as α-ViBe.

Within the provided main zip file, users will find the detection results for each of these algorithms applied to each dataset, with all images stored in the PNG format. Additionally, the zip file includes accompanying .txt files, which present the confusion matrices for each result folder pertaining to every dataset.


This is provided to help gather statistics from the detection results.


1.   Go to > Datasets, to download the 2012 Dataset.

2.   Go to > results, to download the necessary code (MATLAB or Python) for processing the detection results against the grountruth data.



(i)  Use "Current Folder" to move into the folder with the 2012 dataset.

(ii) Move the provided detection result images into their respective folder (the images are already

     in the desired .png format).

(iii) Call processFolder(datasetPath, binaryRootPath)

      ex : processFolder('C:\dataset', 'C:\results')


3B. On Python:

(i)Download the dataset and unzip all the files in the same folder. ex :


You should get this :







*** Please do not change or put anything else in the "dataset" folder ***



On the same level as dataset\, there is a 'results' folder filled with the

        proper folder hierarchy.  These folders are all empty and will contain your




(ii)  If you already have an executable for your motion detection method and

      would like to run it on every video, search for the 'TODO' in

      '' and set the path to your executable.

The first two arguments of your executable must be

- path to video. ex : "C:\dataset\baseline\highway"

- path to save the binary images. ex : "C:\results\baseline\highway"


(ii)   If on the other hand you need to code your method, than follow these

      steps :


      The code in the "c++ code" folder is an OpenCV*-based template that may

      help you code your method.

      Put your code in 'YourMethod.h' and use the methods defined in



      * OpenCV is a free library of programming functions for real time computer

      vision.  You can download it at



(iii)Call " datasetPath binaryRootPath"


ex :  "python processFolder C:\dataset C:\results"



** The two motion detection algorithms are evaluated using 7 metrics, namely (1)Recall, (2)Specificity, (3)FPR, (4)FNR, (5)PBC, (6)Precision, (7)FMeasure.