I'm trying to OCR these digits. However, tesseract is not recognizing them properly.
import cv2 from pytesseract import image_to_string
image = cv2.imread('PATHTOIMAGE', cv2.IMREAD_COLOR)
image = cv2.resize(image, None, fx=5, fy=5, interpolation=cv2.INTER_CUBIC)
gaussian = cv2.GaussianBlur(image, (5, 5), 2)
mask = cv2.inRange(gaussian, (250, 250, 250), (255, 255, 255))
ocr = image_to_string(mask, config='-c tessedit_char_whitelist=0123456789')
print(ocr)
The masking result is the following:

OCR result: 88311
I tried performing some morphological operations from here (dilating and opening), but no luck.
I also tried to detect contours and detect digit by digit, but also no luck.
How else could I improve?

--psmoptions, such as--psm 5muthu.co/all-tesseract-ocr-options