Handwritten Math OCR: What Works and What Does Not

Handwritten maths is the hardest input an OCR system can be given, and also the one students need most: lecture notes are written, not typeset. Some…

Handwritten maths is the hardest input an OCR system can be given, and also the one students need most: lecture notes are written, not typeset. Some handwriting transcribes almost as well as print. Other pages need to be re-shot. The difference is mostly physical, not algorithmic.

Why handwriting is harder than print

  • There is no fixed alphabet. Two people write the integral sign differently, and one person writes it differently on a good day.
  • Stroke order carries meaning. A tilde over a letter and a minus between two letters can look identical at low resolution.
  • Superscripts sit on the line above. A camera angle that tilts slightly merges the exponent into the base.
  • Baseline drift. A hand-written equals sign is rarely level, which breaks the row segmentation that printed maths relies on.

The conditions that make the biggest difference

Contrast, focus and framing. Not in that order — focus matters most. A slightly blurry photo of clean handwriting beats a razor-sharp photo taken at 40 degrees across the page.

  1. Shoot in daylight, not under a single ceiling lamp that casts your phone's shadow.
  2. Hold the phone parallel to the page. Squared-up geometry removes most baseline drift.
  3. Crop to one equation block. A full page of working gives the model many boundaries to guess.
  4. Write denominators on the same line with a slash if you expect them to be transcribed: a / b is safer than a stacked fraction.

Where it still fails

Fast cursive that joins a variable to its exponent, heavy abbreviation (the same squiggle meaning "therefore", "because", or a symbol you invented mid-derivation), and pencil on coloured paper. In those cases the recogniser is doing its best with information that is not on the page, and manual correction is cheaper than re-photographing.

handwrittenocrstudent

Keep reading

Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.