Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 936 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 936 Bytes

Digit Recognition module for Godot 3.x

Usage:

DigitRecognition.recognize(image.get_data())

Where image is of type Image with a monochromatic format. The input to recognize is essentially an array of pixels from a 28x28 image, where each pixel is a byte (0-255 range).

This uses the Kann library to drive the neural network for the digit recognition. The MNIST database was used for training data.

Check the MLP example at Kann repository to see how to train the network. The generated file should be put in this module as data/mnist_mlp.knw.

Compiling

As usual with Godot modules: put the contents of this repo in the module/digit_recognition folder of the Godot source, then build Godot as usual.