Download the PHP package cdsmths/laravel-ocr-space without Composer
On this page you can find all versions of the php package cdsmths/laravel-ocr-space. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cdsmths/laravel-ocr-space
More information about cdsmths/laravel-ocr-space
Files in cdsmths/laravel-ocr-space
Package laravel-ocr-space
Short Description OCR PDF's and images with the OCR.Space API from Laravel
License MIT
Homepage https://github.com/cdsmths/laravel-ocr-space
Informations about the package laravel-ocr-space
Laravel OCR Space
Laravel OCR Space is a package that allows you to use the OCR.Space API in your Laravel application for Optical Character Recognition (OCR).
Installation
You can install the package via composer:
You can publish the config file with:
Usage
Get a free Ocr.Space api key
You can get a free api key from ocr.space. This key is required to use the package.
You should add this key to your .env:
Parsing an Image file
Parsing an Image URL
Parsing an base64 encoded image
Parsing an binary image
Parsing with parseImage method
Options
You can pass options to the parseImageFile, parseImageUrl, parseBase64Image, parseBinaryImage and parseImage methods.
OCR Engines
OCR.Space provides three different OCR engines:
- Engine1: The original OCR engine, best for standard documents
- Engine2: Improved OCR engine with better accuracy for most use cases
- Engine3: The latest engine with significantly superior text recognition capabilities
You can specify which engine to use:
Response
All methods return an instance of Codesmiths\LaravelOcrSpace\OcrSpaceResponse which has the following methods:
Parsed Results
If you want to get value from getParsedResults(), you can use the following methods:
License / Credits
This package our Codesmiths is not affiliated with OCR.Space and is not an official package. It is a wrapper around the OCR.Space API.
The MIT License (MIT). Please see License File for more information.