PHP code example of hymns / microsoft-cognitive-vision
1. Go to this page and download the library: Download hymns/microsoft-cognitive-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/ */
hymns / microsoft-cognitive-vision example snippets
// include your composer dependencies
iveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision = $client->vision()->analyze('URL_IMAGE');
print_r($vision);
$client = new \Hymns\MicrosoftCognitiveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision = $client->vision()->describe('URL_IMAGE');
print_r($vision);
$client = new \Hymns\MicrosoftCognitiveVision\Client('YOUR_APP_KEY', 'YOUR_REGION');
$vision = $client->vision()->ocr('URL_IMAGE');
print_r($vision);