Skip to content

Add landmark_asymmetry for a per-frame L/R facial asymmetry score - #375

Open
cindysteward wants to merge 1 commit into
cosanlab:mainfrom
cindysteward:add-landmark-asymmetry
Open

Add landmark_asymmetry for a per-frame L/R facial asymmetry score#375
cindysteward wants to merge 1 commit into
cosanlab:mainfrom
cindysteward:add-landmark-asymmetry

Conversation

@cindysteward

Copy link
Copy Markdown

Adds a facial asymmetry metric using the MediaPipe landmark model.

Motivated by the fact that (clinical) facial motor assessment (e.g., stroke, facial palsy, neurological deficit) often relies on a left/right comparison. Py-feat currently has no built-in metric for
this.

The module reuses the existing canonical mesh mirror map from feat.utils.region_maps. Exposed as Fex.landmark_asymmetry, returns 0 for a perfectly symmetric face, normalised by interocular distance so scores are comparable across subjects/distances.

Tests added in feat/tests/test_landmark_asymmetry.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant