From bddd2ff088445839b671101818269e26a8b72b79 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 28 Jan 2022 08:53:40 -0800 Subject: [PATCH 1/2] add requirements.txt --- README.md | 16 ++++++++++++++++ requirements.txt | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 2eb27a7..e8b6ff0 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,28 @@ Supported on Python 3 and OpenCV 3+. Tested on macOS High Sierra and Mojave. * matplotlib * pillow +For brew users: +``` +brew install opencv ffmpeg +``` + ## Installation 1. Clone the repo. ``` git clone https://github.com/andrewdcampbell/face-movie +cd face-movie ``` 2. Download the trained face detector model from [here](http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2). Unzip it and place it in the root directory of the repo. +``` +curl http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 > shape_predictor_68_face_landmarks.dat.bz2 +bunzip2 shape_predictor_68_face_landmarks.dat.bz2 +``` +3. Create a virtualenv. +``` +python3 -m venv venv +source venv/bin/activate +python3 -m pip install -r requirements.txt +``` ## Creating a face movie - reccomended workflow diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..32070a4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +opencv-python +dlib From d73b7f85cce962dab9e8bd5f67049d0ffb2848d9 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 28 Jan 2022 11:45:07 -0800 Subject: [PATCH 2/2] add scipy and pillow --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 32070a4..f1f3402 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,4 @@ opencv-python dlib +scipy +pillow