Cloud Vision V1 Client - Class WebImage (1.8.0)

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

Metadata for online images.

Generated from protobuf message google.cloud.vision.v1.WebDetection.WebImage

Namespace

Google \ Cloud \ Vision \ V1 \ WebDetection

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ url string

The result image URL.

↳ score float

(Deprecated) Overall relevancy score for the image.

getUrl

The result image URL.

Returns
TypeDescription
string

setUrl

The result image URL.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getScore

(Deprecated) Overall relevancy score for the image.

Returns
TypeDescription
float

setScore

(Deprecated) Overall relevancy score for the image.

Parameter
NameDescription
var float
Returns
TypeDescription
$this