Skip to content

Commit

Permalink
删debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Nov 21, 2023
1 parent 945a41e commit 10d52b6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions UmiOCR-data/py_src/ocr/tbpu/merge_para.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def isSamePara(self, A, B): # 两个文块属于同一段落时,返回 True
a, b = A["box"], B["box"]
ay, by = a[3][1], b[0][1]
if by < ay - ly or by > ay + lLine:
print("垂大", A["text"][:3], B["text"][:3])
print(ay, by, ly, lLine)
return False # 垂直距离过大
# 判断水平距离
lx = ah * self.mllhX
Expand Down

0 comments on commit 10d52b6

Please sign in to comment.