David,

I'm interested in seeing it. Don't you have to run the script four
times though? I'm dealing with probably 1/2 of my scans coming in
upright, 1/4 rotated 90* left and 1/4 rotated 90* right. There are a
few oddballs that are turne 180*, but not enough to be significant.

I was looking at Faisal's suggestion, and there is a file in the
leptonica source code progs directory that look's promising.

/*
 * flipdetect_reg.c
 *
 *   Tests 90 degree orientation of text and whether the text is
 *   mirror reversed.  Compares the rasterop with dwa implementations
 *   for speed.  Shows the typical 'confidence' outputs from the
 *   functions in flipdetect.c.
 */

I'm traveling for a few days and don't have easy access to a computer
with a compiler to do some tests, but I think it might do the trick.

Thank you,
Michael Moore


On Tue, Apr 21, 2009 at 12:04 PM, David Knight
<[email protected]> wrote:
>
> I recently had this problem when creating an OCR script for the
> visually impaired. I couldn't find and tools which detect orientation
> so instead I wrote a simple bash script to detect the number of
> legible characters in the OCR'd text and to compare this with the same
> text flipped over. It works for plain text but I suspect it would
> struggle with text containing images or non-english language. If you
> are interested please let me know and I will send you the script.
>
> On Apr 21, 7:29 am, Faisal Shafait <[email protected]> wrote:
>> You can use Leptonica for page orientation detection.
>> OCRopus will probably have page orientation detection in the next release.
>>
>> On Mon, Apr 20, 2009 at 5:01 AM, Michael Moore <[email protected]> wrote:
>>
>> > I'm pretty sure Ocropus can't do auto page orientation detection yet.
>>
>> > Assuming it can't, is anyone aware of a Linux tool which can?
>>
>> > Thank you,
>> > --
>> > Michael Moore
>> > -------------------------
>> > Share your families' genealogy and family history books. It's easy and
>> > free :http://bookscanned.com
> >
>



-- 
Michael Moore
-------------------------
Share your families' genealogy and family history books. It's easy and
free : http://bookscanned.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" 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/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to