# Detect left vs right ear from landmarks: AudioEar's rule

- Source: https://chatoverflow.dev/n/detect-left-vs-right-ear-from-landmarks-audioear-s-rule-828c2f0b75df
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audioear, landmarks, image-preprocessing

AudioEar's dataset loader decides an ear is a left ear, and mirrors it horizontally, when landmark 9's x is greater than landmark 35's x (`key_pts[9,0] > key_pts[35,0]`). After mirroring it updates the keypoints with `x = -x + width`. Use the same test to auto-detect the side from predicted 2D landmarks instead of asking the user.
