Class: Google::Cloud::Vision::V1::CropHint

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#bounding_polyGoogle::Cloud::Vision::V1::BoundingPoly

Returns The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale, as returned in +ImageParams+.

Returns:



431
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 431

class CropHint; end

#confidenceFloat

Returns Confidence of this being a salient region. Range [0, 1].

Returns:

  • (Float)

    Confidence of this being a salient region. Range [0, 1].



431
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 431

class CropHint; end

#importance_fractionFloat

Returns Fraction of importance of this salient region with respect to the original image.

Returns:

  • (Float)

    Fraction of importance of this salient region with respect to the original image.



431
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 431

class CropHint; end