Может ли Google Cloud Vision вернуть больше языков меток? - PullRequest
1 голос
/ 24 мая 2019

Я попробовал образец API Google Vision (PHP)

# includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# imports the Google Cloud client library
use Google\Cloud\Vision\V1\ImageAnnotatorClient;

# instantiates a client
$imageAnnotator = new ImageAnnotatorClient();

# the name of the image file to annotate
$fileName = 'test/data/wakeupcat.jpg';

# prepare the image to be annotated
$image = file_get_contents($fileName);

# performs label detection on the image file
$response = $imageAnnotator->labelDetection($image);
$labels = $response->getLabelAnnotations();

if ($labels) {
    echo("Labels:" . PHP_EOL);
    foreach ($labels as $label) {
        echo($label->getDescription() . PHP_EOL);
    }
} else {
    echo('No label found' . PHP_EOL);
}

Я могу получить метку объектов на изображении, это потрясающе, но метка на английском языке. Могу ли я настроить API вернуть другой язык или несколько языков?

P / S: Извините за мой плохой английский: (* ​​1006 *

...