Property | Type | Description | |
---|---|---|---|
$connection | ConnectionInterface |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | Create a Vision client. | |
annotate ( |
Annotate a single image. | |
annotateBatch ( array $images, array $options = [] ) : |
Annotate a set of images. | |
image ( resource | string | StorageObject $image, array $features, array $options = [] ) : |
Create an instance of {@see Google\Cloud\Vision\Image} with required features and options. | |
images ( array $images, array $features, array $options = [] ) : |
Create an array of type {@see Google\Cloud\Vision\Image} with required features and options set for each member of the set. |
public __construct ( array $config = [] ) | ||
$config | array | [optional] { Configuration Options. @type string $projectId The project ID from the Google Developer's Console. @type CacheItemPoolInterface $authCache A cache for storing access tokens. **Defaults to** a simple in memory implementation. @type array $authCacheOptions Cache configuration options. @type callable $authHttpHandler A handler used to deliver Psr7 requests specifically for authentication. @type callable $httpHandler A handler used to deliver Psr7 requests. @type string $keyFile The contents of the service account credentials .json file retrieved from the Google Developers Console. @type string $keyFilePath The full path to your service account credentials .json file retrieved from the Google Developers Console. @type int $retries Number of retries for a failed request. **Defaults to** `3`. @type array $scopes Scopes to be used for the request. } |
public annotateBatch ( array $images, array $options = [] ) : |
||
$images | array | An array consisting of instances of {@see \Google\Cloud\Vision\Image}. |
$options | array | Configuration Options |
return |
public image ( resource | string | StorageObject $image, array $features, array $options = [] ) : |
||
$image | resource | string | StorageObject | An image to configure with the given settings. This parameter will accept a resource, a string of bytes, or an instance of {@see \Google\Cloud\Storage\StorageObject}. |
$features | array | A list of cloud vision [features](https://cloud.google.com/vision/reference/rest/v1/images/annotate#type) to apply to the image. |
$options | array | See {@see \Google\Cloud\Vision\Image::__construct()} for configuration details. |
return |
public images ( array $images, array $features, array $options = [] ) : |
||
$images | array | An array of images to configure with the given settings. Each member of the set can be a resource, a string of bytes, or an instance of {@see \Google\Cloud\Storage\StorageObject}. |
$features | array | A list of cloud vision features to apply to each image. |
$options | array | See {@see \Google\Cloud\Vision\Image::__construct()} for configuration details. |
return |