class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentPageMatrix
Representation
for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.
Attributes
Number of columns in the matrix. Corresponds to the JSON property `cols` @return [Fixnum]
The matrix data. Corresponds to the JSON property `data` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
Number of rows in the matrix. Corresponds to the JSON property `rows` @return [Fixnum]
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
# File lib/google/apis/documentai_v1beta3/classes.rb, line 5764 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/documentai_v1beta3/classes.rb, line 5769 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