google_api_vision v0.22.1 GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p4beta1CropHint View Source

Single crop hint that is used to generate a new crop when serving an image.

Attributes

  • boundingPoly (type: GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p4beta1BoundingPoly.t, default: nil) - The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale.
  • confidence (type: number(), default: nil) - Confidence of this being a salient region. Range [0, 1].
  • importanceFraction (type: number(), default: nil) - Fraction of importance of this salient region with respect to the original image.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p4beta1CropHint{
  boundingPoly:
    GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p4beta1BoundingPoly.t(),
  confidence: number(),
  importanceFraction: number()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.