You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 722, in create_opf
base_text, layers, word_confidence_list = self.build_base(image_group_id)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 594, in build_base
self.build_page(bboxes, image_number+1, image_filename, state, avg_char_width)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 488, in build_page
sorted_bboxes = self.sort_bboxes(flatten_bboxes)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 300, in sort_bboxes
avg_box_height = self.get_avg_bbox_height(main_region_bboxes)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 156, in get_avg_bbox_height
avg_height = height_sum / bboxeswidth
ZeroDivisionError: division by zero
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 727, in create_opf
base_text, layers, word_confidence_list = self.build_base(image_group_id)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 599, in build_base
self.build_page(bboxes, image_number+1, image_filename, state, avg_char_width)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 493, in build_page
sorted_bboxes = self.sort_bboxes(flatten_bboxes)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 310, in sort_bboxes
sorted_bbox_centriods = self.get_bbox_sorted_on_x(sort_on_y_bboxs, avg_box_height, bboxes)
File "/usr/local/lib/python3.9/site-packages/openpecha/formatters/ocr/ocr.py", line 271, in get_bbox_sorted_on_x
prev_bbox = bboxes_sorted_on_y[0]
IndexError: list index out of range
See this stacktrace:
The text was updated successfully, but these errors were encountered: