Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::BoundingBox (v0.20.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::BoundingBox.

Bounding box encompassing detected text within an image.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#height

def height() -> ::Integer
Returns
  • (::Integer) — Height of the bounding box in pixels.

#height=

def height=(value) -> ::Integer
Parameter
  • value (::Integer) — Height of the bounding box in pixels.
Returns
  • (::Integer) — Height of the bounding box in pixels.

#left

def left() -> ::Integer
Returns
  • (::Integer) — Left coordinate of the bounding box. (0,0) is upper left.

#left=

def left=(value) -> ::Integer
Parameter
  • value (::Integer) — Left coordinate of the bounding box. (0,0) is upper left.
Returns
  • (::Integer) — Left coordinate of the bounding box. (0,0) is upper left.

#top

def top() -> ::Integer
Returns
  • (::Integer) — Top coordinate of the bounding box. (0,0) is upper left.

#top=

def top=(value) -> ::Integer
Parameter
  • value (::Integer) — Top coordinate of the bounding box. (0,0) is upper left.
Returns
  • (::Integer) — Top coordinate of the bounding box. (0,0) is upper left.

#width

def width() -> ::Integer
Returns
  • (::Integer) — Width of the bounding box in pixels.

#width=

def width=(value) -> ::Integer
Parameter
  • value (::Integer) — Width of the bounding box in pixels.
Returns
  • (::Integer) — Width of the bounding box in pixels.