Aasimrafique / matlab-tesseract-ocr

Automatically exported from code.google.com/p/matlab-tesseract-ocr
0 stars 1 forks source link

Error when trying to run Mex file #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extract tesseract.zip
2. Add extracted folder to path, run tesseract.mexw32 (OS is Windows 7 32bit)
3. Get error: "??? Error using ==> tesseract Must call tessWrapper with the 
image to OCR."

How can I solve this?
Thanks in advance!

Original issue reported on code.google.com by ndqua...@gmail.com on 4 Dec 2012 at 2:03

GoogleCodeExporter commented 9 years ago
I am getting the same error
Since I'm new to this, please clarify...

Original comment by sha...@gmail.com on 3 Apr 2013 at 4:51

GoogleCodeExporter commented 9 years ago
Hi, 

Maybe it is due to the way you call the function.

You may try this way:  text = tesseract(I); where 'I' denotes an 2D-uint8-array 
in matlab representing an image.

Original comment by flydreamersu on 18 Jul 2013 at 8:44

GoogleCodeExporter commented 9 years ago
Using text=tesseract(I); is still giving the same error message.

Can anyone help?

Original comment by ironic...@gmail.com on 9 Nov 2013 at 5:49

GoogleCodeExporter commented 9 years ago
Make sure "I" is an uint8 image. If you try to use an binary (boolean) image 
you will get the same error msg.

Original comment by pai...@gmail.com on 7 Jan 2014 at 11:04

GoogleCodeExporter commented 9 years ago
Thank you for your comment. Now tesseract command is running. Unfortunally, the 
result doesn´t make sense (not normal caracteres, special ones as result). I 
have tried a on-line page that use tesseract and the result was perfect. Do you 
have some idea?

Original comment by reje...@gmail.com on 20 Jan 2014 at 5:56

GoogleCodeExporter commented 9 years ago
I too have the problem. The tesseract(I) function is giving me very inaccurate 
and weird characters. My input image is a grayscale uint8 2-d array image. 
Other tesseract implementations seem to work fine. Do i need to train the 
system? Does anyone have any more information on this issue?

Thanks.

Original comment by drpurev...@gmail.com on 20 Mar 2014 at 9:09

GoogleCodeExporter commented 9 years ago
i faced this problem

tesseract.mexa64 : fatal error LNK1136: invalid or corrupt file 

  C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'tesseract.mexw64' failed. 
Can anyone help?

Original comment by ramakris...@gmail.com on 17 Apr 2014 at 4:37

GoogleCodeExporter commented 9 years ago
 i am also facing the same problem as  reje...@gmail.com .   
the result doesn´t make sense (not normal characters, special ones as result)
i am using the command text=tesseract(I); and I is  unit8 image.
I am giving it a b&w image after some processing, so my image contains only 
text and few white patches here and there.
plz help
i am attaching the input file and extracted text.

Original comment by aries.ak...@gmail.com on 22 May 2014 at 10:22

Attachments:

GoogleCodeExporter commented 9 years ago
As mentioned in previous mail, iam giving a binary image with only one alphabet 
'B' as input. 
The results of using 'text = tesseract(I)' is 'U3 U3 U3' which is not 
equiavlent to alphabet 'B'.
Can any one of you people suggest us how to use this Tesseract wrapper.. Any 
suggestions would be really great.

Original comment by shadaksh...@gmail.com on 17 Oct 2014 at 8:54

GoogleCodeExporter commented 9 years ago
Change the image class, from double to uint8.

Original comment by abed...@gmail.com on 17 Oct 2014 at 9:00

GoogleCodeExporter commented 9 years ago
WRT your previous mail, my image class is of uint8 and not double. Still for 
the alphabet 'B', it is giving weird results 'U3 U3 U3'.Any suggestions would 
be really great.

Original comment by shadaksh...@gmail.com on 25 Oct 2014 at 3:01

GoogleCodeExporter commented 9 years ago
Can anyone comment on how to resolve the above issue?

Original comment by siddhart...@gmail.com on 17 Dec 2014 at 9:49