This program detects space occupancy by using image processing techniques (background subtraction and filtering) to determine whether a given location is occupied or not.
This requires prior information of regions of interest via bounding boxes, and assumes that the video is static throughout the process.
The project uses the following libraries:
- Numpy
- OpenCV
- Seaborn
- matplotlib
- scikit-learn
To demo the project, run main.py
and let the program run until the end of the video
To use your own videos, you need to annotate Box locations for each seat and import it into the program as an XML file.
Below are sample images of the program execution:
Below are the confusion matrix results of the demo execution:
The system has an accuracy of 65.6% using our annotated ground truths as reference.