Skip to content
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

Closed
Sam1141968878 opened this issue Jul 21, 2020 · 2 comments
Closed

Can i get the image data on the onFacesDetected event? #2910

Sam1141968878 opened this issue Jul 21, 2020 · 2 comments
Labels
stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@Sam1141968878
Copy link

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.

@stale
Copy link

stale bot commented Sep 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

@stale stale bot added the stale There has been a lack of activity on this issue and it may be closed soon. label Sep 19, 2020
@stale
Copy link

stale bot commented Sep 26, 2020

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

@stale stale bot closed this as completed Sep 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

1 participant