Cloud Vision V1 Client - Class BlockType (1.10.1)

Reference documentation and code samples for the Cloud Vision V1 Client class BlockType.

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

Protobuf type google.cloud.vision.v1.Block.BlockType

Namespace

Google \ Cloud \ Vision \ V1 \ Block

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

UNKNOWN

Value: 0

Unknown block type.

Generated from protobuf enum UNKNOWN = 0;

TEXT

Value: 1

Regular text block.

Generated from protobuf enum TEXT = 1;

TABLE

Value: 2

Table block.

Generated from protobuf enum TABLE = 2;

PICTURE

Value: 3

Image block.

Generated from protobuf enum PICTURE = 3;

RULER

Value: 4

Horizontal/vertical line box.

Generated from protobuf enum RULER = 4;

BARCODE

Value: 5

Barcode block.

Generated from protobuf enum BARCODE = 5;