Community

Change the order of the sorted blocks

Hi,

I need to change the way FineReader analyze the block order, I need it to be from - top to bottom and right to left.

is there a way to change it?

 

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Nikolai Kromm

    Hi,

    FineReader Engine sorts the blocks by the position of upper left corner of each block, first in left-to-right, then in top-to-bottom direction.

    Since changing the order of items in the LayoutBlocks Object might be tricky (you will need to recrate the block structure from scratch), you can create your own order, for example, using an IntsCollection Object.

    To do this, iterate through each block of LayoutBlocks and fill the IntsCollection Object with block numbers sorted however you want. You can implement your own algorithm for the desired sorting.

    After this, you will have an array, which will contain the numbers of FineReader Engine blocks, represented in the desired order.

    0

Please sign in to leave a comment.