Class: Google::Cloud::DocumentAI::V1beta3::Document::Page::Matrix
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1beta3::Document::Page::Matrix
- 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
-
#cols ⇒ ::Integer
Number of columns in the matrix.
-
#data ⇒ ::String
The matrix data.
-
#rows ⇒ ::Integer
Number of rows in the matrix.
-
#type ⇒ ::Integer
This encodes information about what data type the matrix uses.
Instance Attribute Details
#cols ⇒ ::Integer
Returns Number of columns in the matrix.
263 264 265 266 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 263 class Matrix include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#data ⇒ ::String
Returns The matrix data.
263 264 265 266 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 263 class Matrix include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#rows ⇒ ::Integer
Returns Number of rows in the matrix.
263 264 265 266 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 263 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.
263 264 265 266 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 263 class Matrix include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |