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

Can I use this library to detect face of an image without integrating react-native-vision-camera ? #50

Open karpedm opened 4 months ago

karpedm commented 4 months ago

I found that Expo FaceDetecting is deprecating from SDK 51 and they suggested to use react-native-vision-camera , but it looks a huge library and I only need face detection...

can this plugin be used independently? Maybe I need to convert image uri into Frame object? but I haven't find a clue to do this.... please someone help me...

scottmsul commented 4 months ago

I have a use case where I need to detect faces in a still image rather than a live camera feed. It seems the scanFaces method can only take "Frames" as inputs and it's not obvious to me whether saved image data can be converted into the Frame interface.

It seems this package is a completely separate project from expo-face-detector so it's possible they haven't added this functionality, but it's frustrating that expo-face-detector is pointing to this project as its replacement if it can't handle all the same use cases.