Cloud Vision V1 Client - Class Feature (1.6.8)

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

The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple Feature objects can be specified in the features list.

Generated from protobuf message google.cloud.vision.v1.Feature

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

The feature type.

↳ max_results int

Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

↳ model string

Model to use for the feature. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also support "builtin/weekly" for the bleeding edge release updated weekly.

getType

The feature type.

Returns
TypeDescription
int

setType

The feature type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxResults

Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

Returns
TypeDescription
int

setMaxResults

Maximum number of results of this type. Does not apply to TEXT_DETECTION, DOCUMENT_TEXT_DETECTION, or CROP_HINTS.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getModel

Model to use for the feature.

Supported values: "builtin/stable" (the default if unset) and "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also support "builtin/weekly" for the bleeding edge release updated weekly.

Returns
TypeDescription
string

setModel

Model to use for the feature.

Supported values: "builtin/stable" (the default if unset) and "builtin/latest". DOCUMENT_TEXT_DETECTION and TEXT_DETECTION also support "builtin/weekly" for the bleeding edge release updated weekly.

Parameter
NameDescription
var string
Returns
TypeDescription
$this