From be494e79c8da6ca9d9082f5cf45a6f2b8dcd0425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 15 Jul 2024 04:48:41 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/ocrengines/googlelens.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/LunaTranslator/LunaTranslator/ocrengines/googlelens.py b/LunaTranslator/LunaTranslator/ocrengines/googlelens.py index deed9675..518c850a 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/googlelens.py +++ b/LunaTranslator/LunaTranslator/ocrengines/googlelens.py @@ -43,10 +43,5 @@ class OCR(baseocr): res = "" text = lens_object["data"][3][4][0] - print(text) - if len(text) > 0: - lines = text[0] - for line in lines: - res += line + "\n" - return "\n".join(["\n".join(_) for _ in text]) + return self.space.join([self.space.join(_) for _ in text])