How to teach a machine to identify the numbers in the image using KERAS library

Here we are going to teach our machine to identify the number in the image

this is how the datasets look like when viewed with matplotlib
these are the layers