Recognizing "game stones" and returing positions in matrix

1 次查看(过去 30 天)
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!

回答(1 个)

Arun Mathamkode
Arun Mathamkode 2017-11-15
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.

类别

Help CenterFile Exchange 中查找有关 Video games 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by