This repository contains the implementation of a Flask REST API that uses a SciKit RandomForestClassifier pretrained for hand sign detection using Mediapipe Hands.
-
Install dependencies
NOTE: You can clone the environment from environment.yml using Conda.
$ conda env create -f environment.yml
It will create a Conda environment with the name specified in the environment.yml file.
-
On the root directory of this project, create a folder to add your machine learning models to use. You must add:
- labels.json
- model.pickle
-
Run the server using the following command:
$ python3 api.py