federicoginosa / textcleaner
A wrapper to work with TextCleaner inside your PHP scripts.
Installs: 583
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/federicoginosa/textcleaner
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2017-05-05 13:31:15 UTC
README
A wrapper to work with Textcleaner, an imagemagick script to processes a scanned document of text to clean the text background
$textcleaner = new Textcleaner( dirname(__FILE__) . '/images/image.jpg' ); $textcleaner->execute();
Instalation
Via composer (https://packagist.org/packages/federicoginosa/textcleaner)
{
"require": {
"federicoginosa/textcleaner": ">= 1.0.0"
}
}
Dependencies
IMPORTANT: Make sure that the textcleaner binary is on your $PATH.
If you're running PHP on a webserver, the user may be not you, but _www or
similar.
If you need, there is always the possibility of modify your $PATH:
$path = getenv('PATH'); putenv("PATH=$path:/usr/local/bin");