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