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
75 stars 16 forks source link

[QUESTION 🤔] Newer versions contain less features (no fps, no return converted frame) #51

Closed mikoprus closed 2 months ago

mikoprus commented 2 months ago

Older versions (1.3.4) allowed for implementation where we could use detectFaces with runAtFps function, it's not possible in 1.6.1. 1.3.4 allowed to return converted frame in base64 string and it's missing in 1.6.1 as well

luicfrr commented 2 months ago

You can still use detectFaces with runAtFps. I'll readd (I'll leave this issue open while I don't do this) this example on README's but you can follow Camera.tsx's code.

About base64 conversion this feature makes no sense on this package because it's for face detection not for frame conversion so I dropped it's support.

If you need this feature maybe you should create your own frame conversion plugin (or you can pay me to create it for you). If you want to create it yourself you can use this repo as base for it and you can find removed conversion code in 337d131 commit but this is all the help I can give you without any payment.