textrotationkofax

How to rotate text in Kofax Transformation?


I'am new in Kofax. Task - to recognize a couple of vertical words. Almost all text in document is horisontal. Only two words - vertical. In Kofax Capture I can do it easily:

My task - do the same in Kofax Transformation. I did not find a standard solution. I also could not find solution in Internet (for example some tricky script). Is this possible in Kofax Transformation?

Thank you in advance.


Solution

  • OCR comes in two flavors in Kofax Transformations:

    1. Page profiles. As the name suggests, a page profile is used to read the entirety of one individual page.
    2. Zone profiles. These profiles are typically used with an Advanced Zone Locator.

    Page profiles can rotate a given page. Imagine you have a document with three pages, and page number is is in landscape - if permitted, the OCR profile will rotate page number 2 while 1 and 3 will remain unchanged (i.e. portrait).

    However, a page profile can only rotate the page as a whole -- not individual paragraphs or words. Moving forward, here are your options:

    1. If your text appears always at the same location: use an Advanded Zone Locator.
    2. If your text can be anywhere, try anchoring with a different locator (Format Locator), and move your AZL's zone by script (you can use some the parts from this link).
    3. If neither is true or possible, you can rotate the page in script, and the re-execute a different page profile. Here's some code to get you started.