x = pytesseract.image_to_string(im1, lang='eng', config='--psm 10 --oem 1 -c tessedit_char_whitelist=1234567890JQKA')
print('' + x + '')
output ***9
How do I get rid of line returns and spaces or what am I doing wrong? Just reading one char/number.