Preview: this language version was translated with machine assistance and has not been reviewed by a native speaker. Search engines are asked not to index it.

In-place correction

Short answer: In-place correction is a way of changing a scan that alters only the target text and leaves all other pixels as they are. It is the opposite of recognizing the whole page as text and laying it out again.

Last updated:

Steps

  1. Locate the target text with OCR.
  2. Work out the stroke area from the color difference between ink and background.
  3. Blend in clean background taken from nearby, or fill with an inpainting algorithm, and add back the paper grain.
  4. Fit color, blur and slant to the original ink, then write the new text.
  5. Add an invisible text layer so the replaced content is searchable.

Good and poor fits

Good for small, precise corrections, batch replacement and putting translations back into scans. Not suited to rewriting long passages, or to text that runs across lines, vertical text (except vertical Japanese and Chinese), or photos with strong perspective.