Google\Cloud\Vision\Annotation\SafeSearch::isAdult PHP 메소드

isAdult() 공개 메소드

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