Download the PHP package estey/evernote-ocr without Composer
On this page you can find all versions of the php package estey/evernote-ocr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download estey/evernote-ocr
More information about estey/evernote-ocr
Files in estey/evernote-ocr
Package evernote-ocr
Short Description Use the Evernote API to perform text recognition (OCR) on an image file.
License MIT
Homepage http://www.bradestey.com/projects/evernote-ocr
Informations about the package evernote-ocr
Evernote OCR
This is an unofficial library for using the Evernote API as a means for image text recognition. Please be advised that using the Evernote API solely for the purpose of OCR for your application is a violation of the API License Agreement.
Installation
Install this package through Composer by editing your project's composer.json
file to require estey/evernote-ocr
.
Then, update Composer:
composer update
To get a new Evernote Dev Token, sign in to your account and use this link: https://www.evernote.com/api/DeveloperToken.action
Usage
The recognize method will return an array of TextBlock
objects, each with an array of text recognition options. Each Text
object contains the recognized text and a confidence score of 0-100. Each TextBlock
contains the X and Y coordinates where the text was found and the width and height of the text block in pixels.
Array
(
[0] => Estey\EvernoteOCR\TextBlock Object
(
[x] => 51
[y] => 82
[width] => 307
[height] => 35
[options] => Array
(
[0] => Estey\EvernoteOCR\Text Object
(
[text] => SEPTEMBER
[confidence] => 91
)
)
)
[1] => Estey\EvernoteOCR\TextBlock Object
(
[x] => 370
[y] => 87
[width] => 128
[height] => 30
[options] => Array
(
[0] => Estey\EvernoteOCR\Text Object
(
[text] => 2014
[confidence] => 77
)
[1] => Estey\EvernoteOCR\Text Object
(
[text] => 201 a
[confidence] => 35
)
)
)
)
Laravel Filesystem Adapter
If you're using Laravel, there is a service provider available. Open app/config/app.php
, and add the service provider to the providers
array. You'll also need to add your Evernote Dev Token to your .env
file with the key set to EVERNOTE_DEV_TOKEN
.
'Estey\EvernoteOCR\Providers\Illuminate\EvernoteOCRServiceProvider'
Use it like so:
Flysystem Adapter
The Evernote OCR package comes with a built in adapter to support the Flysystem filesystem library.
License
The MIT License (MIT). Please see License File for more information.