An OMR application will require a collection of image zones which you compare with supplied images to determine if an acceptable amount of pixels have been provided in any zone to create a 'hit'. There is usually a user interface to address values in a questionable range. Values that make no sense, such as two marks in a row requiring only one mark, must also be resolved by a user, or predefined rule.