Coder Social home page Coder Social logo

manoj-2702 / yoga_poses-dataset Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 59.67 MB

This repository contains code for collecting pose data of various yoga poses using the MediaPipe Pose model. The collected data includes the angles of different body joints in each yoga pose.

License: MIT License

Python 100.00%
angles grayscale landmarks-detection math matplotlib-pyplot mediapipe mediapipe-pose mediapipe-pose-estimation opencv pandas

yoga_poses-dataset's Introduction

Yoga-Poses-Dataset

This project was done as a part of the data collection project of Topics in Deep Learning(TDL).

The Yoga-Pose Dataset is a comprehensive collection of yoga pose images, pose landmarks, and calculated angles for various yoga poses. This dataset serves as a valuable resource for researchers, practitioners, and developers interested in yoga pose detection, recognition, and analysis. Each yoga pose in the dataset is meticulously annotated with pose landmarks and corresponding angles, providing rich ground truth data for machine learning model training and evaluation.

The code utilizes the MediaPipe library for pose estimation, which provides a pre-trained pose detection model. It processes images containing individuals performing yoga poses and extracts the pose landmarks, which are then used to calculate the angles between different body joints.

Dataset Contents

The dataset consists of the following components:

  • Images: High-quality images of different yoga poses captured from various perspectives and angles.

  • Pose Landmarks: Pose landmarks extracted using the MediaPipe Pose model, providing key points representing different body parts in each yoga pose image.

  • 3D Models: Three-dimensional (3D) models generated from the pose landmarks, allowing visualization of the yoga poses in a three-dimensional space.

  • Calculated Angles: Angles between specific body parts in each yoga pose, providing detailed insights into the pose dynamics and alignment.

Yoga Poses Included

The dataset covers a wide range of yoga poses, including:

  1. ArdhaChandrasana (Half-Moon)

v12

  1. Downward Dog

downward_dog17

  1. Triangle

triangle25

  1. Veerabhadrasana

Veerabhadrasana_30

  1. Natarajasana

download

  1. Vrukshasana

v59

  1. BaddhaKonasana

BK_6

  1. UtkataKonasana

UK_5

Calculated Angles

  1. Elbow Angles
  Left Elbow Angle: Angle between the left shoulder, elbow, and wrist points.

  Right Elbow Angle: Angle between the right shoulder, elbow, and wrist points.
  1. Shoulder Angles
  Left Shoulder Angle: Angle between the left elbow, shoulder, and hip points.

  Right Shoulder Angle: Angle between the right hip, shoulder, and elbow points.
  1. Knee Angles
  Left Knee Angle: Angle between the left hip, knee, and ankle points.

  Right Knee Angle: Angle between the right hip, knee, and ankle points.
  1. Additional Angles
  Angle for ArdhaChandrasana 1: Angle specific to ArdhaChandrasana, calculated between ankle, hip, and opposite ankle points.

  Angle for ArdhaChandrasana 2: Second angle specific to ArdhaChandrasana, calculated between ankle, hip, and opposite ankle points.

  Hand Angle: Angle between the left elbow, right shoulder, and right elbow points.

  Left Hip Angle: Angle between the left shoulder, left hip, and left knee points.

  Right Hip Angle: Angle between the right shoulder, right hip, and right knee points.

Setup

  • Clone the repository:
git clone https://github.com/Manoj-2702/TDL-Dataset.git
  • Navigate to the project directory:
cd TDL-Dataset
  • Install the required dependencies:
pip install -r requirements.txt
  • Add images to the required pose to the TRAIN Folder and the respective pose folder

Usage

  • Ensure that your yoga pose images are stored in the TRAIN/ directory within the project folder.

  • Run the script main.py to process the images and collect the pose data:

python main.py

USE

This dataset is used for training deep learning models for detecting yoga poses from an image. Researchers, developers, and practitioners can utilize this dataset for various purposes, including:

  • Training and evaluating machine learning models for yoga pose detection and recognition.
  • Conducting experiments and studies on yoga pose dynamics and alignment.
  • Developing applications and tools for yoga practitioners to improve their practice.

Results

There will be two datasets which will be created. One containing the labels and the angles calculated. The other dataset contains the mediapipe landmarks for all the images.

Contributing

Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

yoga_poses-dataset's People

Contributors

manoj-2702 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.