From 2b4e445f3b010a3e8f732a462856423547d5dd45 Mon Sep 17 00:00:00 2001 From: Yoshiko2 Date: Sat, 26 Feb 2022 05:14:28 +0800 Subject: [PATCH] Fix Image Processing module wrapper --- py_to_exe.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py_to_exe.ps1 b/py_to_exe.ps1 index c3a41d6..498e7cd 100644 --- a/py_to_exe.ps1 +++ b/py_to_exe.ps1 @@ -3,13 +3,14 @@ $CLOUDSCRAPER_PATH=$(python -c 'import cloudscraper as _; print(_.__path__[0])' | select -Last 1) $OPENCC_PATH=$(python -c 'import opencc as _; print(_.__path__[0])' | select -Last 1) +$FACE_RECOGNITION_MODELS=$(python -c 'import face_recognition_models as _; print(_.__path__[0])' | select -Last 1) mkdir build mkdir __pycache__ pyinstaller --onefile Movie_Data_Capture.py ` - --hidden-import ADC_function.py ` - --hidden-import core.py ` + --hidden-import "ImageProcessing.hog" ` + --add-data "$FACE_RECOGNITION_MODELS;face_recognition_models" ` --add-data "$CLOUDSCRAPER_PATH;cloudscraper" ` --add-data "$OPENCC_PATH;opencc" ` --add-data "Img;Img" `