First time here? Check out the FAQ!

Ask Your Question
0

Test corrector in c++

asked Jan 6 '16

Simplicity gravatar image

updated Jan 10 '16

Hi guys, im trying to make a program where it corrects a given test (matrix with cross, and various questions (see the image below)). I already have the algorithm of correction (give the points). What i need now is to extract each line, which has the user option and see where the cross is. Can someone help me with this? I already tried to use hough algorithm which finds every line on the image. But i cant really get out of there..

What i want the program to do is: - go through each question and see whats the option marked (x) - get the option number (0=a,1=b,2=c) (example)

Exemple of a test: http://prntscr.com/9muw53

Thanks in advance

Preview: (hide)

Comments

2

have a look in these threads [1], [2], [3], [4], more or less the idea that is used is the same with morphology operations as @sturkmen suggested and I think that it can easily fit to your problem with some customizations.

theodore gravatar imagetheodore (Jan 6 '16)edit

1 answer

Sort by » oldest newest most voted
2

answered Jan 6 '16

updated Jan 7 '16

i advise you taking a look at Morphology_1.cpp and Morphology_2.cpp. maybe you will find an easy way after pre-processing like

input image

image description

image description image description

i think second image is better. you can find contours and analyze them.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jan 6 '16

Seen: 252 times

Last updated: Jan 06 '16