Method | Description | |
---|---|---|
__construct ( array $info ) | Create a SafeSearch annotation result | |
isAdult ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the image contains adult content. | |
isMedical ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the image contains medical content | |
isSpoof ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the image was modified to make it appear funny or offensive. | |
isViolent ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the image contains violent content |
public __construct ( array $info ) | ||
$info | array | The SafeSearch annotation result |
public isAdult ( string $strength = self::STRENGTH_LOW ) : boolean | ||
$strength | string | [optional] Value should be one of "low", "medium" or "high". Recommended usage is via `Face::STRENGTH_*` constants. Higher strength will result in fewer `true` results, but fewer false positives. **Defaults to** `"low"`. |
return | boolean |
public isMedical ( string $strength = self::STRENGTH_LOW ) : boolean | ||
$strength | string | [optional] Value should be one of "low", "medium" or "high". Recommended usage is via `Face::STRENGTH_*` constants. Higher strength will result in fewer `true` results, but fewer false positives. **Defaults to** `"low"`. |
return | boolean |
public isSpoof ( string $strength = self::STRENGTH_LOW ) : boolean | ||
$strength | string | [optional] Value should be one of "low", "medium" or "high". Recommended usage is via `Face::STRENGTH_*` constants. Higher strength will result in fewer `true` results, but fewer false positives. **Defaults to** `"low"`. |
return | boolean |
public isViolent ( string $strength = self::STRENGTH_LOW ) : boolean | ||
$strength | string | [optional] Value should be one of "low", "medium" or "high". Recommended usage is via `Face::STRENGTH_*` constants. Higher strength will result in fewer `true` results, but fewer false positives. **Defaults to** `"low"`. |
return | boolean |