feat: 同步报销流程与工作台改动
This commit is contained in:
@@ -248,6 +248,7 @@ class OcrService:
|
||||
return "|".join(
|
||||
[
|
||||
self.settings.ocr_language,
|
||||
self.settings.ocr_device,
|
||||
self.settings.ocr_text_detection_model,
|
||||
self.settings.ocr_text_recognition_model,
|
||||
digest,
|
||||
@@ -333,6 +334,9 @@ class OcrService:
|
||||
"--text-recognition-model",
|
||||
self.settings.ocr_text_recognition_model,
|
||||
]
|
||||
configured_device = str(self.settings.ocr_device or "").strip()
|
||||
if configured_device:
|
||||
command.extend(["--device", configured_device])
|
||||
for path in input_paths:
|
||||
command.extend(["--input", str(path)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user