Class: Google::Cloud::Dlp::V2::BoundingBox

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

Bounding box encompassing detected text within an image.

Instance Attribute Summary collapse

Instance Attribute Details

#height::Integer

Returns Height of the bounding box in pixels.

Returns:

  • (::Integer)

    Height of the bounding box in pixels.



668
669
670
671
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 668

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

#left::Integer

Returns Left coordinate of the bounding box. (0,0) is upper left.

Returns:

  • (::Integer)

    Left coordinate of the bounding box. (0,0) is upper left.



668
669
670
671
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 668

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

#top::Integer

Returns Top coordinate of the bounding box. (0,0) is upper left.

Returns:

  • (::Integer)

    Top coordinate of the bounding box. (0,0) is upper left.



668
669
670
671
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 668

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

#width::Integer

Returns Width of the bounding box in pixels.

Returns:

  • (::Integer)

    Width of the bounding box in pixels.



668
669
670
671
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 668

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