yedincisenol/vision is a Laravel package for laravel wrapper for gcloud vision php client.
It currently has 2 GitHub stars and 7.465 downloads on Packagist (latest version 0.1.2).
Install it with composer require yedincisenol/vision.
Discover more Laravel packages by yedincisenol
or browse all Laravel packages to compare alternatives.
Last updated
composer require "yedincisenol/vision"
config/app.php'providers' => [
...
yedincisenol\Vision\LaravelServiceProvider::class
],
config/app.php
'aliases' => [
...
'Vision' => \yedincisenol\Vision\LaravelFacede::class
],
copy theese parameters to your project .env and fill
VISION_CREDENTIALS_PATH=
VISION_API_KEY=
How to get credentials file? Visit here How to get API key? Visit here
use Vision;
$image = Vision::image(file_get_contents('https://cdn.britannica.com/700x450/04/1304-004-E64E228C.jpg'), ['LABEL_DETECTION']);
$results = Vision::annotate($image);
collect(Vision::annotate($image)->labels())->each(function ($l) { echo $l->description() . PHP_EOL; });
For more detail visit here
php artisan vendor:publish --tag=vision