PHPackages                             devcafeimers/textdetector - 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. [Image &amp; Media](/categories/media)
4. /
5. devcafeimers/textdetector

ActiveLibrary[Image &amp; Media](/categories/media)

devcafeimers/textdetector
=========================

PHP Text Detection from Image

v1.0.0(7y ago)014MITPHPPHP ^5.6 || ^7.0

Since Jun 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/devcafeimers/textdetector)[ Packagist](https://packagist.org/packages/devcafeimers/textdetector)[ RSS](/packages/devcafeimers-textdetector/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP Text Detection
==================

[](#php-text-detection)

Requirements
------------

[](#requirements)

- PHP 5.6 or ^7.1
- Tesseract

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

[](#installation)

```
$ composer require cafeimers/textdetector

```

‼️ **This library depends on [Tesseract OCR](https://github.com/tesseract-ocr/tesseract), version *3.03* or later.**

### Note for Windows users

[](#note-for-windows-users)

There are \[many ways\]\[tesseract\_installation\_on\_windows\] to install [Tesseract OCR](https://github.com/tesseract-ocr/tesseract) on your system, but if you just want something quick to get up and running, I recommend installing the [Capture2Text](http://capture2text.sourceforge.net) package with [Chocolatey](https://chocolatey.org/).

```
	choco install capture2text --version 3.9

```

⚠️ Recent versions of [Capture2Text](http://capture2text.sourceforge.net) stopped shipping the `tesseract` binary.

### Note for macOS users

[](#note-for-macos-users)

With [MacPorts](https://www.macports.org/) you can install support for individual languages, like so:

```
	$ sudo port install tesseract-

```

But that is not possible with [Homebrew](https://brew.sh/). It comes only with **English** support by default, so if you intend to use it for other language, the quickest solution is to install them all:

```
	$ brew install tesseract --with-all-languages

```

### Note for Linux/Ubuntu users

[](#note-for-linuxubuntu-users)

```
$ sudo apt-get install tesseract

```

Usage
-----

[](#usage)

Example 1

```
