From 79b160cbb5f2fb1840f17781316d7aceb4b02651 Mon Sep 17 00:00:00 2001 From: Vines <34955859+vinesmsuic@users.noreply.github.com> Date: Wed, 14 Jul 2021 03:19:15 +0800 Subject: [PATCH] Add instructions for installing dependencies in anaconda (#61) --- README.md | 20 +++++++++++++++++--- environment.yml | 9 +++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 environment.yml diff --git a/README.md b/README.md index dc4e1e5..9377c5c 100644 --- a/README.md +++ b/README.md @@ -15,21 +15,35 @@ _🚀 Quick note: I'm looking for job opportunities as a software developer, for Clone this project: -``` +```shell git clone https://github.com/antoinelame/GazeTracking.git ``` +### For Pip install Install these dependencies (NumPy, OpenCV, Dlib): -``` +```shell pip install -r requirements.txt ``` > The Dlib library has four primary prerequisites: Boost, Boost.Python, CMake and X11/XQuartx. If you doesn't have them, you can [read this article](https://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/) to know how to easily install them. -Run the demo: +### For Anaconda install +Install these dependencies (NumPy, OpenCV, Dlib): + +```shell +conda env create --file environment.yml +#After creating environment, activate it +conda activate GazeTracking ``` + + +### Verify Installation + +Run the demo: + +```shell python example.py ``` diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..1b9f493 --- /dev/null +++ b/environment.yml @@ -0,0 +1,9 @@ +name: GazeTracking +channels: + - conda-forge + - anaconda + - defaults +dependencies: + - numpy == 1.16.1 + - opencv == 3.4.* + - dlib == 19.17.*