Companion
object Companion
Functions
Link copied to clipboard
fun createFromAndroidMediaImage(input: Image, rotation: ImageRotation = ImageRotation.Rotation0, cropRect: Rect = Rect(0, 0, input.width, input.height)): InputImage
Creates an SDK InputImage instance from image obtained from Android Camera API.
Link copied to clipboard
fun createFromBitmap(input: Bitmap, rotation: ImageRotation = ImageRotation.Rotation0, cropRect: Rect = Rect(0, 0, input.width, input.height)): InputImage
Creates an SDK InputImage instance from Android Bitmap.
Link copied to clipboard
fun createFromCameraXImageProxy(image: ImageProxy, rotation: ImageRotation = ImageRotation.fromDegreesInt(image.imageInfo.rotationDegrees), cropRect: Rect = image.cropRect): InputImage
Creates an SDK InputImage instance from a CameraX ImageProxy.