Google\Cloud\Vision\Annotation\Face\Landmarks::nose PHP Method

nose() public method

This method returns an array with four keys: tip, bottomRight, bottomLeft, bottomCenter. The value of each of these keys is of the normal Position format described in the Cloud Vision documentation. Example: $positions = $landmarks->nose(); 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 nose ( ) : array
return array
    public function nose()
    {
        return ['tip' => $this->getLandmark('NOSE_TIP'), 'bottomRight' => $this->getLandmark('NOSE_BOTTOM_RIGHT'), 'bottomLeft' => $this->getLandmark('NOSE_BOTTOM_LEFT'), 'bottomCenter' => $this->getLandmark('NOSE_BOTTOM_CENTER')];
    }