Ask Your Question
0

Deskew of image and ROI detection

asked 2016-12-22 00:27:21 -0600

Rashmi gravatar image

updated 2016-12-23 00:35:07 -0600

In OMR, if scanned OMR is not in correct position then how can i deskew the image and search exact location of roll number rectangle?i want to extract information from different rectangle based on bubble selection. i need help to sort out this problem.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-22 01:08:10 -0600

pi-null-mezon gravatar image

updated 2016-12-22 12:33:29 -0600

You can implement following pipeline:

1) Threshold scan image with Otsu's method (will works better if background will be darker than the blank);

2) Make morphological filtration to reduce the thresholding noise;

3) Find good features by means of goodfeaturestotrack;

4) Find minimal area rectangle for the good features;

5) Perform image rotation and cropping

edit flag offensive delete link more

Comments

@Rashmi he has explained an approach (for which thank you pi-null-mezon) and now expects you to give it a try. This is not a forum where we simply give you the solution, but rather guide you to a decent solution to the problem...

StevenPuttemans gravatar imageStevenPuttemans ( 2016-12-22 08:17:31 -0600 )edit

@Ramshi I have worked on the similar problem some time ago and created dedicated git project, you can simply research the source code

pi-null-mezon gravatar imagepi-null-mezon ( 2016-12-22 12:31:22 -0600 )edit

@pi-null-mezon thank you for the solution.i will try and let you know how it working

Rashmi gravatar imageRashmi ( 2016-12-23 00:34:43 -0600 )edit

@Rashmi by the way, those black rectangles on the blank seems to be good targets for the thresholding, so as a first step you can threshold them instead of whole blank

pi-null-mezon gravatar imagepi-null-mezon ( 2016-12-23 06:23:52 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-12-22 00:27:21 -0600

Seen: 2,026 times

Last updated: Dec 23 '16