Amber-Abuah / Mediapipe-Pose-Comparison

A python program capable of comparing poses within images to check for accuracy, with the help of Mediapipe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mediapipe Pose Comparison

A python program capable of comparing poses within images to check for accuracy, with the help of Mediapipe. The pose used is the yoga 'Warrior Pose' as shown below.
istockphoto-1335980515-170667a
The /yoga directory contains image files that are used for comparison to a test image. Each image file in this directory, has its distance from each landmark calculated as so
Screenshot 2023-09-25 191858
The distance from landmark 0 to landmark 1 is calculated, then landmark 1 to landmark 2... until distances have been calculated between all 33 pose landmarks.

This process takes place on every image within the /yoga directory. The minimum and maximum values are calculated for each distance amongst all images and used for comparison against the test pose.

The test pose has its distance between all 33 landmarks calculated. If 75% of the landmark distances falls within the min max range calculated from the training images, then the pose is deemed accurate. If not, it is deemed unaccurate.

About

A python program capable of comparing poses within images to check for accuracy, with the help of Mediapipe.


Languages

Language:Python 100.0%