This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
Can i get the image data on the onFacesDetected event? #2910
Labels
stale
There has been a lack of activity on this issue and it may be closed soon.
To Do First
Take a look in the README
Take a look in the docs
Take a look in the QA
Ask your Question
How can I get the image data once a face is detected? In order for a face to be detected, there must be an image processing of an photograph. When I use the onFacesDetected props on an arrow function, I get the following keys on the first object argument:
faces
target
type
I was expecting also a data object that may have the image data so I can cut the face and work on it.
I know that I can use the onFacesDetected callback and use the camera object to take a new photo using the function takePictureAsync(). However, I'll have to pause the camera, then resume, and the RNCamera element will appear with lag. In addition, since this function is async, when the new photo will arrive, the face may move and the face object may not match accurately with the new image.
It would be far more efficient if I can take the original image data on which the face was detected whenever the onFacesDetected callback is triggered. Maybe this photo is stored on RNCamera's cache?
Any different ideas or feedback about solving this issue is welcome.
Thanks.
The text was updated successfully, but these errors were encountered: