PHP 클래스 Google\Cloud\Vision\Annotation\Entity

Example: use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $vision = $cloud->vision(); $imageResource = fopen(__DIR__ .'/assets/family-photo.jpg', 'r'); $image = $vision->image($imageResource, [ 'text' ]); $annotation = $vision->annotate($image); $text = $annotation->text()[0];
또한 보기: https://cloud.google.com/vision/reference/rest/v1/images/annotate#entityannotation EntityAnnotation
상속: extends AbstractFeature, use trait Google\Cloud\CallTrait
파일 보기 프로젝트 열기: GoogleCloudPlatform/gcloud-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $info ) Create an entity annotation result.

메소드 상세

__construct() 공개 메소드

This class is created internally by {@see \Google\Cloud\Vision\Annotation} and is used to represent various annotation feature results. This class should not be instantiated externally. Entities are returned by {@see \Google\Cloud\Vision\Annotation::landmarks()}, {@see \Google\Cloud\Vision\Annotation::logos()}, {@see \Google\Cloud\Vision\Annotation::labels()} and {@see \Google\Cloud\Vision\Annotation::text()}.
public __construct ( array $info )
$info array The entity annotation result