Class CropRegion
java.lang.Object
com.azure.ai.vision.imageanalysis.models.CropRegion
A region at the desired aspect ratio that can be used as image thumbnail.
The region preserves as much content as possible from the analyzed image, with priority given to detected faces.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the aspectRatio property: The aspect ratio of the crop region.Get the boundingBox property: The bounding box of the region.
-
Method Details
-
getAspectRatio
public double getAspectRatio()Get the aspectRatio property: The aspect ratio of the crop region. Aspect ratio is calculated by dividing the width of the region in pixels by its height in pixels. The aspect ratio will be in the range 0.75 to 1.8 (inclusive) if provided by the developer during the analyze call. Otherwise, it will be in the range 0.5 to 2.0 (inclusive).- Returns:
- the aspectRatio value.
-
getBoundingBox
Get the boundingBox property: The bounding box of the region.- Returns:
- the boundingBox value.
-