Skip to content

A tool to capture faces from Youtube videos using deep learning.

Notifications You must be signed in to change notification settings

buqijunzia/face-capture

 
 

Repository files navigation

face-capture

Setup

  • Install the Miniconda Python 3.x version corresponding to the development operating system.
  • Clone this repository:
git clone https://github.com/thefonseca/face-capture.git
cd face-capture
  • Create the conda environment (this should be done only once):
conda env create -f environment.yml
  • Activate the conda environment:
source activate face-capture

Detect faces in camera frames

python detect_faces_camera.py

Detect faces in Youtube video

python detect_faces_youtube.py -v cUw18IAkmvE

Detect and save faces in videos of a Youtube playlist

python detect_faces_youtube.py -p PLitz1J-q25kMvoRT9AIPfWoFIv4wzoUPi --playlist-start 1 -s 20

Detect and save faces in playlists specified in a JSON file

python detect_faces_youtube.py --json ./videos.json --save-every 20

Where the videos.json file can be specified as follows:

{
  "playlist_1": ["-pXziPT8Rbk", "pTZ_ztt8EIE"],
  "playlist_2": ["bgvGmvPO_iI", "Q1mpWWK1zWs", "rRBUGmnA2_0"]
  ...
}

About

A tool to capture faces from Youtube videos using deep learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%