Class: Google::Cloud::Vision::V1p3beta1::CropHint

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1p3beta1/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::V1p3beta1::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:



517
518
519
520
# File 'proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb', line 517

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



517
518
519
520
# File 'proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb', line 517

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.



517
518
519
520
# File 'proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb', line 517

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