Problem Description
Write a program that reads the answers from 30 scanned forms. Put a green box on each input field. Put a red box on the input fields that are shaded. The field locations are found in the text file fields39.csv. Each row of the CSV file corresponds to a question with seven choices represented by circles whose locations are arranged x1 y1 x2 y2 x3 y3 x4 y4 x5 y5 x6 y6 x7 y7. As a bonus, put a blue box around answers with an “X”.
The Original Images
Below are the 30 images of the forms use to test the Document Form Reader developed in this activity. Each form have shaded circles and some circles were crossed out.
By inspecting the edges of the images it is easy to see that the images are skewed. Although not that noticeable, the degree of skewness of the images varies. By zooming each images, it will be noticeable that the amount and form of shading also varies. These observations have critical effect on identifying shaded circles.
Below is the content of the fields.csv file. The file contains 39 lines, each representing the 39 fields in each form. Each line contains 14 tab separated values. The values represents 7 pairs of x and y values (coordinates) that corresponds to the location of the centers of the 7 circles in each field in the form. For example the first two values of the first line is interpreted as (129,600), the center of the first circle located in field A.1 of each form.
As stated above the images are skewed. Skewness causes movement/translation of pixels from their expected location in the resulting image. This means that the values from fields.csv might not correctly point the actual location of each circle.































0 comments:
Post a Comment