derklinge / tesseract-ocr-php-test

Basic example of using the Tesseract OCR engine within a PHP application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of using Tesseract OCR for PHP

This is just a very basic example of how to use the Tesseract OCR engine within a PHP application. This code uses thiagoalessio/tesseract_ocr as an API bridge to the locally installed Tesseract OCR engine.

Recently I required a quick & simple way to feed arbitrary images or other visual files to the Tesseract OCR engine from a PHP runtime environment. So I created this PHP sample project for myself and for anybody else who might find this somehow useful.

Happy Coding!

Prerequisites

Usage

  1. Clone the repository
  2. Run composer install in a terminal session within the root folder.
  3. Execute the OCR engine by running php src/main.php also from the root folder.

Feel free to add or remove files as you may see fit.

License

The MIT License (MIT). Please see the License File for more information.

NOTE: This software depends on other packages that may be licensed under different open source licenses.

About

Basic example of using the Tesseract OCR engine within a PHP application.

License:MIT License


Languages

Language:PHP 100.0%