Choose a local text model for OCR correction by giving each candidate the same short OCR excerpts and checking its changes against images you can read. Keep the model that fixes obvious recognition errors without changing valid values, and require a visible uncertainty marker when the source is unclear.

Decide what correction means in your workflow

This test starts with text already recognized from an image or scanned PDF. You need the image or scan to check the result. The correction model receives that text and can propose small repairs. It does not see characters in the source image unless you provide a separate image-capable input. If the task instead requires identifying visual cells, use a model chosen for reading an actual screenshot and check it against the image. Choose a local vision model for screenshot tables

Separate the parts of the text that can be edited freely from the parts that must be exact. A title might allow a correction from Worksh0p to Workshop. An inventory ID with a zero can be correct as printed. A model that normalizes every zero is harmful for this job. For a project with names, measurements, or codes, make those fields explicit. You can use a basic rule: keep a corrected value only when you can verify it from the scan. A model may flag candidates, but the source decides the final value.

Start with a tiny set of inputs you are allowed to review. Apple Preview can use Live Text with a photo and can search a PDF that already contains text. Inspect the extracted text beside the image so you can identify actual mistakes. If your source PDF is a scan and you need a reusable searchable copy, create it separately and verify it before starting your model comparison. Apple’s Live Text controls in Preview · Make a scanned PDF searchable

Make a small answer key before opening the models

Use a synthetic workshop inventory with line IDs. Make the image clear enough for you to determine its real contents. Simulate OCR mistakes for the first test by preparing an input text that contains the exact variations below. The simulation checks how the model handles expected cases. Actual OCR on your document collection may introduce different errors.

  • L1 printed: Workshop supplies. Received: Worksh0p supplies. Expected repair is Workshop supplies.
  • L2 printed: Room ID B0-14. Received: Room ID B0-14. Keep the zero in the ID.
  • L3 printed: Bring 15 clips. Received: Bring l5 clips. Verify the digit with the scan before approving a repair.
  • L4: Prepare a cropped image where the last digit of an ID is genuinely hidden. Give the model a literal uncertainty marker in the input. Require it to retain the missing field or ask for the image.
  • L5 printed: Do not use the rear door. Received: Do not use the rear door. Preserve the qualifier and the original meaning.

Include a line that already reads correctly when you create your own case. This detects needless rewriting. Include a source in which both letter O and digit 0 are intentional. The answer key should identify the exact values and say which fields are unclear. Avoid choosing a candidate based on whether its final output sounds fluent. A change from B0-14 to BO-14 would be a polished but incorrect delivery.

Use the same local settings and prompt for each candidate

Choose two available text models that run locally on your Mac. Download or prepare them before an offline session if you need the Mac to stay disconnected. Load one in an app such as LM Studio. Record the displayed model identifier, its local variant and the prompt settings you use. Start a new chat for each trial, and keep the responses in separately labeled files. Use the same input line breaks and supply only the context each candidate is allowed to see. LM Studio offline operation · LM Studio model configuration presets

Give both models the same narrow job. Ask for original line ID, proposed corrected text, changed span, and a short statement of uncertainty. State that existing codes, digits, quantities and negations must stay intact unless a visible source supports a correction. Tell the model to preserve the character marker if it lacks the evidence to repair it. Use very few lines first so you can inspect every proposed change.

If the tool lets you control sampling, record its value and keep it consistent when possible. Models can have different built-in chat templates. Preserve their supported templates and document the choice rather than forcing a format that changes how one receives the prompt. The goal is a useful result under the settings you will use, with enough record that you can repeat the check. Change one setting and repeat the same case if a response is cut off or omits a line.

Reject changes that make the source less accurate

Review the results in source order. For L1, repair of Worksh0p is expected. For L2, a change inside the code fails exact preservation. For L3, treat the suggested 15 as a proposal until the scan confirms it. In L4, the missing digit must remain unknown. For L5, look at the qualifier not. The line is useful even if the response produces no correction, because the instructions need to survive. Write one reason for every rejected row.

An individual result can pass layout and fail content. Correct field names and line IDs make a response easier to inspect, but they do not validate a number. Compare each unfamiliar change with the source image. If you cannot distinguish a character after zooming, leave it explicitly unresolved and ask someone with a clearer source. A model with a good track record still lacks visual evidence when the scan does not contain the missing part.

Watch for omission as well as unwanted edits. If a candidate skips a line that looked fine, you need to know whether the output is a list of changes or a complete corrected transcript. Decide which one the downstream workflow expects. For a full transcript, every supplied line ID should appear once. For a proposed patch list, the unchanged source must remain available and you should apply patches only to the matched line.

Separate spelling mistakes from document layout mistakes

When a scanner returns two columns as one block, the text order can be wrong even if each character was recognized. Look at a real example and ask which line a value belongs to. Suppose 15 clips appears next to B0-14 in the first row and 12 clips next to BO-14 in the second. Preserve both case-sensitive codes and match each amount to the pictured row. A correction model receiving text without visible row boundaries may swap the quantities and still output readable sentences. Pre-label the input rows by hand or limit the workflow to a single column when the source order cannot be relied on.

Try a separate synthetic case with end-of-line hyphenation. If a word such as portable was split across two lines in a paragraph, the joined reading can help. A printed part number such as BZ-12 needs its hyphen. Mark each hyphen test separately. An aggressive model may remove both hyphens because one clearly came from layout. Use the change list to make sure every intentional punctuation mark is still present.

When the document includes headings in more than one language, keep an example that should remain in its source language. Put the original spelling beside the OCR output before asking for correction. A model might translate the line because switching languages looks like a spelling issue. Check that accents and scripts are preserved if the downstream task is a transcript. Keep translation, reflowing, and correction distinct so a reviewer knows which change was expected.

If a second reviewer cannot find the changed character, add the page and location to your correction note. Identify the second column, last row, and number beside Clips. The reader should be able to compare the model’s change and the source in one step. This helps when working with several nearly identical scans.

Confirm the winner on unfamiliar source lines

Keep a second group of real or synthetic lines away from the first prompt. Include at least one repeated ID, one line with mixed letters and digits, and one awkward image crop. A candidate that passed visible examples can still infer corrections too aggressively when punctuation changes. Review the second group with the same pass rules. If neither candidate protects necessary values, reduce the model’s role to highlighting suspect spans, then correct them manually using the original image.

A report can include the model choice, tested formats, and specific changes that still need review. If the selected model preserves printed text on one type of label, say so clearly. Do not treat that result as evidence about handwriting or columns not included in the exercise. Retain the input text, source image, and accepted output side by side. On the next OCR batch, test a small representative copy again before reusing the settings.

When a corrected line feeds a later import, check the accepted result in that destination too. An application may coerce a code into a number or replace a missing value with a default after the model preserved it correctly. Import a synthetic row with the intentional zero and a genuinely unknown digit first. Confirm both remain inspectable before applying the process to the rest of the batch.

The job is complete when you can identify the candidate whose edits match the image on the cases that matter, whose output preserves valid codes and instructions, and whose handling of genuinely unclear text keeps the uncertainty visible.