Cloud Document AI v1 API - Class Document.Types.Page.Types.Matrix (3.8.0)

public sealed class Document.Types.Page.Types.Matrix : IMessage<Document.Types.Page.Types.Matrix>, IEquatable<Document.Types.Page.Types.Matrix>, IDeepCloneable<Document.Types.Page.Types.Matrix>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.Page.Types.Matrix.

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

Inheritance

object > Document.Types.Page.Types.Matrix

Namespace

Google.Cloud.DocumentAI.V1

Assembly

Google.Cloud.DocumentAI.V1.dll

Constructors

Matrix()

public Matrix()

Matrix(Matrix)

public Matrix(Document.Types.Page.Types.Matrix other)
Parameter
NameDescription
otherDocumentTypesPageTypesMatrix

Properties

Cols

public int Cols { get; set; }

Number of columns in the matrix.

Property Value
TypeDescription
int

Data

public ByteString Data { get; set; }

The matrix data.

Property Value
TypeDescription
ByteString

Rows

public int Rows { get; set; }

Number of rows in the matrix.

Property Value
TypeDescription
int

Type

public int Type { get; set; }

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

Property Value
TypeDescription
int