- 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
python detect_faces_camera.py
python detect_faces_youtube.py -v cUw18IAkmvE
python detect_faces_youtube.py -p PLitz1J-q25kMvoRT9AIPfWoFIv4wzoUPi --playlist-start 1 -s 20
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"]
...
}