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

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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_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.

Returns:



529
530
531
532
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 529

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].

Returns:

  • (::Float)

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



529
530
531
532
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 529

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.

Returns:

  • (::Float)

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



529
530
531
532
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 529

class CropHint
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end