Dear Ray, 
            The problem with 32 bit images is still exists with 3.02.02. I 
guess, the problem is with leptonica. I just compiled tesseract in my 
Ubuntu 10.04 X64 bit server. I could see the file imgs.cpp in 
the tesseract-ocr/image folder which has the following line, 

 if (bits_per_pixel != 1 && bits_per_pixel != 2 &&
>       bits_per_pixel != 4 && bits_per_pixel != 5 &&
>       bits_per_pixel != 6 && bits_per_pixel != 8 &&
>       bits_per_pixel != 16 && bits_per_pixel != 24 &&
>       bits_per_pixel != 32) {
>     BADBPP.error ("check_legal_image_size", TESSLOG, "%d", bits_per_pixel);
>     return -1;
>   }


Still I get this error.

Tesseract Open Source OCR Engine
> name_to_image_type:Error:Unrecognized image 
> type:/home/supervisor/images.jpg
> IMAGE::read_header:Error:Can't read this image 
> type:/home/supervisor/images.jpg
> tesseract:Error:Read of file failed:/home/supervisor/images.jpg
> Segmentation fault



Any suggestions to solve the issue. 

Thanks
Saran

On Tuesday, March 31, 2009 2:48:51 AM UTC+5:30, Ray Smith wrote:
>
> The fix for problems with 32 bit images is in the current svn source code,
> Ray.
>
> On Fri, Mar 27, 2009 at 10:58 AM, tarik kandil 
> <[email protected]<javascript:>
> > wrote:
>
>> this is the code I am calling to read the picture in webapplication, but 
>> once it reaches the ocr.init("fra,false); it stops working, can you tell me 
>> where the problem is, thank you
>>  
>> Bitmap image = new Bitmap(@"C:\test.bmp");
>> tessnet2.Tesseract ocr = new tessnet2.Tesseract();
>>  
>> ocr.Init(
>> "fra", false); 
>>
>>
>>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to