fix: PaddleOCR CPU crash, content-aware-resize limits, barcode fixtures

- Add enable_mkldnn=False to PaddleOCR constructor to bypass PaddlePaddle
  3.3+ OneDNN/PIR crash on CPU-only systems
- Add 25MP and 75% max-reduction guard to seam carving with clear error
  messages instead of silent timeout/crash
- Replace barcode/QR AVIF test fixtures with actual scannable codes
  (old fixtures did not contain real barcodes)
This commit is contained in:
SnapOtter
2026-04-24 23:58:06 +08:00
parent 598f75ef63
commit e3259d163a
4 changed files with 19 additions and 1 deletions
+1
View File
@@ -143,6 +143,7 @@ def run_paddleocr_v5(input_path, language):
lang=paddle_lang,
device=device,
ocr_version="PP-OCRv5",
enable_mkldnn=False,
)
emit_progress(30, "Scanning")
results = ocr.predict(input=input_path)