class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageMatrix

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

Attributes

cols[RW]

Number of columns in the matrix. Corresponds to the JSON property `cols` @return [Fixnum]

data[RW]

The matrix data. Corresponds to the JSON property `data` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

rows[RW]

Number of rows in the matrix. Corresponds to the JSON property `rows` @return [Fixnum]

type[RW]

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 docs.opencv.org/4.3.0/d1/d1b/ group__core__hal__interface.html Corresponds to the JSON property `type` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 3689
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1/classes.rb, line 3694
def update!(**args)
  @cols = args[:cols] if args.key?(:cols)
  @data = args[:data] if args.key?(:data)
  @rows = args[:rows] if args.key?(:rows)
  @type = args[:type] if args.key?(:type)
end