Kohulan / DECIMER-Image-Segmentation

Chemical structure detection and segmentation tool for Journal articles.
https://decimer.ai
MIT License
81 stars 30 forks source link

top down, left right reading ordered segments #72

Closed hanzlika closed 1 year ago

hanzlika commented 1 year ago

An iteration of @Iagea 's pull request.

With this modification, the segments are sorted in order a person would read them on a paper. Since the bounding boxes can have quite variant heights, its necessary to use a pixel threshold within which two bounding boxes are accepted as "on the same line" for sorting purposes. This is pretty scrappy, but works for the purposes of my drughunter extractor project.

Kohulan commented 1 year ago

@deimos1078 Thank you. we will check the pull request and if it does not break anything we will merge it.

OBrink commented 1 year ago

Hey @deimos1078,

This looks good to me! Thank you for your contribution! I'm sorry it took so long - I have been on holiday in the past weeks.

Have a nice day! Otto