Video shot detection is a computer vision technique used to automatically identify the boundaries between shots in a video sequence. Shot detection algorithms analyze the visual and/or auditory features of a video to determine when a new shot begins and ends, which is useful for tasks such as video indexing, summarization, and editing.
- Programs must be based on C/C++ or Python w/wo window interface
Please complete the following two methods
- Using histogram feature to implement the video shot detection.
- Design your own algorithm to implement the video shot detection.
Note : Please indicate the frame index where the shot changes.
For running original.py
, adaptivethreshold.py
, remember to change
video_source
- your video file pathoutput_dir
- your output folder path
For running histogram.py
, remember to change
input_dir
- your .csv folder path
Download from github
git clone https://github.com/nick8592/Video-Shot-Detection.git
Install reqired dependencies
cd main/
pip install -r requirements.txt
Run Original
python original.py
Run AdaptiveThreshold
python adaptivethreshold.py
Plot Shot Detection Histogram
python histogram.py