This commit is contained in:
恍兮惚兮 2024-09-29 19:26:17 +08:00
parent 6f9f384943
commit 4308a3dfb5

View File

@ -136,7 +136,7 @@ class baseocr(commonbase):
# 若无标注,则合并显示
boxs = [[0, 0, 0, 0, 0, 0, 0, 0]]
textonly = self.space.join(texts)
texts = [textonly]
texts = ["\n".join(texts)]
else:
textonly = self.space.join(self.sort_text_lines(boxs, texts))
# 对齐box成4点格式