Skip to content

TextRegion and TextLine elements within a TableRegion #362

Description

@CrazyCrud

Hi,

first of all, thank you very much for the ongoing work on OCR4ALL and Larex!

I have PageXML files that contain TableRegion elements. These regions have TextRegion elements having a TableCellRole. Within these TextRegion elements are TextLine elements, for example like so:

<pc:TableRegion id="region0001_TableRegion">
            <pc:Coords points="519,1230 528,1841 3127,1835 3117,630 529,629" conf="0.95347398519516"/>
            <pc:TextRegion id="tr_c51c72">
                <pc:Coords points="522,643 780,643 780,761 522,761"/>
                <pc:Roles>
                    <pc:TableCellRole rowIndex="0" columnIndex="0"/>
                </pc:Roles>
                <pc:TextLine id="tl_6628d2">
                    <pc:Coords points="593,643 599,733 795,726 785,639" conf="0.909859180450439"/>
                    <pc:TextEquiv>
                        <pc:Unicode>26 . §</pc:Unicode>
                    </pc:TextEquiv>
                </pc:TextLine>
            </pc:TextRegion>
            <pc:TextRegion id="tr_31609d">
                <pc:Coords points="761,643 913,643 913,761 761,761"/>
                <pc:Roles>
                    <pc:TableCellRole rowIndex="0" columnIndex="1"/>
                </pc:Roles>
...

When loading my existing PageXML files into Larex, the TextRegion as well as TextLine elements within a TableRegion are not visible/processed. TextRegion and TextLine elements outside of tables are displayed.

I don't receive any errors and the PageXML files are valid.
When using the PageViewer (https://www.primaresearch.org/tools/PAGEViewer) the table elements are correctly displayed and I can see the TextLine elements:

Image

Would you know any reason why this happens?

Thank you very much in advance!

Best regards
Constantin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions