Install pyannote-video to use this.
- Download a sample video with youtube-dl
youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]' \
-o sample \
https://www.youtube.com/watch?v=MevKTPN4ozw
- Detect faces with pyannote-video
To use pyannote-video as the face tracker use the code below:
python pyannote-video/scripts/pyannote-structure.py shot \
--verbose \
sample.mkv \
sample.shots.json
python pyannote-video/scripts/pyannote-face.py \
track --verbose \
sample.mkv \
sample.shots.json \
sample.track.txt
To use Easy Face Tracker as the face tracker use the code below:
- Build face track videos from tracked videos