Google\Cloud\Vision\Annotation\SafeSearch::isSpoof PHP Méthode

isSpoof() public méthode

Example: if ($safeSearch->isSpoof()) { echo "Image contains spoofed content."; }
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"`.
Résultat boolean
    public function isSpoof($strength = self::STRENGTH_LOW)
    {
        return $this->likelihood($this->info['spoof'], $strength);
    }