EyeTry-FaceShapeDetection is part of the EyeTry which detect user face shape based on an image. User upload an image and server returns the face shape of a person.
Install the required packages using:
pip install torch torchvision pillow matplotlib numpy scikit-learn
or
pip install -r requirements.txt
- Activating Python Virtual Environment
Scripts\activate
- Setting the Environment Variables
set FLASK_APP=main.py
set FLASK_ENV=development
- Running the App
flask run -p port
method: POST
route: /upload
parameters: file
returns:
{
"prediction": <face shape>,
"status": "success"
}
method: GET
route: /test
returns:
{
"status": "success"
}