From ab2446b3e7061dcfa006205434701a5b0c42619b Mon Sep 17 00:00:00 2001 From: William Jin Date: Thu, 26 Sep 2024 17:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=94=A8=E6=88=B7=20tmfc=20?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chyoso_toolkit_ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chyoso_toolkit_ui.py b/chyoso_toolkit_ui.py index c470678..6438b64 100644 --- a/chyoso_toolkit_ui.py +++ b/chyoso_toolkit_ui.py @@ -174,10 +174,11 @@ def run_ocr(image): # 调用 OCR 命令 command = [ + "sudo", "-u", "tmfc", "/home/tmfc/miniconda3/envs/got/bin/python3", "/home/tmfc/apps/got-ocr/GOT/demo/run_ocr_2.0_crop.py", "--model-name", "/home/tmfc/apps/got-ocr/models/", "--image-file", image_path, - "> /home/tmfc/apps/got-ocr/img.txt" + ">", "/home/tmfc/apps/got-ocr/img.txt" ] try: