Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Dc-4nderson
/
confidence-body-image-model
like
0
Text Classification
Dc-4nderson/confidence-body-image-dataset
English
image-classification
body-language
confidence-detection
Model card
Files
Files and versions
xet
Community
main
confidence-body-image-model
789 kB
1 contributor
History:
6 commits
Dc-4nderson
Upload confidence_pose_model.pkl with huggingface_hub
26f6be7
verified
10 months ago
.gitattributes
1.52 kB
initial commit
10 months ago
README.md
178 Bytes
# π§ββοΈ Confidence Pose Classifier (Body Language) This model predicts the confidence level of a person based on their **body pose** in a single image. It's trained on pose vectors extracted from Zoom-like screenshots using [MediaPipe](https://google.github.io/mediapipe/solutions/pose.html). --- ## π‘ How It Works - Input: a **pose vector** of 33 keypoints (x, y, z), flattened to a 99-length float list - Output: one of three labels: - `confident` - `not_confident` - `kinda_confident` This is ideal for use cases like: - Analyzing student confidence during virtual learning - Visual AI for coaching and feedback - Real-time body-language evaluation in Zoom or webcam settings --- ## π§ Model Details - Trained with `scikit-learn`'s `RandomForestClassifier` - Input features: 99 pose coordinates per image (from MediaPipe) - Label encoding saved via `LabelEncoder` --- ## π Usage To use this model in your app: ```python import joblib import numpy as np # Load model + encoder model = joblib.load("confidence_pose_model.pkl") encoder = joblib.load("label_encoder.pkl") # Example input: a 99-length pose vector (from MediaPipe) pose_vector = np.array([...]) # Replace with your vector # Predict label = encoder.inverse_transform(model.predict([pose_vector]))[0] print("Predicted label:", label)
10 months ago
confidence_pose_model.pkl
787 kB
xet
Upload confidence_pose_model.pkl with huggingface_hub
10 months ago
label_encoder.pkl
577 Bytes
xet
Upload label_encoder.pkl with huggingface_hub
10 months ago