OMR marking for line-mark answer sheets, with AI review

Staff scan a class's answer sheets, computer vision marks the clear answers, AI checks the unclear few, and a person has the final say.

The operator app's Templates screen showing a printable A–E answer sheet with line-mark boxes

Project snapshot

Client
OMR check project markStartup running 11+ mock exams
Industry
EdTech: exam marking
Duration
2 months
Team
2 people1 AI engineer, 1 front-end developer
Budget
Under $30k
Delivered
  • Four printable answer-sheet templates
  • A computer-vision marking engine
  • AI checks for unclear marks
  • Scoring against answer keys
  • An operator web app with a review queue
  • CSV and Excel export
AI
Working first versionRunning end to end
Key stack
  • Python
  • OpenCV
  • Claude Haiku 4.5
  • FastAPI
  • React

This system marks paper answer sheets where pupils draw a short line in a box, a format standard OMR (optical mark recognition) tools can't read. Computer vision settles the clear marks, AI looks only at the unclear ones, and staff confirm anything in doubt with one click. Techuz built it in two months, and the client confirmed it worked on the sheet format they provided.

The client: mock exams for grammar-school entrance

The client runs paper 11+ mock exams for pupils preparing for grammar-school entrance.

Pupils mark their answers on printed sheets. Staff scan the finished sheets on an ordinary document scanner and mark them in a browser.

The challenge: marks that standard tools can't read

These sheets are marked with a thin horizontal line inside a small box, not a shaded bubble. Standard OMR tools can't read them, so staff were marking by hand.

Light marks, rubbed-out answers and smudges are where both tools and tired markers make mistakes.

Here's what the system had to get right:

  • Reading thin line marks, not bubbles
  • Handling light marks, erasures and smudges
  • Keeping AI cost per sheet low
  • Never letting a guess become a final mark
  • Results staff can take into their own system

Key decisions and why we made them

Three choices shaped this system. Computer vision does most of the work, the sheets and the engine come from the same code, and a person always has the last word.

How a sheet gets marked

  1. Scan
  2. Align: Using corner markers
  3. Computer vision finds line marks
  4. Clear marks scored
  5. Unclear marks sent to AI: One call per sheet
  6. Review queue: For a person
  7. Scores exported
  1. Computer vision first, AI only for the unclear marks

    The easy options were a generic bubble-OMR tool, which can't read lines, or sending every sheet to an AI model. We built a hybrid.

    OpenCV, a computer-vision library, finds the horizontal strokes and settles the clear marks. Only the uncertain boxes go to Claude's vision model, in one batched call per sheet.

  2. Sheets and engine made from the same code

    The easy option was to hand-measure box positions, or find the boxes on every scan. Instead, one piece of code makes both the printable PDF and the engine's box positions, and every sheet has corner markers for alignment.

  3. The AI's call is never final

    Every box the AI looks at appears in a review queue with its cropped image and the AI's reason. One click overrides it and re-scores the sheet. If the AI fails, the box falls back to “needs review” instead of a guess.

Two smaller calls

  • Ignoring the box's own outline. The printed box edge was first read as a pencil line, so we trim the edges before looking for marks.

  • PDFs split in the browser. Multi-page scans are turned into page images in the browser, so the server needs no extra PDF tools.

What we built

Staff work in a React web app. They print sheets, upload scans, review flagged marks and export results.

A printable A–E answer sheet with one box per option for a line mark

Print ready-made answer sheets

Four layouts: A–E, A/D/N, multi-section and two-mark

Also delivered

Mark a whole class at onceUpload scans or a multi-page PDF from any document scanner
Get each pupil's results automaticallyScore, wrong-question list and student ID, with partial credit on two-mark questions
Check only the uncertain marksReview queue with the cropped image and the reason, fixed in one click
Take results into their own systemCSV or Excel export

How the project ran

We tested the engine on synthetic sheets and a script that checks accuracy, then handed everything over.

2people

1
AI engineer
1
Front-end developer

What the client received

  • The marking engine, operator app and four sheet templates
  • A setup guide and a demo script
  • Synthetic test sheets

The results

Staff can mark a whole class from one scan upload, instead of marking every sheet by hand. Computer vision settled about 96% of boxes across nine test sheets, so AI and people only look at the unclear few. Every pupil's score, wrong answers and student ID come out ready to export.

Tech stack

  1. Marking engine

    OpenCV is fast, free and gives the same answer every time

    • Python
    • OpenCV
    • NumPy
    • FastAPI
  2. AI check

    Used only on the unclear few percent, so cost per sheet stays bounded

    • Claude Haiku 4.5
  3. Sheet templates

    • ReportLabPDF with QR code
  4. Operator app

    • React 19
    • TypeScript
    • Vite
    • Tailwind CSS
    • pdf.js
  5. API bridge and export

Questions about this project

  • Yes, OMR can read line marks instead of bubbles with custom computer vision. Here, OpenCV looks for horizontal strokes inside each box, which off-the-shelf bubble tools can't do.

  • No, you don't need to send every answer sheet to an AI model. Here, computer vision settled about 96% of boxes across nine test sheets, and only the unclear rest went to AI, which keeps cost and timing predictable.

  • Make a person the final check. Here, every AI-checked box goes to a review queue, and any AI failure becomes “needs review”, not a guess.

Get a Ballpark Estimate for Your Project

Tell us what you're building. We reply within 24 hours and send a ballpark estimate within 48.

Tell us about your project

A few lines are enough. We reply within 24 hours.

By sending this form I confirm that I have read and accept the Privacy Policy