MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / intersects_words_h

Function intersects_words_h

src/table.py:150–154  ·  view source on GitHub ↗

Check whether any of the words in bbox are cut through by horizontal line y.

(bbox, y, word_rects)

Source from the content-addressed store, hash-verified

148
149
150def intersects_words_h(bbox, y, word_rects) -> bool:
151 """Check whether any of the words in bbox are cut through by
152 horizontal line y.
153 """
154 return any(r.y0 < y < r.y1 for r in word_rects if rect_in_rect(r, bbox))
155
156
157def get_table_dict_from_rect(textpage, rect):

Callers 1

make_table_from_bboxFunction · 0.85

Calls 1

rect_in_rectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…