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
- Host: GitHub
- URL: https://github.com/reekrajroy/subject-detection
- Owner: REEKRAJROY
- Created: 2021-06-30T16:05:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-02T18:24:23.000Z (almost 5 years ago)
- Last Synced: 2025-04-13T00:17:41.967Z (about 1 year ago)
- Topics: opencv, python
- Language: Python
- Homepage:
- Size: 5.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)