print(pytesseract.image_to_string(img_rgb,config='--psm 6')) code example Example: pytesseract pip install pytesseract