Optical Mark recognition with MySQL database and PHP scripts
http://omr-ai.sourceforge.net/ described how to use MySQL and PHP for OMR. The PHP scripts were very much dependent on scanned page size and resolution.
I have written the OMR page format and PHP scripts which are more flexible in nature. This script used horizontal and vertical guides to identify area to be analysed for MCQ answer checking and also identify and correct tilt.
OMR-AI is a very flexible and customizable optical mark reader through which even plain paper can be used as OMRsheet. PHP and MySQL constitutes the core of OMR-AI. Calculating marks, storing result and automating are the main feature.