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

leftEyeBoundaries() public method

This method returns an array with four keys: left, right, top, bottom. The value of each of these keys is of the normal Position format described in the Cloud Vision documentation. Example: $positions = $landmarks->leftEyeBoundaries(); 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 leftEyeBoundaries ( ) : array
return array
    public function leftEyeBoundaries()
    {
        return ['left' => $this->getLandmark('LEFT_EYE_LEFT_CORNER'), 'top' => $this->getLandmark('LEFT_EYE_TOP_BOUNDARY'), 'right' => $this->getLandmark('LEFT_EYE_RIGHT_CORNER'), 'bottom' => $this->getLandmark('LEFT_EYE_BOTTOM_BOUNDARY')];
    }