pycognaize.common.utils.infer_rows_from_words

infer_rows_from_words(box, class_ocr_data, auto_thresh=True, thresh=12, min_height=10, min_width=10)[source]
Infer row coordinates by class crop (table, column, row)

from the ocr output

Parameters:
  • class_ocr_data

  • box

  • auto_thresh

  • thresh

  • min_height

  • min_width

Return type:

tuple(list, list)

Returns: