fix(passport-photo): support both old and new mediapipe APIs for face landmarks

- Old API (mp.solutions.face_mesh) for Docker with mediapipe < 0.10.30
- New API (mp.tasks.vision.FaceLandmarker) for newer mediapipe >= 0.10.30
- Auto-downloads face_landmarker.task model on first use with new API
- Extracted shared landmark index constants and key point extraction
This commit is contained in:
stirling-image
2026-04-14 12:21:00 +08:00
parent b2489b0fb6
commit 1dd87f11d6
2 changed files with 129 additions and 63 deletions
+1
View File
@@ -43,3 +43,4 @@ layout-*.png
audit_report.md
.worktrees/
.release-version
.models