-
Notifications
You must be signed in to change notification settings - Fork 86
Description
When I use Image taken from React native camera kit package, even when the face is clear and have proper pixel, the face result is incorrect and it happens on ios device only.
Face detection is working properly when image is picked from device.
Here is my code for face detection.
const { uri } = await cameraRef.current.capture()
const result = await FaceDetection.detect(imagePath, { classificationMode: 'all', })
here is example image path generated by react native camera kit
Image size is 1179 × 1179 pixels
file:///private/var/mobile/Containers/Data/Application/8A87BC60-F8AC-4344-A9A2-D1ECB695BDA8/tmp/6DF288F4-D386-42FE-A51E-DF8C3C7DC6C7-7734-0000018B730F71E2.jpg
here is detail of my project
"react-native": "0.72.1"
"@react-native-ml-kit/face-detection": "^1.1.2"
"react-native-camera-kit": "^13.0.0"