Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returns empty string. #13

Closed
MuhammadRahman-awin opened this issue Sep 16, 2014 · 1 comment
Closed

Returns empty string. #13

MuhammadRahman-awin opened this issue Sep 16, 2014 · 1 comment

Comments

@MuhammadRahman-awin
Copy link

Hi,

I am using Centos 5 with tesseract-2.04-2.

When I use tesseract on console I can only read .tif image, for other it does not recognise the type.

But in my script it does not even read the tif, juste return empty string.

This is how I am using it.

include('TesseractOCR.php');
if (isset($_FILES['file'])) {
$tesseract = new TesseractOCR($_FILES['file']['tmp_name']);
$result = $tesseract->recognize();
}

Any idea where I am going wrong with it.

@kazarboy
Copy link

Did you get any error? I also got empty string but with error message where it could not get the file from temp folder because it could not locate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants