PHPackages                             ddeboer/tesseract - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ddeboer/tesseract

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ddeboer/tesseract
=================

A wrapper for the Tesseract OCR engine

1.1(13y ago)22136.7k↓25%6[1 PRs](https://github.com/ddeboer/tesseract/pulls)MITPHP

Since Apr 11Pushed 8y ago6 watchersCompare

[ Source](https://github.com/ddeboer/tesseract)[ Packagist](https://packagist.org/packages/ddeboer/tesseract)[ Docs](https://github.com/ddeboer/tesseract)[ RSS](/packages/ddeboer-tesseract/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/47a99a37eafca748aa9bca5d167ecf4f701f199b23365e3abeecfdb134c85cf0/68747470733a2f2f7472617669732d63692e6f72672f646465626f65722f7465737365726163742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/ddeboer/tesseract)

Tesseract: a wrapper for the Tesseract OCR engine
=================================================

[](#tesseract-a-wrapper-for-the-tesseract-ocr-engine)

A small PHP &gt;=5.3 library that makes working with the open source [Tesseract OCR engine](https://github.com/tesseract-ocr)easier.

Installation
------------

[](#installation)

You need a working Tesseract installation. For more information about installation and adding language support, see Tesseract’s [README](https://github.com/tesseract-ocr/tesseract/blob/master/README.md).

Then install this library, which is available on [Packagist](http://packagist.org/packages/ddeboer/tesseract), through [Composer](http://getcomposer.org/):

```
$ composer require ddeboer/tesseract:1.0

```

Usage
-----

[](#usage)

If the `tesseract` binary is in your path, just do:

```
use Ddeboer\Tesseract\Tesseract;

$tesseract = new Tesseract();
```

Otherwise, construct Tesseract with the path to the binary:

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

Get version and supported languages information:

```
$version = $tesseract->getVersion();

$languages = $tesseract->getSupportedLanguages();
```

Perform OCR on an image file:

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

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

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

And specify Tesseract’s page seg mode as third argument:

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

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Total

2

Last Release

4754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c045456672a15a85dd65e79418d0f3375322df38ac4dedb5d66487d86ab592?d=identicon)[ddeboer](/maintainers/ddeboer)

---

Top Contributors

[![ddeboer](https://avatars.githubusercontent.com/u/89267?v=4)](https://github.com/ddeboer "ddeboer (17 commits)")[![r15ch13](https://avatars.githubusercontent.com/u/432127?v=4)](https://github.com/r15ch13 "r15ch13 (1 commits)")

---

Tags

ocrphptesseractOCRtext recognitionscanoptical character recognition

### Embed Badge

![Health badge](/badges/ddeboer-tesseract/health.svg)

```
[![Health](https://phpackages.com/badges/ddeboer-tesseract/health.svg)](https://phpackages.com/packages/ddeboer-tesseract)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.1k3.8M34](/packages/thiagoalessio-tesseract-ocr)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[illuminate/process

The Illuminate Process package.

44869.2k99](/packages/illuminate-process)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
