class SafeSearchAnnotation extends Message

Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).

Protobuf type Google\Cloud\Vision\V1\SafeSearchAnnotation

Methods

__construct()

No description

int
getAdult()

Represents the adult content likelihood for the image.

setAdult(int $var)

Represents the adult content likelihood for the image.

int
getSpoof()

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

setSpoof(int $var)

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

int
getMedical()

Likelihood that this is a medical image.

setMedical(int $var)

Likelihood that this is a medical image.

int
getViolence()

Violence likelihood.

setViolence(int $var)

Violence likelihood.

Details

at line 47
__construct()

at line 58
int getAdult()

Represents the adult content likelihood for the image.

Generated from protobuf field .google.cloud.vision.v1.Likelihood adult = 1;

Return Value

int

at line 69
setAdult(int $var)

Represents the adult content likelihood for the image.

Generated from protobuf field .google.cloud.vision.v1.Likelihood adult = 1;

Parameters

int $var

at line 83
int getSpoof()

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

Generated from protobuf field .google.cloud.vision.v1.Likelihood spoof = 2;

Return Value

int

at line 96
setSpoof(int $var)

Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.

Generated from protobuf field .google.cloud.vision.v1.Likelihood spoof = 2;

Parameters

int $var

at line 108
int getMedical()

Likelihood that this is a medical image.

Generated from protobuf field .google.cloud.vision.v1.Likelihood medical = 3;

Return Value

int

at line 119
setMedical(int $var)

Likelihood that this is a medical image.

Generated from protobuf field .google.cloud.vision.v1.Likelihood medical = 3;

Parameters

int $var

at line 131
int getViolence()

Violence likelihood.

Generated from protobuf field .google.cloud.vision.v1.Likelihood violence = 4;

Return Value

int

at line 142
setViolence(int $var)

Violence likelihood.

Generated from protobuf field .google.cloud.vision.v1.Likelihood violence = 4;

Parameters

int $var