luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
131 stars 22 forks source link

[BUG 🐛] Mirroring makes detection of yaw faulty #106

Open levepic opened 3 weeks ago

levepic commented 3 weeks ago

When detecting yawAngle of a face, the face seems to be mirrored on ios (or at least on some ios devices) while it is not mirrored on android (or at least some android devices). So when you try to detect "turn head left" its the opposite angle on ios and android! Im not sure if platform detection solves the problem or there are more differences between devices. Any ideas, suggestions?

"react-native-vision-camera": "^4.5.3",
"react-native-vision-camera-face-detector": "^1.7.1",
"react-native-worklets-core": "^1.3.3",
luicfrr commented 3 weeks ago

@levepic can you please check if #107 fix this issue?