Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.
/ face-crop Public archive

Cropping short clips of faces out of videos.

Notifications You must be signed in to change notification settings

somewacko/face-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Crop!

Crops people's faces out of a video when they're most likely speaking. Looks for sequences that meet two conditions:

  • There is exactly one face detected throughout the sequence is roughly the same spot.
  • Most of the corresponding audio frames have a max amplitude over some threshold.

...and then crops them out and writes the result to a video file.

Of course, this assumes that the videos consist of mostly people speaking. (news, speeches, vlogs, etc.) Don't expect this to work on videos that don't meet this assumption. (or do it anyway!)

I made this as a quick script to do some video processing for a research project. This is not quality code!

Python 2 because I have to. Requires ffmpeg, OpenCV, and SciPy.

About

Cropping short clips of faces out of videos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages