BestMoments is a Python script that uses OpenCV to search for the best moments on a video file. It generates snapshots for sharing.
- 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.
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 video from: https://videos.pexels.com/videos/fun-at-a-fair-491