Google\Cloud\Vision\Annotation\Face::hasHeadwear PHP Method

hasHeadwear() public method

Example: if ($face->hasHeadwear()) { echo "Face has Headwear"; }
public hasHeadwear ( 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 function hasHeadwear($strength = self::STRENGTH_LOW)
    {
        return $this->likelihood($this->info['headwearLikelihood'], $strength);
    }