P
P
plandex2017-08-04 17:08:35
Fonts
plandex, 2017-08-04 17:08:35

Dice recognition. How?

Suggest a solution: the webcam looks at the field where the dice is thrown. It is necessary to recognize which number fell on the dice (number of dots).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2017-08-05
@D3Nd3R

I recommend using the openCV library (available in c++ and python).
The algorithm is approximately the following:
1. Thresholding.
2. Search for connected segments.
3. Filtering the found segments according to certain criteria.
4. Counting the remaining segments

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question