Associate blob/mark with a text inside a rect

asked 2019-02-12 19:46:37 -0600

Fer-de-lance gravatar image

updated 2019-02-13 18:22:01 -0600

Hi I am trying to make a modified OMR election/survey system. Where a user can mark circle his choice will be marked accordingly to the text next to the circle. So far I have used blob detection and I can extract the coordinates via keypoints. I am thinking of using these coordinates and evaluate if it is within a specific rectangle to evaluate the user choice. I tried using findcontours to do rectangle identification but I am having no results since it also identifies the text as contours and some other lines as individual contours. I am following this tutorial for the contours. I am also trying to filter the rects by area to isolate only the needed rects, but I am not sure how to do that. Here is my sample image image description

So I changed my approach. Basically, I made the circle marks red. so I can pre-process the image and use findcontours to detect only the circle marks. I am planning to use the coordinates from SimpleBlobDetector to check if the points are inside the circle contours. Will this approach work? Processing time-wise will another approach be better? Thanks.

edit retag flag offensive close merge delete

Comments

please put your image here, not on an external bin, where it will expire

berak gravatar imageberak ( 2019-02-13 01:59:33 -0600 )edit
1

I tried putting the image here but I doesn't show at all. Edit: The image now displays properly.

Fer-de-lance gravatar imageFer-de-lance ( 2019-02-13 18:19:48 -0600 )edit