Empty pages gives: PUMA_XFinalrecognition failed.

Bug #445357 reported by julien
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
New
Undecided
Unassigned
cuneiform (Debian)
Confirmed
Unknown

Bug Description

If given an image (jpg, or png or any type) it will fail if the image is completely blank (i.e all white).

$ cuneiform test.png
Cuneiform for Linux 0.8.0
PUMA_XFinalrecognition failed.

Revision history for this message
Serge Poltavsky (serge-uliss) wrote :

why do you think it's a bug? or you just need more clear message to display?

Revision history for this message
julien (julien-aubert) wrote : RE: [Bug 445357] Re: Empty pages gives: PUMA_XFinalrecognition failed.

Imagine using cuneiform to batch process a document there one page is a blank page, clearly you do not want the cuneiform program to report a crash for the blank page.

There are alternatives for what exactly should happen. Two options which would make more sense compared to reporting an error code:
* exit with a normal exit code and no output
* exit with a normal exit code with the output of the specified format (i.e. empty textfile or a .hocr file with the standard meta tags but no textlines etc).

Personally I would prefer the latter as an empty page is also important to be able to scan correctly (i.e. that no noise character are outputted for example).

Assume it is a test case to be written for cuneiform, say that version (A) of cuneiform exits with an error code as is today, (B) cuneiform exits with a normal status code but no output is produced, (C) as option (B) but with output produced.

test case for (A)
 * process images, check if there is a crash and assume that means the page is blank, compare with ground truth

test case for (B)
 * process images, check if no output was produced for any file and assume that means an empty page and compare with ground truth

test case for (C)
 * process images, compare output with ground truth
 and so producing the output and to check against it wit.

Best regards,
Julien

________________________________________
Från: <email address hidden> [<email address hidden>] f&#246;r Serj Poltavskiy [<email address hidden>]
Skickat: den 5 november 2009 01:05
Till: julien
Ämne: [Bug 445357] Re: Empty pages gives: PUMA_XFinalrecognition failed.

why do you think it's a bug? or you just need more clear message to
display?

--
Empty pages gives: PUMA_XFinalrecognition failed.
https://bugs.launchpad.net/bugs/445357
You received this bug notification because you are a direct subscriber
of the bug.

Status in Linux port of Cuneiform: New

Bug description:
If given an image (jpg, or png or any type) it will fail if the image is completely blank (i.e all white).

$ cuneiform test.png
Cuneiform for Linux 0.8.0
PUMA_XFinalrecognition failed.

Revision history for this message
Don Marang (speedychair) wrote : Re: [Cuneiform] [Bug 445357] Re: Empty pages gives:PUMA_XFinalrecognition failed.

This bug effects my speedy-ocr bash script for Vinux (vinux.org.uk). This
script helps the blind scan and recognize text. For most blind users, even
placing the letter on the scanner face down and in the right direction is
half the battle and not normally a consideration for the sighted. My script
currenttly attempts to determine when this happens and informs the user.
The Ubuntu cuneiform 0.7 package exits with this strange error message, I
watch for the exact message. Note, it will also exit with this message if a
regular photo is scanned that has no text. The cuneiform 1.0 tarball does
not behave this way. It simply returns a blank page. I figured this was
the desired fix for this bug. My script simply checks the output file with
'wc' to check and report the word count. Is this the expected vehavior?

Don Marang

There is just so much stuff in the world that, to me, is devoid of any real
substance, value, and content that I just try to make sure that I am working
on things that matter.
Dean Kamen

--------------------------------------------------
From: "Jakub Wilk" <email address hidden>
Sent: Tuesday, September 14, 2010 9:00 AM
To: <email address hidden>
Subject: [Cuneiform] [Bug 445357] Re: Empty pages
gives:PUMA_XFinalrecognition failed.

> ** Bug watch added: Debian Bug tracker #572092
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572092
>
> ** Also affects: cuneiform (Debian) via
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572092
> Importance: Unknown
> Status: Unknown
>
> --
> Empty pages gives: PUMA_XFinalrecognition failed.
> https://bugs.launchpad.net/bugs/445357
> 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
> Status in “cuneiform” package in Debian: Unknown
>
> Bug description:
> If given an image (jpg, or png or any type) it will fail if the image is
> completely blank (i.e all white).
>
> $ cuneiform test.png
> Cuneiform for Linux 0.8.0
> PUMA_XFinalrecognition failed.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cuneiform
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cuneiform
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Yury V. Zaytsev (zyv) wrote : Re: [Cuneiform] [Bug 445357] Re: Empty pages gives:PUMA_XFinalrecognition failed.

Hi!

Your post is extremely vague. Could you try to formulate your questions
in an unambiguous way without redundant background information about
Vinux that is only confusing the readers?

>From what I understand you question can be reformulated this way:

"If the page does not contain any text that Cuneiform can recognize, an
empty file will be returned. Is this behavior correct or not?"

If so, the answer is yes. Note, it took only 132 bytes instead of 824.
It's an 80% compression ratio! Think about how much time it would save
to read, interpret and answer it.

--
Sincerely yours,
Yury V. Zaytsev

Changed in cuneiform (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.