Agora Java API Reference for Android
|
Static Public Member Functions | |
static RectF | normalizedFaceRect (Rect rect, int displayOrientation, boolean isMirror) |
static Rect | sensorToNormalizedPreview (Rect transformRect, int previewWidth, int previewHeight, Rect cropRegion) |
Created by chenfeifei on 2017/12/12.
|
static |
Transform the sensor coordinate from device to NormalizedPreview(-1000, 1000). Center point is (0, 0).
transformRect | the sensor rect. |
previewWidth | the camera device preview width. |
previewHeight | the camera device preview height. |
cropRegion | the sensor crop region. |