Reference documentation and code samples for the Cloud Vision V1 Client class WebEntity.
Entity deduced from similar images on the Internet.
Generated from protobuf message google.cloud.vision.v1.WebDetection.WebEntity
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ entity_id |
string
Opaque entity ID. |
↳ score |
float
Overall relevancy score for the entity. Not normalized and not comparable across different image queries. |
↳ description |
string
Canonical description of the entity, in English. |
getEntityId
Opaque entity ID.
Returns | |
---|---|
Type | Description |
string |
setEntityId
Opaque entity ID.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getScore
Overall relevancy score for the entity.
Not normalized and not comparable across different image queries.
Returns | |
---|---|
Type | Description |
float |
setScore
Overall relevancy score for the entity.
Not normalized and not comparable across different image queries.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
Canonical description of the entity, in English.
Returns | |
---|---|
Type | Description |
string |
setDescription
Canonical description of the entity, in English.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |