New answers tagged

1

Inspired by the solution of Vitaliy Kaurov and using his initial code to import the image and create the imageGRID, I came up with the following: representativeDigits = Association[{imageGRID[[1, 1]] -> "-", imageGRID[[1, 7]] -> 1, imageGRID[[1, 8]] -> 3, imageGRID[[1, 10]] -> 2, imageGRID[[1, 12]] -> 0}]; Grid[Partition[ ...


4

Here is a semi-manual way to do it : Importation of the image, cutting it in a 48X48 array of small images, removing the borders : imageArray = img // RightComposition[ ImagePartition[#, 40, 40] & , Map[Binarize, #, {2}] & , Map[ImageCrop[#, 38] &, #, {2}] & ]; (* a view of a piece of the array : *) imageArray[[10 ...


18

1 - Summary of a simple solution In this particular DIGIT case there is a very simple solution based on neural nets (NNs)trained on MNIST Data. It is just a few lines of code: i=Import["https://i.stack.imgur.com/LC2c2.png"]; imageGRID = ImagePartition[i, Scaled[1/22]]; lenet = NetModel["LeNet Trained on MNIST Data"]; test[x_] := If[ImageDistance[imageGRID[[...


Top 50 recent answers are included