Ph1ps MNIST CoreML Save

Predict handwritten digits with CoreML

Project README

MNIST for CoreML (CNN)

Description

This is the MNIST dataset implemented in Apple's new framework CoreML. The MNIST dataset can predict handwritten (drawn) digits from an image and outputs a prediction from 0-9. The model was built with Keras 1.2.2.

To test this model you can open the MNISTPrediction.xcodeproj and run it on your device (iOS 11 and Xcode 9 is required). To test further images just add them to the project and replace my testing with yours.

An example of a handdrawn digit would look like this: Digit 4

Be aware that your images have to have a black background and white line color!

Furthermore your images resolution has to be 28x28px. If yours is bigger just use my UIImage rescaling extension I wrote. The line width has to be thick enough to be recognized as a digit.

Information about the model

This CNN model achieves up to 99.5% of accuracy and the structure is as follows:

CNN Model

Open Source Agenda is not affiliated with "Ph1ps MNIST CoreML" Project. README Source: ph1ps/MNIST-CoreML
Stars
67
Open Issues
1
Last Commit
6 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating