Reference documentation and code samples for the Cloud Vision V1 Client class SafeSearchAnnotation.
Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).
Generated from protobuf message google.cloud.vision.v1.SafeSearchAnnotation
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ adult |
int
Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities. |
↳ spoof |
int
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive. |
↳ medical |
int
Likelihood that this is a medical image. |
↳ violence |
int
Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals. |
↳ racy |
int
Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas. |
getAdult
Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.
Returns | |
---|---|
Type | Description |
int |
setAdult
Represents the adult content likelihood for the image. Adult content may contain elements such as nudity, pornographic images or cartoons, or sexual activities.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSpoof
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
Returns | |
---|---|
Type | Description |
int |
setSpoof
Spoof likelihood. The likelihood that an modification was made to the image's canonical version to make it appear funny or offensive.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMedical
Likelihood that this is a medical image.
Returns | |
---|---|
Type | Description |
int |
setMedical
Likelihood that this is a medical image.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getViolence
Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
Returns | |
---|---|
Type | Description |
int |
setViolence
Likelihood that this image contains violent content. Violent content may include death, serious harm, or injury to individuals or groups of individuals.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getRacy
Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
Returns | |
---|---|
Type | Description |
int |
setRacy
Likelihood that the request image contains racy content. Racy content may include (but is not limited to) skimpy or sheer clothing, strategically covered nudity, lewd or provocative poses, or close-ups of sensitive body areas.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |