jeeliz / jeelizFaceFilter

Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
https://jeeliz.com
Apache License 2.0
2.69k stars 533 forks source link

The camera can't recognize the face at a little distance #305

Closed Reckless1998 closed 1 year ago

Reckless1998 commented 1 year ago

In the case of three.js, the face will not be recognized if it is a little far away from the camera. If it is close to the camera, the face can be recognized. Can I use a value to control the recognition distance?

xavierjs commented 1 year ago

You can use the scanSettings init parameter or the set_scanSettings post-init method to tune face search - see https://github.com/jeeliz/jeelizFaceFilter#miscellaneous-methods

Related to https://github.com/jeeliz/jeelizFaceFilter/issues/127#issuecomment-534593145

Reckless1998 commented 1 year ago

Thanks a lot!! I only change scanSettings.scale0Factor to a lower value and it works very good! 😃 I will close this issue.