Replies: 1 comment
-
|
A few CPU-specific changes should get you a big chunk of the way from hours down toward your ~15 min target, roughly in order of impact:
from paddleocr import PaddleOCR ocr = PaddleOCR(..., enable_mkldnn=True, cpu_threads=8) # match physical cores
Combining #1 + #2 + #5 is what typically turns "hours for 537 PDFs" into "a few minutes." |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bismillah, greeting everyone,
My name is Dhanur. I'm a geologist with a non-software engineering background, currently developing a PDF keyword extraction tool in Python using PaddleOCR 3.7 and with assistance from ChatGPT.
I previously had used Tesseract, but then decided to migrate using PaddleOCR. I've been working on this migration for several weeks. The application is seems functioning correctly and processes 537 PDF files, extracting keywords and other information into an Excel table.
However, the program is very slow. The probable bottleneck appears to be repeated
predict()calls during OCR. My goal is to reduce the total processing time from hours to around 15 minutes without sacrificing OCR accuracy.For reference, I'm running on:
Here's below workflow illustration:
Current Workflow (click to expand)
Based on the workflow above, what would you recommend to significantly speed up the processing of hundreds of PDFs with PaddleOCR 3.7 on CPU while maintaining OCR accuracy?
Any suggestions, best practices, or references to official documentation would be greatly appreciated.
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions