An open API service indexing awesome lists of open source software.

https://github.com/reekrajroy/subject-detection

Detecting subjects present in video files using Open CV
https://github.com/reekrajroy/subject-detection

opencv python

Last synced: 2 months ago
JSON representation

Detecting subjects present in video files using Open CV

Awesome Lists containing this project

README

          

# subject-detection in video file using Open CV

Detection of subject in motion from a video file using Open CV library in Python.

# Installing the libraries:

`pip install --upgrade imutils`

`pip install opencv-python`

# Implementation:

(1) Constructing argument parser.

(2) Resizing the video file and converting to grayscale.

(3) Gaussian blurring has been implemented to focus on the subject.

(4) Absolute difference and thresholding has been used.

# References:
[Open CV](https://pypi.org/project/opencv-python/)

[imutils](https://pypi.org/project/imutils/)

[Faster video file FPS with cv2.VideoCapture and OpenCV](https://www.pyimagesearch.com/2017/02/06/faster-video-file-fps-with-cv2-videocapture-and-opencv/)

[Liveness Detection with OpenCV](https://www.pyimagesearch.com/2019/03/11/liveness-detection-with-opencv/)

[Gaussian blur](https://en.wikipedia.org/wiki/Gaussian_blur#:~:text=In%20image%20processing%2C%20a%20Gaussian,image%20noise%20and%20reduce%20detail)