PHP code example of andaris / computer-vision-client
1. Go to this page and download the library: Download andaris/computer-vision-client 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/ */
andaris / computer-vision-client example snippets
use Andaris\ComputerVision\Client;
$imageData = file_get_contents('/path/to/image.jpg');
$client = new Client('14758f1afd44c09b7992073ccf00b43d'); // Insert your API key
$result = $client->analyze($imageData, [Client::FEATURE_CATEGORIES, Client::FEATURE_TAGS]);