After image preprocessing have this:
Try this:
result= pytesseract.image_to_string( final_image, config=\'--oem 0 --psm 13 outputbase digits\') p