SafeSearchAnnotation
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
No description
Represents the adult content likelihood for the image.
Represents the adult content likelihood for the image.
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
Likelihood that this is a medical image.
Likelihood that this is a medical image.
Violence likelihood.
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;
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;
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;
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;
at line 108
int
getMedical()
Likelihood that this is a medical image.
Generated from protobuf field .google.cloud.vision.v1.Likelihood medical = 3;
at line 119
setMedical(int $var)
Likelihood that this is a medical image.
Generated from protobuf field .google.cloud.vision.v1.Likelihood medical = 3;
at line 131
int
getViolence()
Violence likelihood.
Generated from protobuf field .google.cloud.vision.v1.Likelihood violence = 4;
at line 142
setViolence(int $var)
Violence likelihood.
Generated from protobuf field .google.cloud.vision.v1.Likelihood violence = 4;