Author Topic: Handwritten Number Recognition AI  (Read 3737 times)

0 Members and 1 Guest are viewing this topic.

Offline Zeppelin

  • Newbie
  • Posts: 43
    • View Profile
    • Zeppelin Games ItchIo
Handwritten Number Recognition AI
« on: June 20, 2019, 11:15:33 pm »
Hey Everyone,
Its been awhile (I've gone on an endeavour into game development and C#, and continue to)...
Anyway I thought a shot at (non-deep learning) AI would be a good idea.
It works fine as long as the inputted image is drawn to fit the entire area. (Anyone know how to make a image scale/stretch to fit the screen)
I've included a image as an example input. :)
Feel free to optimise, bug fix, steal, whatever.

Zep.
* NumberRecog.bas (Filesize: 4.28 KB, Downloads: 212)
* NumberRecog.exe (Filesize: 1.6 MB, Downloads: 209)
TestData.png
* TestData.png (Filesize: 4.96 KB, Dimensions: 500x500, Views: 326)
+[--->++<]>+.+++[->++++<]>.[--->+<]>+.-[---->+<]>++.+[->+++<]>+.+++++++++++.----------.[--->+<]>----.+[---->+<]>+++.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.+[->+++<]>++.[--->+<]>+.[->+++<]>+.++++++++++.+.>++++++++++.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Handwritten Number Recognition AI
« Reply #1 on: June 21, 2019, 12:20:29 am »
Hi Zeppelin,

_PUTIMAGE can stretch and shrink images pretty easy but I think you mean have the foreground figure edges expand to the edges of the image frame which can be done but with a little more trouble. BTW yours is first I've seen work but with your sample... ;-)  and as you say non-deep learning AI.
« Last Edit: June 21, 2019, 12:52:00 am by bplus »

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: Handwritten Number Recognition AI
« Reply #2 on: June 21, 2019, 08:53:28 am »
Cool stuff. Not so accurate but I like the main mechanism for detecting the numbers in the code.
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials