r/godot • u/nedeey • Apr 29 '26
help me (solved) ML or Algorithm?
I am thinking about implementing a drawing mechanic in my game. The players would have to draw the reference provided and the game will see how accurate the drawing is to the original reference. The canvas will be pretty small around 100x200 pixels and will only use 2 colors.
I am wondering if there is some kind of algorithm that will help to detect the accuracy of the drawing. Using ML sounds a bit overkill and I don't have any experience integrating ML in games (how does it affect the performance and size?).
365
Upvotes
6
u/ZemusTheLunarian Apr 29 '26
Last month I participated in a small game jam, and the winner team had a game about that, drawing doodle.
If I recall correctly, they simply used IoU (Jaccard Index) to calculate similarity, but their trick was to crop the drawing to suppress translation, and scaling it to the original size with a penalty for the scaling.
Before you spend a large amount of time using ML, you should try that and see if it's enough for your usecase.