Skip to content

Commit

Permalink
fix(wired_table_rec): Merge pull request #13 from Aues6uen11Z/main
Browse files Browse the repository at this point in the history
Fix squeeze bug
  • Loading branch information
SWHL committed Jun 14, 2024
2 parents d328ffc + 0d84311 commit 8f55dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wired_table_rec/utils_table_recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def merge_adjacent_polys(polygons: np.ndarray) -> np.ndarray:

def combine_two_poly(polygons: np.ndarray, idxs: np.ndarray) -> np.ndarray:
del_idxs, insert_boxes = [], []
idxs = idxs.squeeze(0)
idxs = idxs.squeeze(-1)
for idx in idxs:
# idx 和 idx + 1 是重合度过高的
# 合并,取两者各个点的最大值
Expand Down

0 comments on commit 8f55dfe

Please sign in to comment.