createFromAndroidMediaImage

Creates SDK input image from image obtained from Android Camera API.

Parameters

input

image from Android camera API

rotation

rotation needed to transform the image to the correct orientation.

cropRect

crop rectangle associated with this frame. The crop rectangle specifies the region of valid pixels in the image (e.g. pixels visible in camera preview). Crop rectangle does not take into account image orientation, it should be set for raw image (as it comes from the camera).