I have been migrating to the new standalone ML Kit from the Firebase ML Kit.
While creating the FirebaseVisionImage
I used to pass the rotation as FirebaseVisionImageMetadata.ROTATION_180
, but according to documentation, the FirebaseVisionImageMetadata
class has been removed.
How to set the rotation value while using new SDK classes?
Old code:
mFaceDetector.detectInImage(FirebaseVisionImage.fromMediaImage(
finalImage,
FirebaseVisionImageMetadata.ROTATION_180))
.addOnSuccessListener(faces -> {
// Some logic
});