FaCiPa: FACIAL PARALYSIS DIAGNOSIS ALGORITHM (Facial Landmarks 68 coordinates)
The versions used in the PyCharm IDE to run Python codes are listed below.
Libraries and Packages to be Installed with Priority
๐ Pip Package Manager
๐ Python 3.5 Version
๐ Flask for API if needed
All Libraries and Packages in the Project
โ๏ธ Python Version:3.5
โ๏ธ pip:19.1.1
โ๏ธ flask:1.1.1
โ๏ธ cmake:3.15.3
โ๏ธ dlib:19.4.0 || latest version( 19.18.0 )
โ๏ธ opencv-python:4.1.1.26
โ๏ธ imutils:0.5.3
In the project, facial paralysis algorithm is run based on 68 coordinate models. The code file that contains the algorithm and the shape-predictor model is facial_landmarks.py, and the Flask API code written for the mobile platform of the project is located in the api_trying.py file.
If only the paralysis algorithm will be run, the photo to be detected on the imageP variable based on the file must be specified manually.
> python facial_landmarks.py --shape-predictor shape_predictor_68_face_landmarks.dat \--image face.jpg
If server-based work is to be done, it is sufficient to run the api_trying file.
> python api_trying.py
Setting Pip
Setting Ubuntu 16.04 PIP
https://www.rosehosting.com/blog/how-to-install-pip-on-ubuntu-16-04/
A view from the project: