I am sorry for image sizes.
Now these two cropped images I have in a dataset. I am going to feed these images into a machine learning algorithm. Before doing that, I want to extract binarized digits and feed the binary images into algorithm, instead of feeding directly. Can you please elaborate how can I achieve this kind of clean binarization ?
I found otsu and other thresholding methods but they were unable to give clear digits in image.