Cloud Vision V1 Client - Class WebEntity (1.8.0)

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

Namespace

Google \ Cloud \ Vision \ V1 \ WebDetection

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setEntityId

Opaque entity ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getScore

Overall relevancy score for the entity.

Not normalized and not comparable across different image queries.

Returns
TypeDescription
float

setScore

Overall relevancy score for the entity.

Not normalized and not comparable across different image queries.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getDescription

Canonical description of the entity, in English.

Returns
TypeDescription
string

setDescription

Canonical description of the entity, in English.

Parameter
NameDescription
var string
Returns
TypeDescription
$this