How seleemicker/yoga_pose_classification works
This repository provides a Colab-oriented landmark extraction workflow and a real-time webcam pose classifier for five yoga poses. Training data is processed into landmark rows; the live script captures frames, detects landmarks, classifies pose probabilities, smooths predictions, and displays labels and confidence. The README describes trained model and encoder assets, but those files are not in the repository tree. The sampled estimation script extracts landmarks; it does not show classifier training. The camera-check script is a separate diagnostic. Relationships reflect the README and sampled source; no unsampled implementation is assumed.
Main entry points: yoga_pose_webcam.py Pose Detection · yoga_pose_estimation.py Landmark Extraction · open_camera.py Camera Check
Components 15
Landmark Preparation
- Pose Images
- Landmark Extraction
yoga_pose_estimation.py - Landmark CSV
Live Classification
- Frame Capture
yoga_pose_webcam.py - Frame Preprocessing
yoga_pose_webcam.py - Pose Detection
yoga_pose_webcam.py - Feature Encoding
yoga_pose_webcam.py - Keras Classifier
- Prediction Smoothing
yoga_pose_webcam.py - Pose Overlay
yoga_pose_webcam.py - Live Display
yoga_pose_webcam.py
Camera Diagnostic
- Camera Check
open_camera.py
Other components
- User
- Webcam
- Label Encoder
Connections 14
- Pose Images → Landmark Extraction: provides images
yoga_pose_estimation.py - Landmark Extraction → Landmark CSV: writes landmarks
yoga_pose_estimation.py - User → Webcam: uses
- Webcam → Frame Capture: supplies frames
yoga_pose_webcam.py - Frame Capture → Frame Preprocessing: flips and converts
yoga_pose_webcam.py - Frame Preprocessing → Pose Detection: detects landmarks
yoga_pose_webcam.py - Pose Detection → Feature Encoding: provides landmarks
yoga_pose_webcam.py - Feature Encoding → Keras Classifier: predicts probabilities
yoga_pose_webcam.py - Keras Classifier → Prediction Smoothing: returns probabilities
yoga_pose_webcam.py - Label Encoder → Prediction Smoothing: maps class indices
yoga_pose_webcam.py - Prediction Smoothing → Pose Overlay: provides label and confidence
yoga_pose_webcam.py - Pose Detection → Pose Overlay: provides landmarks
yoga_pose_webcam.py - Pose Overlay → Live Display: renders frame
yoga_pose_webcam.py - Webcam → Camera Check: supplies frames
open_camera.py