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.
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.
int
setType
The feature type.
var
int
$this
getMaxResults
Maximum number of results of this type. Does not apply to TEXT_DETECTION
, DOCUMENT_TEXT_DETECTION
, or CROP_HINTS
.
int
setMaxResults
Maximum number of results of this type. Does not apply to TEXT_DETECTION
, DOCUMENT_TEXT_DETECTION
, or CROP_HINTS
.
var
int
$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.
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.
var
string
$this

