Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot detect face from result image by using google ml kit #568

Closed
KaungHtetHein116 opened this issue Jul 30, 2023 · 2 comments
Closed

Comments

@KaungHtetHein116
Copy link

KaungHtetHein116 commented Jul 30, 2023

I am using Google ML Kit to detect face from taken photo by react native camera kit.
On Android, it works properly to detect face by using ml kit.
But for iOS, even though the image meets the required quality, face detection is not working.

My question is that is it about the image quality not meeting that is captured by react native camera kit?

Code Example
import FaceDetection from '@react-native-ml-kit/face-detection'
const { uri } = await cameraRef.current.capture()
const result = await FaceDetection.detect(imagePath)

result face array is always empty.

Expected behavior

  • result face array should not be empty if the face is detected.

Smartphone (please complete the following information):

  • Tested with both release and debug version.
@scarlac
Copy link
Collaborator

scarlac commented Aug 14, 2023

This doesn't seem like an issue with Camera Kit. Please submit your bug report to @react-native-ml-kit/face-detection who seems to be the owner of that library.

@Yash-Madenenni
Copy link

This doesn't seem like an issue with Camera Kit. Please submit your bug report to @react-native-ml-kit/face-detection who seems to be the owner of that library.

FaceDetection.detect works with url image only not on a local image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants