adam-paterson/watson-visual-recognition

IBM Watson Visual Recognition

dev-develop 2017-10-06 11:58 UTC

This package is not auto-updated.

Last update: 2024-11-21 09:17:28 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score SensioLabs Insights Total Downloads

Install

This library does not impose a specific dependency for sending HTTP requests. Instead we use HTTPlug abstraction library to allows to continue using your existing HTTP implementation or use your favoured one.

We also are utilising PSR-7 in this library so you will need to install a psr-7 compatible library such as guzzlehttp/psr7.

We can do this with a one line composer require:

$ composer require php-http/curl-client guzzlehttp/psr7 php-http/message adam-paterson/watson-visual-recognition

Usage

Classify Image From Url

use IBM\Watson\VisualRecognition as VisualRecognition;
 
$visualRecognition = VisualRecognition::create('apiKey');
 
$classifiers = $visualRecognition->classify('http://www.fillmurray.com/200/500.jpg');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.