This guide will help you set up the Gesture Recognition for Web Flask project on your local machine.
- Clone the repository
Clones the project repository to your local machine.
git clone https://github.com/LeDat98/Gesture_recognition_for_Web_Flask.git
2.Navigate to the project directory
cd Gesture_recognition_for_Web_Flask
3.Create a Python virtual environment
python3 -m venv env
4.Activate the virtual environment
source env/bin/activate
5.nstall required Python packages
pip install -r requirements.txt
6.Install Node Version Manager (NVM)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
OR
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
7.Source your shell configuration Reloads your shell configuration.
source ~/.bashrc
OR
source ~/.zshrc
8.nvm install v18.17.0 Installs Node.js version 18.17.0. or more
nvm install v18.17.0
9.Set default Node.js version in NVM
nvm alias default v18.17.0
10.Install project npm dependencies Installs npm dependencies defined in package.json.
npm install
11.Install @mediapipe/tasks-vision
npm install @mediapipe/tasks-vision
After installation, activate your Python virtual environment and start the Flask application using: Run this commd
python3 app.py
npm run build