Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::Page::Matrix (v0.25.0)

Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::Page::Matrix.

Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cols

def cols() -> ::Integer
Returns
  • (::Integer) — Number of columns in the matrix.

#cols=

def cols=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of columns in the matrix.
Returns
  • (::Integer) — Number of columns in the matrix.

#data

def data() -> ::String
Returns
  • (::String) — The matrix data.

#data=

def data=(value) -> ::String
Parameter
  • value (::String) — The matrix data.
Returns
  • (::String) — The matrix data.

#rows

def rows() -> ::Integer
Returns
  • (::Integer) — Number of rows in the matrix.

#rows=

def rows=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of rows in the matrix.
Returns
  • (::Integer) — Number of rows in the matrix.

#type

def type() -> ::Integer
Returns
  • (::Integer) — This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group_corehal_interface.html

#type=

def type=(value) -> ::Integer
Parameter
  • value (::Integer) — This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group_corehal_interface.html
Returns
  • (::Integer) — This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group_corehal_interface.html