2017 © Pedro Peláez
 

library cloudsight-http-client

HTTP client for CloudSight's image recognition API. (Not endorsed by CloudSight.)

image

nfreear/cloudsight-http-client

HTTP client for CloudSight's image recognition API. (Not endorsed by CloudSight.)

  • Monday, May 4, 2015
  • by nfreear
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,011 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 2 Versions
  • 99 % Grown

The README.md

Latest Stable Version MIT License Build status: Travis-CI, (*1)

cloudsight-http-client

PHP HTTP client library for the CloudSight image recognition API, with mock API functionality., (*2)

Installation

Install using Composer, via Packagist. At the commandline / in a terminal, type:, (*3)

composer require nfreear/cloudsight-http-client:dev-master

Usage

  1. Register with CloudSight to get an API key., (*4)

  2. At the commandline / in a terminal, type:, (*5)

    composer copy-env
    
  3. Edit the CS_API_KEY variable, in the example/.env configuration file, using your favourite text editor:, (*6)

    atom example/.env
    
  4. Try the command line example:, (*7)

    composer example
    
  5. And, a web server based example:, (*8)

    composer web
    

Note: you'll want to set the CS_MOCK variable to false, to run live demos!, (*9)

Legacy

postImageRequests($image_url);

while (1) {

    sleep(1);

    $result = $client->getImageResponses($request->token);

    // Check if analysis is complete.
    if ($client->isComplete()) {
        break;
    }
}

echo "Complete. ALT text: " . $result->name;
?>

NOTE: this library is NOT endorsed by CloudSight., (*10)

© 2016 Nick Freear. License: MIT., (*11)

author: @nfreear on Twitter, (*12)

The Versions

04/05 2015

1.0.0-alpha

1.0.0.0-alpha http://cloudsight.readme.io

HTTP client for CloudSight's image recognition API. (Not endorsed by CloudSight.)

  Sources   Download

MIT

The Requires

 

The Development Requires

search picture ocr vision

02/05 2015

dev-master

9999999-dev http://cloudsight.readme.io

HTTP client for CloudSight's image recognition API. (Not endorsed by CloudSight.)

  Sources   Download

MIT

The Requires

 

The Development Requires

search picture recognition vision iet-ou machinelearning