You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
my Image File URI is below : -
file:///private/var/mobile/Containers/Data/Application/88D2BA48-CA30-49EE-86F6-C3014AE0C89D/tmp/B48F5191-B4BE-497B-ACEA-F2CC8F493792-3951-000001EA7FA7E978.jpg
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"
The text was updated successfully, but these errors were encountered: