PHP code example of yedincisenol / vision

1. Go to this page and download the library: Download yedincisenol/vision library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yedincisenol / vision example snippets


composer 

'providers' => [
    ...
    yedincisenol\Vision\LaravelServiceProvider::class
],

'aliases' => [
        ...
        'Vision'    =>  \yedincisenol\Vision\LaravelFacede::class
],

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; });
$xslt
php artisan vendor:publish --tag=vision