How it works

Posture is evaluated from the relative changes of eye/shoulder/nose/ear landmarks.

Core decision rules before use

When alerts actually fire

  • It does not alert on a single bad frame.
  • Sound is played only when BAD posture persists (default: 2s).
  • Returning to normal posture resets the alert timer and cooldown.

What each on-screen metric means

  • Turtle Neck: forward-head drift compared with your baseline
  • Slouching: reduced shoulder-to-nose relative height
  • Text Neck: increased head-down angle from nose/ear offset

Detection flow (detailed)

1. Landmark extraction

MediaPipe Pose extracts key landmarks from your webcam frame continuously.

2. Relative comparison

The current posture is compared with your baseline to measure tilt and drift.

3. Alert decision

If posture risk stays high over time, the app triggers quiet feedback.