PHP code example of weburnit / ibm-visual-recognition
1. Go to this page and download the library: Download weburnit/ibm-visual-recognition 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/ */
weburnit / ibm-visual-recognition example snippets
php
$service = new VisualRecognition('78ba7889-e331-4f58-958b-254f9231b1d2', 'MHsln6fPvCEp', '2015-12-02');
$service->classifyImage('/path/to/your/image/file.png', ['acne_1234151234']);
$service->classifyImages(['array:/all/file/paths/to/your/classify/images.png'], ['acne_1234151234'])