Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Google
Cloud
Vision
Annotation
ImageProperties
PHP Class Google\Cloud\Vision\Annotation\ImageProperties
Example:
use Google\Cloud\ServiceBuilder; $cloud = new ServiceBuilder(); $vision = $cloud->vision(); $imageResource = fopen(__DIR__ .'/assets/family-photo.jpg', 'r'); $image = $vision->image($imageResource, [ 'imageProperties' ]); $annotation = $vision->annotate($image); $imageProperties = $annotation->imageProperties();
Inheritance:
extends
AbstractFeature
Datei anzeigen
Open project: GoogleCloudPlatform/gcloud-php
Public Methods
Method
Description
__construct
(
array
$info
)
Create an ImageProperties result.
colors
( ) :
array
Get the dominant colors in the image
Method Details
__construct()
public
method
This class is created internally by {@see \Google\Cloud\Vision\Annotation}. See {@see \Google\Cloud\Vision\Annotation::imageProperties()} for full usage details. This class should not be instantiated outside the externally.
public
__construct
(
array
$info
)
$info
array
The imageProperties annotation result
colors()
public
method
Example:
$colors = $imageProperties->colors();
See also:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#colorinfo ColorInfo
public
colors
( ) :
array
return
array