Interface Document.Page.MatrixOrBuilder (2.2.1)

public static interface Document.Page.MatrixOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCols()

public abstract int getCols()

Number of columns in the matrix.

int32 cols = 2;

Returns
TypeDescription
int

The cols.

getData()

public abstract ByteString getData()

The matrix data.

bytes data = 4;

Returns
TypeDescription
ByteString

The data.

getRows()

public abstract int getRows()

Number of rows in the matrix.

int32 rows = 1;

Returns
TypeDescription
int

The rows.

getType()

public abstract int getType()

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

int32 type = 3;

Returns
TypeDescription
int

The type.