class ProjectsImages extends Resource (View source)

The "images" collection of methods.

Typical usage is:

 $visionService = new Google\Service\Vision(...);
 $images = $visionService->projects_images;

Methods

annotate(string $parent, BatchAnnotateImagesRequest $postBody, array $optParams = [])

Run image detection and annotation for a batch of images. (images.annotate)

asyncBatchAnnotate(string $parent, AsyncBatchAnnotateImagesRequest $postBody, array $optParams = [])

Run asynchronous image detection and annotation for a list of images.

Details

BatchAnnotateImagesResponse annotate(string $parent, BatchAnnotateImagesRequest $postBody, array $optParams = [])

Run image detection and annotation for a batch of images. (images.annotate)

Parameters

string $parent

Optional. Target project and location to make a call. Format: projects/{project-id}/locations/{location-id}. If no parent is specified, a region will be chosen automatically. Supported location-ids: us: USA country only, asia: East asia areas, like Japan, Taiwan, eu: The European Union. Example: projects/project-A/locations/eu.

BatchAnnotateImagesRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchAnnotateImagesResponse

Exceptions

Exception

Operation asyncBatchAnnotate(string $parent, AsyncBatchAnnotateImagesRequest $postBody, array $optParams = [])

Run asynchronous image detection and annotation for a list of images.

Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateImagesResponse (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto. (images.asyncBatchAnnotate)

Parameters

string $parent

Optional. Target project and location to make a call. Format: projects/{project-id}/locations/{location-id}. If no parent is specified, a region will be chosen automatically. Supported location-ids: us: USA country only, asia: East asia areas, like Japan, Taiwan, eu: The European Union. Example: projects/project-A/locations/eu.

AsyncBatchAnnotateImagesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception