How to detect number of elements in a section of a given board

asked 2019-08-26 19:09:21 -0500

AndreaF gravatar image

I have a board divided into various sections. E.g.

image description

and I want to count number of dots that are present in a section of this board, so that could have a final result of the kind:

A=0
B=0
C=1
D=0
E=6
F=0
G=0
H=2
I=4

The size and shapes of the various sections could be different, anyway the kind of patterns that board could have, are few and are already known, so It's not explicitly needed to have a system "smart enough to understand itself how to interpret board structure".

One of my co-worker suggested to use OpenCV, but don't know in what way I could use It to achieve this.

Reading the documentation I haven't clear how I have to use Its feature detection capabilities in order to count dots per section in a picture that reproduces the board pattern of interest.

edit retag flag offensive close merge delete

Comments

One of my co-worker suggested to use OpenCV, but don't know in what way I could use It to achieve this.

yea, that's the problem with your question / approach. you should learn about image processing, and computer-vision, before even planning such a program, or deciding on libraries.

berak gravatar imageberak ( 2019-08-27 02:43:54 -0500 )edit

@berak I have worked on feature detection before, but this time the problem is much more complex.

AndreaF gravatar imageAndreaF ( 2019-08-27 04:24:40 -0500 )edit