rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

frameProcessor returns undefined when there are multiple faces #17

Open bekatd opened 2 years ago

bekatd commented 2 years ago

Is this expected behavior or bug?

dungnguyentri3110 commented 1 year ago

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

luatvudinh commented 1 year ago

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

lehaiquantb commented 1 year ago

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