Download the PHP package tytymnty/megvii-ocr without Composer
On this page you can find all versions of the php package tytymnty/megvii-ocr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tytymnty/megvii-ocr
More information about tytymnty/megvii-ocr
Files in tytymnty/megvii-ocr
Download tytymnty/megvii-ocr
More information about tytymnty/megvii-ocr
Files in tytymnty/megvii-ocr
Please rate this library. Is it a good library?
Informations about the package megvii-ocr
MegviiOCR
Megvii OCR PHP SDK
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:
Array
(
[http_code] => 200
[request_url] => https://api.megvii.com/cardpp/v1/ocrvehiclelicense
[body] => {...} // JSON String
)
If fail:
Array
(
[http_code] => 404
[request_url] => https://api.megvii.com/cardpp/v1/ocrvehiclelicense1
[body] => {"error_message": "API_NOT_FOUND"} // JSON String
)
All versions of megvii-ocr with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package tytymnty/megvii-ocr contains the following files
Loading the files please wait ....