PUMA_XFinalrecognition failed

Bug #349110 reported by Yury V. Zaytsev on 2009-03-26
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
Undecided
Unassigned

Bug Description

Cuneiform 0.6 after several seconds recognition end the work and write: PUMA_XFinalrecognition failed. Can I solve this problem?
I tried to recognize bmp file 103.9 Mb.
Klim

Jussi Pakkanen (jpakkane) wrote :

Please attach the image to this bug (if the document is not confidential, that is).

klim (exit-meta) on 2009-03-27
description: updated
klim (exit-meta) wrote :

Picture have more high resolution.

Jussi Pakkanen (jpakkane) wrote :

On OSX it works just fine. The output is this:

Cuneiform for Linux 0.6.0

ЪЪ
ЪЪ
Скарги:
Анамнез захворюванни:
Анамнез житти:
в1русний гепатитвенеричн1 захворювання-
Страховий анамнез за останн1 12 м1сяцж на шкарняному листку
1нвал1дн1сть
В контакп з щфекц1йними хворими останн1 21 день
За кордон остыпп 3 роки
Об'ективний статус: загальиий стан хворого
тиюбудоваШк1рн1 покривиСлизов1 оболонкиПорушення ципсност1 ппари-
а. йогза11з рейз
а. рорИ~еа
Пульсащя: а сагой ехгегпа
~Ьспукровий д1абет-
шк1длив1 звички
Алерг1чн1 реакцИ-
Операц11, травми-
Первинний огляд хворого
2009 р1к

Yury V. Zaytsev (zyv) wrote :

Jussi, this seems to be Ukranian, not Russian. Klim, would you please upload exactly the same image which causes the crash? What we are supposed to do with a TIFF file which works fine?

klim (exit-meta) wrote :
Yury V. Zaytsev (zyv) wrote :

I can confirm this now:

zyv@mypride:~/Desktop$ LD_LIBRARY_PATH=/home/zyv/Documents/test/cuneiform-linux/cuneiform/lib /home/zyv/Documents/test/cuneiform-linux/cuneiform/bin/cuneiform -l ukr -f smarttext docu.bmp -o docu.txt
Cuneiform for Linux 0.6.0
The image depth is 8 at this point.
Segmentation fault

Jussi Pakkanen (jpakkane) wrote :

On OSX it tries to print a ton of error messages using MessageBox. The first call comes from kronrod/grey-wnd.c:273 and says:

MessageBox (null): GREY: TOO MANY LINES (11259)

The image size is 9672 x 11259.

The rest come from line 414 and say

MessageBox (null): GREY TO:
NOT OPEN 0,0

Is there a maximum image size that Cuneiform will accept? If yes then what is the limiting factor?

Look at grey-wnd.c:148-149

#define MAX_NI 8192
#define MAX_NJ 8192

I think these macroses defines accepted image size 8192x8192 for OpenOCR.

And I think very high resolution (1200 dpi) can cause errors or low ocr
quality/

2009/4/6 JussiP <email address hidden>

> On OSX it tries to print a ton of error messages using MessageBox. The
> first call comes from kronrod/grey-wnd.c:273 and says:
>
> MessageBox (null): GREY: TOO MANY LINES (11259)
>
> The image size is 9672 x 11259.
>
> The rest come from line 414 and say
>
> MessageBox (null): GREY TO:
> NOT OPEN 0,0
>
> Is there a maximum image size that Cuneiform will accept? If yes then
> what is the limiting factor?
>
> --
> PUMA_XFinalrecognition failed
> https://bugs.launchpad.net/bugs/349110
> You received this bug notification because you are a member of Cuneiform
> Linux, which is the registrant for Cuneiform for Linux.
>
> Status in Linux port of Cuneiform: New
>
> Bug description:
> Cuneiform 0.6 after several seconds recognition end the work and write:
> PUMA_XFinalrecognition failed. Can I solve this problem?
> I tried to recognize bmp file 103.9 Mb.
> Klim
>
>

Andrew Grigorev (ei-grad) wrote :

PUMA_XFinalrecognition failed with this file.
Cuneiform for Linux 0.6.0
imagemagick 6.5.0.10

Andrew Grigorev (ei-grad) wrote :

Image has 107 dpi and this is very bad for OCR.
The second bad news - your image is gray, current binarizer is very poor.

I try resample image to 321 dpi and binarize to black&white. OCR result is
good.

2009/4/8 ei-grad <email address hidden>

>
> ** Attachment added: "src.png"
> http://launchpadlibrarian.net/25049111/src.png
>
> --
> PUMA_XFinalrecognition failed
> https://bugs.launchpad.net/bugs/349110
> You received this bug notification because you are a member of Cuneiform
> Linux, which is the registrant for Cuneiform for Linux.
>
> Status in Linux port of Cuneiform: New
>
> Bug description:
> Cuneiform 0.6 after several seconds recognition end the work and write:
> PUMA_XFinalrecognition failed. Can I solve this problem?
> I tried to recognize bmp file 103.9 Mb.
> Klim
>
>

neuromancer (neuromancer) wrote :

Same problem with Cuneiform for Linux 0.7.0 packaged in Ubuntu Lucid 10.04

PUMA_XFinalrecognition failed.

Torsten Bronger (bronger) wrote :

cuneiform segfaults in Natty with a bitmap with 400 dpi and the following specifications:

$ identify /tmp/tmpuPHbx9/left.tiff
/tmp/tmpuPHbx9/left.tiff TIFF 2400x3779 2400x3779+0+0 1-bit Bilevel DirectClass 68.8KB 0.000u 0:00.000

If I change it to 100 dpi (same pixel size), it works.

Uma anand Ilango (uma-ilango) wrote :

Hi,
I have the same issue.

I am using cuneiform in Windows 7 PC. I generated .bmp images for my PDF file using IntraPDF - PDF2IMAGE converter in different DPI formats (50%, 75%, 100%, 125%, 150%, 200%, 300%)

All of them throw the same error
PUMA_XFinalrecognition Failed.

I tried the same with some other PDF files too. I get the same error. Can someone pls help on how to get this issue fixed?

Is there something wrong with the generated .bmp file or with cuneiform?

Regards
Uma anand Ilango

Zaguid (zaguid) wrote :

Hi,
I also had something like "PUMA_XFinalrecognition failed".
I set "no compression" options for all image formats and increased resolution to 300 dpi in xSane, which helped.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions