fix bug
This commit is contained in:
parent
821b2faf30
commit
1bc4aeee85
@ -179,7 +179,7 @@ def run_ocr(image):
|
|||||||
"--image-file", image_path
|
"--image-file", image_path
|
||||||
]
|
]
|
||||||
|
|
||||||
result = subprocess.run(command, capture_output=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
||||||
# 获取 OCR 识别的输出
|
# 获取 OCR 识别的输出
|
||||||
ocr_output = result.stdout
|
ocr_output = result.stdout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user