php-deepface
php-deepface copied to clipboard
Fix: handle RetinaFace landmarks correctly (nose, mouth_left and mouth_right)
This PR fixes #23.
- Issue:
Unknown named parameter $nosewhen usingDetector::RETINAFACE - Cause: RetinaFace returns landmarks (
nose,mouth_left,mouth_right, etc.) not properly mapped. - Fix: Normalize landmark keys before constructing the object.
Tested with:
-
Detector::RETINAFACE -
FaceRecognitionModel::ARCFACE
Result: represent() now returns embeddings successfully without crashing.