Check whether any of the words in bbox are cut through by horizontal line y.
(bbox, y, word_rects)
| 148 | |
| 149 | |
| 150 | def 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 | |
| 157 | def get_table_dict_from_rect(textpage, rect): |
no test coverage detected
searching dependent graphs…