Class: Google::Cloud::Vision::V1::CropHint
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1::CropHint
- 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
-
#bounding_poly ⇒ Google::Cloud::Vision::V1::BoundingPoly
The bounding polygon for the crop region.
-
#confidence ⇒ Float
Confidence of this being a salient region.
-
#importance_fraction ⇒ Float
Fraction of importance of this salient region with respect to the original image.
Instance Attribute Details
#bounding_poly ⇒ Google::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+.
454 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 454 class CropHint; end |
#confidence ⇒ Float
Returns Confidence of this being a salient region. Range [0, 1].
454 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 454 class CropHint; end |
#importance_fraction ⇒ Float
Returns Fraction of importance of this salient region with respect to the original image.
454 |
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb', line 454 class CropHint; end |