How to detect/find checkbox contours using OpenCV

前端 未结 2 537
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 08:46

I have several images for which i need to do OMR by detecting checkboxes using computer vision.

I\'m using findContours to draw contours only on the checkboxes in sc

2条回答
  •  清歌不尽
    2020-12-03 09:23

    Well... Are the checkboxes always in that region of the image? The checkboxes Always maintain the same size area on the image?

    If yes, you can run findContours only in that region of the image...

    Or maybe the Template Matching with Multiple Objects, example from OpenCV docs: https://docs.opencv.org/3.4.3/d4/dc6/tutorial_py_template_matching.html

提交回复
热议问题