Class: Google::Cloud::DocumentAI::V1beta3::Document::Page::Matrix

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#cols::Integer

Returns Number of columns in the matrix.

Returns:

  • (::Integer)

    Number of columns in the matrix.



275
276
277
278
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 275

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

#data::String

Returns The matrix data.

Returns:

  • (::String)

    The matrix data.



275
276
277
278
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 275

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

#rows::Integer

Returns Number of rows in the matrix.

Returns:

  • (::Integer)

    Number of rows in the matrix.



275
276
277
278
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 275

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

#type::Integer

Returns 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__core__hal__interface.html.

Returns:



275
276
277
278
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 275

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