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(**kwargs)
Parameters
- top
- float
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. 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. 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. 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.
Feedback
Submit and view feedback for