Skip to content

Commit

Permalink
TLDR-531 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raxtemur committed Nov 30, 2023
1 parent ff35667 commit 41d7eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dedoc/readers/pdf_reader/data_classes/tables/table_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __build_childs(self, cur: "TableTree", hierarchy: List, contours: List) -> "
if h[3] == cur.id_contours:
bbox = cv2.boundingRect(contours[i]) # [x_begin, y_begin, width, height]
# Эвристика №1 на ячейку
if bbox[2] < self.config["min_w_cell"] or bbox[3] < self.config["min_h_cell"]:
if bbox[2] < self.min_w_cell or bbox[3] < self.min_h_cell:
if self.config.get("debug_mode", False):
self.logger.debug(f"Contour {i} isn't correct")
continue
Expand Down

0 comments on commit 41d7eb7

Please sign in to comment.