vision-camera-face-detector icon indicating copy to clipboard operation
vision-camera-face-detector copied to clipboard

frameProcessor returns undefined when there are multiple faces

Open bekatd opened this issue 2 years ago • 3 comments

  • When there is no face detected faces is empty []
  • When there is 1 face faces is array with one element BUT
  • When there are multiple faces in visible area, faces is becoming undefined

Is this expected behavior or bug?

bekatd avatar May 05 '22 07:05 bekatd

same here i dont know that is bug or behavior. But some time one face detected still throw undefined. I don't know why

dungnguyentri3110 avatar Nov 18 '22 03:11 dungnguyentri3110

It's still happening on mid 2023 (version 0.1.8). Anyone has an idea?

luatvudinh avatar May 30 '23 02:05 luatvudinh

Perhaps the error caused here https://github.com/rodgomesc/vision-camera-face-detector/blob/master/android/src/main/java/com/visioncamerafacedetector/VisionCameraFaceDetectorPlugin.java#L73 I just added try-catch block and it worked properly

lehaiquantb avatar Jun 27 '23 09:06 lehaiquantb