OMR Answer Sheet Grader (Deskew + Blank-Sheet Calibration + Student ID)

Step 1: Enter Answer Keys (one per paper type)

Enter the correct letters for each paper version, separated by commas or spaces. Leave a paper type empty if you do not use it.

Step 2: Sheet Layout (Nominal Positions)

Positions are percentages of the scanned image width (X values) or height (Y values). These are only starting estimates. The blank-sheet calibration in Step 3 fine-tunes them. If you change any value here, run the calibration again.

Skew correction

Skew is measured from the black registration squares on the sheet. Set the range to 0 to disable deskew.

Question grid

Paper type bubbles (A B C D row)

Student ID grid (one column per digit, digits 0-9 going down)

Set these so the teal circles in the preview sit on the 0 bubble of the first column and on the 9 bubble of the last column.

Detection

Step 3: Calibrate with Empty Answer Sheets

Upload a blank (unmarked) scan for each paper type. Each blank sheet is read first, and the exact position of every printed circle is recorded for that paper type. Student sheets of that type are then aligned to this template, so filled bubbles cannot shift the grid. Paper types without a blank sheet use per-sheet alignment.

No blank sheet loaded
No blank sheet loaded
No blank sheet loaded
No blank sheet loaded

Step 4: Upload Scanned OMR Sheets

Upload one image (JPG or PNG) per student. The file name becomes the student's name (e.g., Azra_2732030.jpg). Sheets should be scanned flat, with good lighting.


Step 5: Results

Bubble Detection Preview

Correct filled Wrong filled Correct answer (missed) Empty bubble Paper type (filled) Student ID (filled)

Choose a sheet to check the detection. The preview shows the deskewed image. The key used is the one for the detected paper type.