dev-master
9999999-devA wrapper for ocrwebservice.com
The Requires
v0.0.2
0.0.2.0A wrapper for ocrwebservice.com
The Requires
v0.0.1
0.0.1.0A wrapper for ocrwebservice.com
The Requires
A wrapper for ocrwebservice.com
This package is a wrapper for http://www.ocrwebservice.com/api/restguide., (*1)
composer require vluzrmos/ocrwebservice
You should have an account with a trial or other subscription plan to use that package., (*2)
/* * USERNAME and LICENSE_KEY are strings, and both are provided by ocrwebservice.com. */ $ocr = new OCRWebService\OCRWebService(USERNAME, LICENSE_KEY); $account = $ocr->getAccountInformation(); /* Returns an object AccountInformation which has a method ->toArray(): [ "AvailablePages" => 22, "MaxPages" => 25, "ExpirationDate" => "04/29/2016", "LastProcessingTime" => "3/29/2016 10:42:13 AM", "SubcriptionPlan" => "TRIAL", "ErrorMessage" => "", ] */ $account->getAvailablePages(); $account->getMaxPages(); //... $account->availablePages; //same of getAvailablePages() method; //...
/* * USERNAME and LICENSE_KEY are strings, and both are provided by ocrwebservice.com. */ $ocr = new OCRWebService\OCRWebService(USERNAME, LICENSE_KEY); $document = $ocr->processDocument($pathToPdfOrImage, [ 'gettext' => 'true', 'pagerange' => 'allpages', 'language' => 'brazilian' ]); //all options like described in http://www.ocrwebservice.com/api/restguide // $document will be an instance of ProcessDocument, with that following methods: $document->getOCRText(); //return ocr $document->toArray(); //return an array with all data //...
A wrapper for ocrwebservice.com
A wrapper for ocrwebservice.com
A wrapper for ocrwebservice.com