• myhloli's avatar
    feat(model): add xycut algorithm for block sorting · 7d5850e3
    myhloli authored
    - Implement xycut algorithm to sort blocks when layoutreader fails
    - Add recursive_xy_cut function to perform the xycut algorithm- Update pdf_parse_union_core_v2.py to use xycut when layoutreader fails
    - Modify draw_bbox.py to handle cases where layoutreader fails to sort blocks
    7d5850e3
draw_bbox.py 17.2 KB