कंसोल पर जाएं

FirebaseVisionImage

public class FirebaseVisionImage extends Object

Represents an image object that can be used for both on-device and cloud API detectors.

Public Method Summary

static FirebaseVisionImage
fromBitmap(Bitmap bitmap)
Creates a FirebaseVisionImage from a Bitmap, where the object in the image should be already up-right and no rotation is needed.
static FirebaseVisionImage
fromByteArray(byte[] byteArray, FirebaseVisionImageMetadata metadata)
Creates a FirebaseVisionImage from a byte array, e.g.
static FirebaseVisionImage
static FirebaseVisionImage
fromFilePath(Context context, Uri imageUri)
Creates a FirebaseVisionImage from a local image file Uri.
static FirebaseVisionImage
fromMediaImage(Image image, int rotation)
Creates a FirebaseVisionImage from a Image object, e.g.
Bitmap
getBitmap()
Returns its bitmap representation.

Inherited Method Summary