Google\Cloud\Vision\VisionClient::annotate PHP Method

annotate() public method

Example: $familyPhotoResource = fopen(__DIR__ .'/assets/family-photo.jpg', 'r'); $image = $vision->image($familyPhotoResource, [ 'FACE_DETECTION' ]); $result = $vision->annotate($image);
public annotate ( Image $image, array $options = [] ) : Annotation
$image Image The image to annotate
$options array Configuration options
return Annotation
    public function annotate(Image $image, array $options = [])
    {
        $res = $this->annotateBatch([$image], $options);
        return $res[0];
    }