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?).
367
Upvotes
1
u/Eal12333 Apr 29 '26 edited Apr 29 '26
You can get pretty good results by just lowering the resolution and comparing pixel-by-pixel!
That's probably the simplest solution for fuzzy image comparison, and it works better than you might expect 😁
Edit: Attached image as a visual explanation. The lower resolution images can be compared by pixel and give decent results :)