Ask Your Question
0

Test corrector in c++

asked 2016-01-06 12:28:02 -0500

Simplicity gravatar image

updated 2016-01-10 15:27:45 -0500

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

edit retag flag offensive close merge delete

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 ( 2016-01-06 17:23:41 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-01-06 16:31:28 -0500

updated 2016-01-06 19:52:59 -0500

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-01-06 12:28:02 -0500

Seen: 101 times

Last updated: Jan 06 '16