On 10 August 2010 13:06, igm <[email protected]> wrote:
> Hello,
>
> I am trying to use an IplImage in the method BeginPageUpright but it
> always returns the same tilde '~' caracter and just only one.
>
> IplImage *plate = cvLoadImage(argv[1]);
> TessDllAPI api(argc > 3 ? argv[3] : "eng");
> api.BeginPageUpright(plate->width, plate->height, (unsigned
> char*)plate->imageData);
> ETEXT_DESC* output = api.Recognize_all_Words();
>
> I searched in the other discussions but and some people said that if
> you change the line 72 of the file docqual.cpp from "EXTERN BOOL_VAR
> (unlv_tilde_crunching, TRUE," to "EXTERN BOOL_VAR
> (unlv_tilde_crunching, FALSE," it should resolve the problem but not
> in my case. I have rebuild the solution and it returns the same fu..ng
> tilde. LOL.
>
> The code i am using is the same as the dlltest. I don't know what to
> say by this time. Can you help me?

You're making a poor assumption about image formats being equivalent
across libraries. They rarely are. You'll need to convert the IplImage
to the format used by SetImage (used internally by BeginPageUpright).
For example, if plate->align == 1, you'll need to convert it to the 0
format, you'll have to provide bpp, etc., and I don't think tess will
handle the 32-bit floating point bpp values.


-- 
<Leftmost> jimregan, that's because deep inside you, you are evil.
<Leftmost> Also not-so-deep inside you.

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tesseract-ocr?hl=en.

Reply via email to