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
75 stars 16 forks source link

Question: How to represent a face position on a 2D canvas? #61

Closed nellfs closed 1 month ago

nellfs commented 1 month ago

I need to get a Face x and y position to check if the face is centered on a 2D shape (like a square), is there any way of doing so?

I already tried bounds and landmarks, but the position does not follow the center of my face when I get a little far or a little closer to the camera... Is there any way to use detection in just a point of the camera?