adam-paterson / watson-visual-recognition
IBM Watson Visual Recognition
Requires
- php: ~5.6|~7.0
- adam-paterson/watson-common: 1.0-dev
Requires (Dev)
- guzzlehttp/psr7: ^1.4
- mockery/mockery: ^0.9
- php-http/guzzle6-adapter: 1.1.*
- phpunit/phpunit: ~4.0||~5.0||~6.0
- squizlabs/php_codesniffer: ^3.0
This package is not auto-updated.
Last update: 2024-10-24 08:59:43 UTC
README
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.