CoolFace
Apppublic

HumanCenteredAI/olliedetection

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
feedback_rules.py12 linesDownload Raw Back to utils
1def feedback_from_landmarks(landmarks):2    # Simple rule-based explanations3    if landmarks['hip_y'] - landmarks['foot_y'] < 0.15:4        return "Not jumping high enough"5    if landmarks['front_foot_slide'] < 0.05:6        return "No front foot slide"7    if landmarks['back_foot_pop'] < 0.05:8        return "Not popping the board"9    if landmarks['back_foot_lift'] < 0.1:10        return "Not lifting back foot"11    return "Looks good!"12