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

isSorrowful() public method

Example: if ($face->isSorrowful()) { echo "Face is Sorrowful"; }
public isSorrowful ( 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 isSorrowful($strength = self::STRENGTH_LOW)
    {
        return $this->likelihood($this->info['sorrowLikelihood'], $strength);
    }