From 821b2faf30fb5442a8d6ada98be835847cd35dea Mon Sep 17 00:00:00 2001 From: William Jin Date: Thu, 26 Sep 2024 15:52:21 +0800 Subject: [PATCH] fix bug --- chyoso_toolkit_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chyoso_toolkit_ui.py b/chyoso_toolkit_ui.py index f064f79..9f940b2 100644 --- a/chyoso_toolkit_ui.py +++ b/chyoso_toolkit_ui.py @@ -179,7 +179,7 @@ def run_ocr(image): "--image-file", image_path ] - result = subprocess.run(command, capture_output=True, text=True) + result = subprocess.run(command, capture_output=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # 获取 OCR 识别的输出 ocr_output = result.stdout