#Shape Recognition

1 messages · Page 1 of 1 (latest)

scarlet elm
#

Hi. I'm trying to create a game which recognizes the shapes that we draw with the mouse, for example a triangle - if we draw anything similar to a triangle, it recognizes it as a triangle. But I have no idea how to do that. Can anyone give an advice where should I look to learn?

ebon plaza
#

Generally, you'd use a Neural Network for that.
Sebastian Lague has a tutorial on writing a NN for the purpose of recognizing shapes; although like most NN tutorials, it's in python so you will need to translate that to C# if you want to use it in Unity.

scarlet elm
#

NN is still hard for me to do, since I'm kind of a beginner, so is there any other way of doing this?

ebon plaza
#

There's also the Hough Transform algorithm, but if you're a beginner both will be difficult to implement.
Your best bet would be looking for an asset where someone has already done it and use that.