Method | Description | |
---|---|---|
__construct ( array $info ) | Create an Face result. | |
hasHeadwear ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the person is wearing headwear. | |
isAngry ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is angry. | |
isBlurred ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is blurred. | |
isJoyful ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is joyful. | |
isSorrowful ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is sorrowful. | |
isSurprised ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is surprised. | |
isUnderExposed ( string $strength = self::STRENGTH_LOW ) : boolean | Check whether the face is under exposed. | |
landmarks ( ) : |
Returns an object detailing facial landmarks and their location. |
public __construct ( array $info ) | ||
$info | array | The face annotation result |
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 isAngry ( 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 isBlurred ( 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 isJoyful ( 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 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 isSurprised ( 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 isUnderExposed ( 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 landmarks ( ) : |
||
return |