Recognizing "game stones" and returing positions in matrix

2 views (last 30 days)
Hi dear MatlabCommunity, we need help for a small project. We want to recognice a gamefield and it's gamestones and then put it a Matrix.(Pic down there) The field detection is already working, but we need an algorithm to select the stones and return the colour of the stones and their positions. Is there any tool or algorithm that we can use to reach Step1->Step2, or even some smaller partsteps would help us a lot.
Thx for every helping comment!

Answers (1)

Arun Mathamkode
Arun Mathamkode on 15 Nov 2017
Since you are able to detect the field properly, by imposing the game field lines on to the image will help you to identify the possible location of the stones (all corners). Now in these corner neighborhoods, you can look for particular color to identify the presence of that colored stone or its absence.
If you already know how your game field should look like you can create a matrix with all zeros and can add a label for a particular colored ball in the corresponding location when it is detected.

Categories

Find more on Strategy & Logic in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!