Skip to content

Why do you break lines ? #20

Description

@aurelien-slodzian

Hello,

Thx again for sharing your work.

In the process_handler of the live text function, you break the lines into text chunks.
Is there any specific reason for that ? Why not simply return the whole line text ?
Indeed, with the smaller text chunks, one has to rebuild the whole line by analyzing the bounding boxes.

For example, recognizing a text with e.g. a title like "HELLO WORLD" returns 2 elements (with bboxes close to each other): "HELLO" and "WORLD".

If there is not specific technical limitation, then I would suggest at least to leave the choice and use an option like "greedy", defaulting to false. When true, it would not cut lines, and when false it would behave as now.

Opinion ?
Aurélien

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions