From 75db761507dc0e90899662912500e24e88d2b6ec Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Mon, 4 Jan 2021 15:13:14 +0100 Subject: [PATCH] Requirements.txt for Windows installer --- README.md | 6 ++---- requirements.txt | 33 +++++++++++++++++++++++++-------- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 875a188..48e3f6d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ A `mirror` which shows which faces are detected through three different facial d The installation in Windows can be done, though it is quite elaborate: -* Install python3 +* Install python3.8 * Install VS C++ build tools * Install Cmake (needed for python dlib) + make sure to add it to path @@ -40,9 +40,7 @@ The installation in Windows can be done, though it is quite elaborate: + Make the installer: * Either one of: * `& 'C:\Users\DP Medialab\AppData\Roaming\Python\Python38\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn'` - * `& '.\venv\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn'` - - * `mv '.\dist\mirror\mpl-data' '.\dist\mirror\matplotlib\'` + * `& '.\venv\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn' --hidden-import 'scipy.spatial.transform._rotation_groups' --hidden-import 'skimage.filters.rank.core_cy_3d'` * `Compress-Archive -LiteralPath .\dist\mirror -DestinationPath .\dist\mirror.zip` + We could also [use wine for cross compilation](https://www.andreafortuna.org/2017/12/27/how-to-cross-compile-a-python-script-into-a-windows-executable-on-linux/) from Linux - make sure wine is set to pose as Windows 10 (`winecfg`) diff --git a/requirements.txt b/requirements.txt index 899e7f6..6c43ae8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,25 @@ -scipy -numpy -dlib -Pillow -opencv-python -cffi -scikit-image -pyinstaller \ No newline at end of file +altgraph==0.17 +cffi==1.14.4 +cycler==0.10.0 +decorator==4.4.2 +dlib==19.21.1 +future==0.18.2 +imageio==2.9.0 +kiwisolver==1.3.1 +matplotlib==3.3.3 +networkx==2.5 +numpy==1.19.3 +opencv-python==4.5.1.48 +pefile==2019.4.18 +Pillow==8.1.0 +pycparser==2.20 +pyinstaller==4.1 +pyinstaller-hooks-contrib==2020.11 +pyparsing==2.4.7 +python-dateutil==2.8.1 +PyWavelets==1.1.1 +pywin32-ctypes==0.2.0 +scikit-image==0.18.1 +scipy==1.6.0 +six==1.15.0 +tifffile==2020.12.8 \ No newline at end of file