How can I detect that which squares are ticked in the image?

1 回表示 (過去 30 日間)
AlexMT
AlexMT 2018 年 12 月 14 日
コメント済み: AlexMT 2018 年 12 月 16 日
How can I detect that which squares are ticked in the image?
I'm think use the normxcorr2 or imshowpair to compare the original image with ticked image, but I not sure how to do this.
Original Image:

採用された回答

Mark Sherstan
Mark Sherstan 2018 年 12 月 15 日
An almost identical question and solution can be found here
  8 件のコメント
Mark Sherstan
Mark Sherstan 2018 年 12 月 15 日
One thing you could try is use a color marker instead of a pen. Use a color mask to locate a mark and then divide your image into quadrants and check that way instead of looking for specific boxes. I am sure Image Analyst will have some other good suggestions .
Image Analyst
Image Analyst 2018 年 12 月 15 日
It's a little more complicated and you'll have to have labeled training images but you could use a deep learing model to find the squares. Otherwise we'll have to use fancier traditional techniques to find them. Can we guarantee that there will be 28 squares in a 7 row, 3 column format? If so, we could threshold and then find 28 blobs in a certain size range.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2018 年 12 月 15 日
You might try the attached script. It automatically finds the boxes and inspects inside for black marks. It still needs work since the boxes are not identified by row and column, and there still needs to be some robustness about inspecting the boxes depending on how it behaves with other images. But at least it's automatically finding your boxes correctly and identifying checked boxes correctly for THIS image.
0000 Screenshot.png
You might also take a look at a demo I made for finding marked circles in an OMR (Optical Mark Recognition) image.
0001 Screenshot.png
  1 件のコメント
AlexMT
AlexMT 2018 年 12 月 16 日
Thanks for helping and replying!
I'll try this script and attempt to understand all the function inside. :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by