Skip to content

🐍 Tutorial on detecting video shot changes using Python and OpenCV. Part 1 covers basic threshold detection, Part 2 covers optimized threshold detection.

Notifications You must be signed in to change notification settings

Breakthrough/python-scene-detection-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Scene Detection with Python and OpenCV (Tutorial)

By: Brandon Castellano


NOTE: My website is currently undergoing construction (migrating to a Github-based solution), and thus the below links do not work (they will once the migration is completed).

In the meantime, you can view a cached version of the pages below using the Internet Archive's Wayback Machine.

This repository contains the example programs, corresponding to the three-part tutorial on detecting scene changes in videos with Python and OpenCV, which can be found at:

  1. Simple Threshold/Fade-to-Black Detection
  2. Optimized/Adaptive Threshold Detection
  3. Suppressing/Discarding False Scene Changes (coming soon!)

You can get the latest sample code/video from the releases page. All files in the examples/ directory are released into the public domain. In total, there are three programs (part1-threshold.py, part2-adaptive.py, and still under development, part3-content-aware.py) corresponding to the respective part in the tutorial linked above. Usage details for each program can be found in the comment header for that file.


Related to this tutorial is PySceneDetect, a robust OpenCV-based scene detection program.


Copyright (C) 2013-2020 Brandon Castellano. All rights reserved.

About

🐍 Tutorial on detecting video shot changes using Python and OpenCV. Part 1 covers basic threshold detection, Part 2 covers optimized threshold detection.

Resources

Stars

Watchers

Forks

Packages

No packages published