Enum Block.BlockType (3.26.0)

public enum Block.BlockType extends Enum<Block.BlockType> implements ProtocolMessageEnum

Type of a block (text, image etc) as identified by OCR.

Protobuf enum google.cloud.vision.v1p3beta1.Block.BlockType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
BARCODE

Barcode block.

BARCODE = 5;

BARCODE_VALUE

Barcode block.

BARCODE = 5;

PICTURE

Image block.

PICTURE = 3;

PICTURE_VALUE

Image block.

PICTURE = 3;

RULER

Horizontal/vertical line box.

RULER = 4;

RULER_VALUE

Horizontal/vertical line box.

RULER = 4;

TABLE

Table block.

TABLE = 2;

TABLE_VALUE

Table block.

TABLE = 2;

TEXT

Regular text block.

TEXT = 1;

TEXT_VALUE

Regular text block.

TEXT = 1;

UNKNOWN

Unknown block type.

UNKNOWN = 0;

UNKNOWN_VALUE

Unknown block type.

UNKNOWN = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()