PHP code example of jonasva / laravel-vision
1. Go to this page and download the library: Download jonasva/laravel-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/ */
jonasva / laravel-vision example snippets
$path = $request->file('file')->getRealPath();
$text = Vision::getFullText($path);
use Google\Cloud\Vision\V1\Feature\Type;
$path = $request->file('file')->getRealPath();
$features = [Type::FACE_DETECTION];
$response = Vision::annotateImage($path, $features);
$faces = $response->getFaceAnnotations();
bash
php artisan vendor:publish --provider="Jonasva\Vision\VisionServiceProvider"