class Feature extends Message

Users describe the type of Google Cloud Vision API tasks to perform over images by using Features. Each Feature indicates a type of image detection task to perform. Features encode the Cloud Vision API vertical to operate on and the number of top-scoring results to return.

Protobuf type Google\Cloud\Vision\V1\Feature

Methods

__construct()

No description

int
getType()

The feature type.

setType(int $var)

The feature type.

int
getMaxResults()

Maximum number of results of this type.

setMaxResults(int $var)

Maximum number of results of this type.

Details

at line 34
__construct()

at line 45
int getType()

The feature type.

Generated from protobuf field .google.cloud.vision.v1.Feature.Type type = 1;

Return Value

int

at line 56
setType(int $var)

The feature type.

Generated from protobuf field .google.cloud.vision.v1.Feature.Type type = 1;

Parameters

int $var

at line 68
int getMaxResults()

Maximum number of results of this type.

Generated from protobuf field int32 max_results = 2;

Return Value

int

at line 79
setMaxResults(int $var)

Maximum number of results of this type.

Generated from protobuf field int32 max_results = 2;

Parameters

int $var