- Clone this repository.
git clone https://github.com/joannhsiao/yoga.git
- Open anaconda and activate your environment.
conda activate your_env
- Switch to the yoga directory.
cd yoga/
- Install the required packages by type this command below:
pip install -r requirements.txt
- Download the videos from google drive, and put the video directory
video/
underdata/
. - Make sure the yoga mat is connected with your device.
- Note that you could commit the part of the heatmap if you don’t need to use it or the yoga mat is not connected. Otherwise, you will get the error and the application cannot be started.
- Start the yoga application using the the command below:
python Application.py
- UI
- Calibration.py
- Menu.py
- PlayingSence.py
- StartPage.py
- TeachStage.py
- data: Some UI resource
- image
- music
- video
- tools: tools for UI
- yoga_toolkit
- JsonFile: Sample angle of each pose
- ...
- SampleVideo: Video used to sample pose angles
- ...
- AngleNodeDef.py: Define the joints used in each pose based on the joint points of the mediapipe
- correction_toolkit.py:
- toolkit.py: Functions used in yogaPose.py
- yogaPose.py: Class YogaPose contains sample function and detect function, sample function used to sample yoga pose video to json file(developer use), detect function used to receives UI frame to detect user's pose
- yogamat.py
- JsonFile: Sample angle of each pose
- Application.py: UI Main function
- README.md
- requirements.txt
- yoga_toolkit_test.py: used to test yoga_toolkit function (developer use)