OCR confidence is not uniform across a document: clean pages score high while faded, skewed, or noisy pages score low. OCRmyPDF can report a confidence level for each page when run verbosely, which lets you spend your checking time on the pages most likely to contain errors instead of proofreading the whole file.
What you need
- OCRmyPDF installed
- A scanned PDF to OCR
- A note of which pages matter most for your work
Step 1: Run OCRmyPDF verbosely
Run ocrmypdf -v1 input.pdf output.pdf and read the per-page confidence levels in the output.
Step 2: List the lowest-confidence pages
Write down the pages with the lowest confidence scores, starting with the worst, and note the score for each.
Step 3: Re-check those pages by eye
Open each listed page next to its OCR text and read the words that matter, such as names, dates, and totals, correcting any errors you find.
Worked example: synthetic confidence check on a 4-page scan
The table below is a synthetic example. It shows the expected result of reading verbose OCR confidence; no OCR was run.
| Page | Confidence | Action |
|---|---|---|
| Page 1 | 96 | Trust, spot-check only |
| Page 2 | 88 | Trust, spot-check only |
| Page 3 | 61 | Re-check names and totals |
| Page 4 | 54 | Re-check the whole page |
Expected result (UNTESTED). pages 1 and 2 score 96 and 88 and need only a spot-check, while pages 3 and 4 score 61 and 54 and must be re-read by eye before the OCR text is used. Do not quote from pages 3 or 4 until they are checked. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Page confidence is an average, so one bad paragraph on a high-scoring page can still be wrong.
- Confidence scores are not comparable between different OCR engines or different versions of the same engine.
- A high confidence score does not prove the text is correct; it only means the engine is sure.
