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
108 stars 20 forks source link

Can the image to base64 API be independently opened? #9

Closed yiluzhang closed 7 months ago

yiluzhang commented 7 months ago

Turn on convertFrame, it's very slow. After the recognition is complete and the detected coordinates are correct, can the image conversion base64 method be called independently?

luicfrr commented 7 months ago

Hello You mean to do base64 conversion after returned face data to js? Or you mean to do this conversion in js thread?

In both cases I don't think this is possible because, in first option, face detector function has already returned data and frame will be dropped by vision camera . In seccond case, I don't think this is possible because this conversion is done on native side of app, Idk if this is possible and if js frame has this feature...

Anyway, you can try to find a way to manage this and you're wellcome to open a PR with this feature if you can solve it.

I'll close the issue but you can still reply it to continue this conversation

robertyulisman commented 7 months ago

hello @nonam4 i want to ask, is frameData is unique for each person ? if no, what is unique string that i can set for identification for each person ?

luicfrr commented 7 months ago

@robertyulisman the only unique (maybe) thing for each person are face landmarks and/or contours but I have no idea how you can use these data for person identification.

robertyulisman commented 7 months ago

@robertyulisman the only unique (maybe) thing for each person are face landmarks and/or contours but I have no idea how you can use these data for person identification.

maybe you can add this feature, because i think this very usefull for person identification, and can use for more apps funcionality