library megvii-ocr
OCR SDK for Megvii Cloud
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
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
)
dev-master
9999999-dev
OCR SDK for Megvii Cloud
Sources
Download
MIT
The Requires
by
tianye
megvii ocr
card ocr
id card ocr
1.0.0
1.0.0.0
OCR SDK for Megvii Cloud
Sources
Download
MIT
The Requires
by
tianye
megvii ocr
card ocr
id card ocr
dev-dev
dev-dev
OCR SDK for Megvii Cloud
Sources
Download
MIT
The Requires
by
tianye
megvii ocr
card ocr
id card ocr