2017 © Pedro PelĂĄez
 

library tesseract

A wrapper for the Tesseract OCR engine

image

ddeboer/tesseract

A wrapper for the Tesseract OCR engine

  • Saturday, April 8, 2017
  • by ddeboer
  • Repository
  • 4 Watchers
  • 16 Stars
  • 15,973 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Build Status, (*1)

Tesseract: a wrapper for the Tesseract OCR engine

A small PHP >=5.3 library that makes working with the open source Tesseract OCR engine easier., (*2)

Installation

You need a working Tesseract installation. For more information about installation and adding language support, see Tesseract’s README., (*3)

Then install this library, which is available on Packagist, through Composer:, (*4)

$ composer require ddeboer/tesseract:1.0

Usage

If the tesseract binary is in your path, just do:, (*5)

use Ddeboer\Tesseract\Tesseract;

$tesseract = new Tesseract();

Otherwise, construct Tesseract with the path to the binary:, (*6)

$tesseract = new Tesseract('/usr/local/bin/tesseract');

Get version and supported languages information:, (*7)

$version = $tesseract->getVersion();

$languages = $tesseract->getSupportedLanguages();

Perform OCR on an image file:, (*8)

$text = $tesseract->recognize('myfile.tif');

Optionally, specify the language(s) as second argument:, (*9)

$text = $tesseract->recognize('myfile.tif', array('nld', 'eng'));

And specify Tesseract’s page seg mode as third argument:, (*10)

$text = $tesseract->recognize('myfile.tif', null, Tesseract::PAGE_SEG_MODE_AUTOMATIC_OSD);

The Versions

08/04 2017

dev-master

9999999-dev https://github.com/ddeboer/tesseract

A wrapper for the Tesseract OCR engine

  Sources   Download

MIT

The Requires

 

ocr text recognition optical character recognition scan

26/06 2013

1.1

1.1.0.0 https://github.com/ddeboer/tesseract

A wrapper for the Tesseract OCR engine

  Sources   Download

MIT

The Requires

 

ocr text recognition optical character recognition scan

11/04 2013

1.0

1.0.0.0

A wrapper for the Tesseract OCR engine

  Sources   Download

MIT