From 8ba8ea6ea28ae03e0983fc445e999ee5ed5c9935 Mon Sep 17 00:00:00 2001 From: Alessandro Cauduro Date: Thu, 9 Apr 2020 12:30:20 -0300 Subject: [PATCH] small corrections to readme --- .gitignore | 3 +++ README.md | 9 ++++----- faceit_live.py | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 47fa1bc..ec009f1 100644 --- a/.gitignore +++ b/.gitignore @@ -138,3 +138,6 @@ media/dani.png media/caio2.png media/bruno.png media/ale.png +media/helena.png +media/helena2.jpeg +media/rodrigo.jpeg diff --git a/README.md b/README.md index 0ae6237..7bf28b9 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Don't forget to use the *--recurse-submodules* parameter to checkout all depende $ git clone --recurse-submodules https://github.com/alew3/faceit_live3.git /local_path/ -## Create an Anaconda environment and install requirments +## Create an Anaconda environment and install requirements ``` $ conda create -n faceit_live3 python=3.8 $ source activate faceit_live3 @@ -98,10 +98,9 @@ Put in the `./media/` directory the images in jpg/png you want to play with. $ python faceit_live.py ``` -## Shortcuts - --webcam # the videoid of the Webcam e.g. 0 if /dev/video0 (default is 0) - --image # the face to use for transformations, put the files inside media (by default it loads the first image in the folder) - --streamto # the /dev/video number to stream to (default is 1) +## Parameters + --webcam_id # the videoid of the Webcam e.g. 0 if /dev/video0 (default is 0) + --stream_id # the /dev/video number to stream to (default is 1) ## Example ``` diff --git a/faceit_live.py b/faceit_live.py index 96961ad..3510dac 100644 --- a/faceit_live.py +++ b/faceit_live.py @@ -16,6 +16,7 @@ import os import glob from argparse import Namespace import argparse +import timeit warnings.filterwarnings("ignore") ############## setup ####