This project utilizes MediaPipe's Face Landmarker to process video files and extract facial blendshape data, saving the results to a CSV file.
The .yaml
configuration file has been updated to ensure successful application builds on GitHub.
Several issues specific to Windows users have been addressed:
-
Model Path Resolution: The application now dynamically constructs the path to the
face_landmarker.task
model file, ensuring it's correctly located regardless of the user's environment. -
File Dialog Behavior: The file explorer dialog is now configured to appear in the foreground, preventing it from opening behind other applications.
Users can now specify the directory for the generated CSV file, providing greater flexibility in managing output data.
To build the executable file locally, follow these steps:
-
Upgrade pip:
python -m pip install --upgrade pip
-
Install
flake8
:pip install flake8
-
Install Required Packages:
pip install -r Face_Landmarker/requirements.txt
-
Build the Application:
- Option 1: Run the script directly:
python Face_Landmarker/Face_Landmarker_Link.py
- Option 2: Use PyInstaller to create an executable:
This command will generate the executable in the
pyinstaller Face_Landmarker/Face_Landmarker_Link.spec
dist
directory.
- Option 1: Run the script directly:
Note: Ensure that all dependencies are installed and properly configured before building the application, also you can builded it on github
For more information on creating executables with PyInstaller, refer to the PyInstaller Usage Guide.
By following these instructions, you can successfully build and run the application on your local machine.