Google\Cloud\Vision\Annotation\Face\Landmarks::lips PHP Méthode

lips() public méthode

This method returns an array with two keys: upper and lower. The value of each of these keys is of the normal Position format described in the Cloud Vision documentation. Example: $positions = $landmarks->lips(); foreach ($positions as $name => $pos) { echo "Position Type: ". $name . PHP_EOL; echo "x position: ". $pos['x'] . PHP_EOL; echo "y position: ". $pos['y'] . PHP_EOL; echo "z position: ". $pos['z'] . PHP_EOL; }
See also: https://cloud.google.com/vision/reference/rest/v1/images/annotate#position Position
public lips ( ) : array
Résultat array
    public function lips()
    {
        return ['upper' => $this->getLandmark('UPPER_LIP'), 'lower' => $this->getLandmark('LOWER_LIP')];
    }