Skip to content

Python script that uses OpenCV to search for moments worth sharing on a video file.

License

Notifications You must be signed in to change notification settings

pvpacheco/bestmoments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestMoments

BestMoments is a Python script that uses OpenCV to search for the best moments on a video file. It generates snapshots for sharing.

First Features:

  • Smile detection: script will search for faces and smiles and will rank by number of smiles found on each frame.
  • Frame sharpness: you can define a minimum frame sharpness or quality, bellow that limit the script will ignore the frame.

Basic Usage

bestmoments.py -i sample.mp4

options:
    -h, --help                      show this help message and exit
    -i FILE, --input-file FILE      path video file
    -ms 50, --min-sharpness 50      minimum frame sharpness to consider

sample:
    python bestmoments.py -i sample.mp4 -ms 50

Sample Results

Alt text

Sample video from: https://videos.pexels.com/videos/fun-at-a-fair-491

About

Python script that uses OpenCV to search for moments worth sharing on a video file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages