Class: Google::Cloud::Vision::V1p4beta1::CropHint
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1p4beta1::CropHint
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vision/v1p4beta1/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::V1p4beta1::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::V1p4beta1::BoundingPoly
Returns The bounding polygon for the crop region. The coordinates of the bounding box are in the original image's scale.
525 526 527 528 |
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 525 class CropHint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#confidence ⇒ ::Float
Returns Confidence of this being a salient region. Range [0, 1].
525 526 527 528 |
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 525 class CropHint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#importance_fraction ⇒ ::Float
Returns Fraction of importance of this salient region with respect to the original image.
525 526 527 528 |
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 525 class CropHint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |