CropArea Class

A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.

All required parameters must be populated in order to send to Azure.

Inheritance
CropArea

Constructor

CropArea(*, top: float, bottom: float, left: float, right: float, **kwargs)

Parameters

top
float
Required

Required. The top coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

bottom
float
Required

Required. The bottom coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

left
float
Required

Required. The left coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.

right
float
Required

Required. The right coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.