The AsanaAI application is a Virtual Yoga Asana Assistant that uses Machine Learning and Django. The application is built using the Django framework and various Python libraries to accurately identify pre-trained Yoga asanas within the model.
<Note:></u></b> If anyone uses a Linux distribution like ubuntu they have to install the libraries or packages mentioned in Aptfile using command "sudo apt-get update && sudo apt-get install -y $(cat Aptfile)"
It is a process of collection of landmarks of joints in a human body. To perform this process we use two modules called OpenCV, Mediapipe.
Image dataset of Yoga Asana is taken from here - https://www.kaggle.com/datasets/niharika41298/yoga-poses-dataset
Fig:- OpenCV Face Detection (Sample Example)
Fig:- Mediapipe Holistic Pipeline Sample
After performing all these steps all the landmarks of the body keypoints are stored in a.csv file which is used for further processing.
It is a process of reading, extracting the values from .csv file.These extracted values are used for training our ML model. Here we use Random Forest Algorithm as best optimal solution as it fits our problem. The trained model will be saved by using pickle module which will be used for predicting the asanas in the real time.
Final stage of the process where we use the pre-trained ML model for predicting Yoga asanas in the real time using Webcam feed of the device.It shows the landmarks of the keypoints in red colour if the machine is not able to recognize the asana (Incoorect way of doing) and turns into green colour if the machine recognizes the asana (Correct way of doing).
Fig:- Model detecting the Asana