Skip to content

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

License

Notifications You must be signed in to change notification settings

derklinge/tesseract-ocr-php-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages