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

[BUG 🐛] How to convert the frame to image? #94

Closed levepic closed 3 weeks ago

levepic commented 3 weeks ago

I tried everything to simply capture a frame as an image but frame.toArrayBuffer() silently fails as everything else. It should be pretty easy and straightforward, what else you would do with the frame? Usecase: doring the video you take screens of the user performing tasks and you also record the whole on video. Hence you need a record and meanwhile to take photos (frames) when the user performed the actions (smile, etc), so its easy to check later. Am i missing somehting? Also checked vision camera docs but nothing works.

luicfrr commented 3 weeks ago

You should search this in vision-camera docs

levepic commented 3 weeks ago

Found out you can still take snapshot while recording if you dont need the full frame