We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const detectedFaces = await FaceDetection.detect(imagePath, { minFaceSize: 0.1, performanceMode: 'fast', });
the detectedFaces is returning data in android but on ios it's empty
@react-native-ml-kit/barcode-scanning: version@react-native-ml-kit/face-detection: version@react-native-ml-kit/identify-languages: version@react-native-ml-kit/image-labeling: version@react-native-ml-kit/text-recognition: version@react-native-ml-kit/translate-text: version
Macbook pro i9
In any ios device the FaceDetection.detect function is returning [] can any one resolve this any suggestion?
The text was updated successfully, but these errors were encountered:
Same issue
Sorry, something went wrong.
Update: Solution for Fix:
import ImageResizer from '@bam.tech/react-native-image-resizer'; const rotatedImage = await ImageResizer.createResizedImage( `file://${photo.path}`, // Image path 900, // Target width 900, // Target height 'JPEG', // Output format 85, // Quality 0, // Rotate by 0 degrees initially (corrects orientation) ); console.log('rotatedImage : ', rotatedImage); const finalImagePath = rotatedImage.uri; handleImageDetection(finalImagePath); ** Using Image Resizer fixed the problem
No branches or pull requests
What happened?
const detectedFaces = await FaceDetection.detect(imagePath, {
minFaceSize: 0.1,
performanceMode: 'fast',
});
Version
@react-native-ml-kit/barcode-scanning: version@react-native-ml-kit/face-detection: version@react-native-ml-kit/identify-languages: version@react-native-ml-kit/image-labeling: version@react-native-ml-kit/text-recognition: version@react-native-ml-kit/translate-text: version
Which ML Kit packages do you use?
What platforms are you seeing this issue on?
System Information
Macbook pro i9
Steps to Reproduce
In any ios device the FaceDetection.detect function is returning []
can any one resolve this any suggestion?
The text was updated successfully, but these errors were encountered: