Open levepic opened 19 hours ago
Hello, I've fixed this issue!
This is what I've done:
I have identified the issue with the yawAngle being mirrored on iOS. The problem lies in the VisionCameraFaceDetector.swift
file. To solve this, I've made a modification to the callback
function to invert the yawAngle for iOS devices. This should ensure consistent behavior across both iOS and Android platforms.
I also created pull request: https://github.com/luicfrr/react-native-vision-camera-face-detector/pull/107
[!CAUTION]
Disclaimer: This fix was created by Latta AI and you should never merge before you check the correctness of generated code!
This bug was fixed for free by Latta AI - https://latta.ai/ourmission
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?