2017 © Pedro Peláez
 

library megvii-ocr

OCR SDK for Megvii Cloud

image

tytymnty/megvii-ocr

OCR SDK for Megvii Cloud

  • Thursday, October 13, 2016
  • by tytymnty
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 27 % Grown

The README.md

MegviiOCR

Megvii OCR PHP SDK, (*1)

How to


require_once 'MegviiOCR.php';

use MegviiOCR\MegviiOCR;

$megviiOCR = new MegviiOCR('{YOUR_API_KEY}', '{YOUR_API_SECRET}');

// Detect by local file
$resp = $megviiOCR->execute('ocrvehiclelicense', ['image_file' => '{YOUR_IMAGE_FILE_PATH}']);

// Detect by url
// $resp = $megviiOCR->execute('ocrvehiclelicense', ['image_url' => '{IMAGE_URL}']);

If Detect success, return:, (*2)


Array
(
  [http_code] => 200
  [request_url] => https://api.megvii.com/cardpp/v1/ocrvehiclelicense
  [body] => {...} // JSON String
)

If fail:, (*3)


Array
(
  [http_code] => 404
  [request_url] => https://api.megvii.com/cardpp/v1/ocrvehiclelicense1
  [body] => {"error_message": "API_NOT_FOUND"}  // JSON String
)

The Versions

13/10 2016

dev-master

9999999-dev

OCR SDK for Megvii Cloud

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar tianye

megvii ocr card ocr id card ocr

13/10 2016

1.0.0

1.0.0.0

OCR SDK for Megvii Cloud

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar tianye

megvii ocr card ocr id card ocr

13/10 2016

dev-dev

dev-dev

OCR SDK for Megvii Cloud

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar tianye

megvii ocr card ocr id card ocr