2017 © Pedro Peláez
 

library recognizeim

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

image

kwn/recognizeim

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

  • Saturday, May 16, 2015
  • by kwn
  • Repository
  • 2 Watchers
  • 4 Stars
  • 20 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Recognize.im API

Code Climate, (*1)

Recognize.im provides API for Image Recognition. Before use you need to visit http://www.recognize.im/ and create an account. After sign in go to the user profile section and obtain: Your Client ID, Your API Key and Your CLAPI Key., (*2)

Installation

Add package to your composer.json, (*3)

"kwn/recognizeim": "~1.0"

Run update command, (*4)

php composer.phar update kwn/recognizeim

Done. Now you can use RecognizeIm classes., (*5)

Usage

use RecognizeIm\Client\RestApi;
use RecognizeIm\Client\SoapApi;
use RecognizeIm\Configuration;
use RecognizeIm\Model\Image;
use RecognizeIm\RecognizeImApi;

// [...]

// create a configuration object first
$configuration = new Configuration('CLIENT_ID', 'API_KEY', 'CLAPI_KEY');

// depending on your needs you can use soap or rest api 
$soapApi = new SoapApi($configuration);
$restApi = new RestApi($configuration, new ImageVerificator());

// or you can create an object that includes both apis (useful for dependency injection containers)
$recognizeim = new RecognizeImApi($soapApi, $restApi);

// now you can use soap api functions or rest api recognize method

// create an image and call recognize method 
$image = new Image('/home/kwn/Pictures/red.jpg');
$result = $recognizeim->getRestApiClient()->recognize($image, 'multi');

Authorization

You don't need to call method auth by yourself. Module object will authorize you when needed, you just need do provide valid credentials. You can get them from your account tab., (*6)

The Versions

16/05 2015

dev-master

9999999-dev https://github.com/kwn/RecognizeIm

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

image recognize recognizeim recognize.im reconizing

12/01 2015

1.0.2

1.0.2.0 https://github.com/kwn/RecognizeIm

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

image recognize recognizeim recognize.im reconizing

12/01 2015

1.0.1

1.0.1.0 https://github.com/kwn/RecognizeIm

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

image recognize recognizeim recognize.im reconizing

09/01 2015

1.0.0

1.0.0.0 https://github.com/kwn/RecognizeIm

Recognize.im PHP client. Allows image recognizing, includes REST and SOAP API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

image recognize recognizeim recognize.im reconizing