I am using pyautogui to take screenshot of a certain area.
img = pyautogui.screenshot(region=(width - 75, length - 181, 190, 27))
Now I can successfully it into string.
pytesseract.image_to_string(img)
But I want to upscale the image to 400% before converting to string. Using cv2 has some compatibility issues maybe because it is a PIL image. Is there any alternative to do that with few lines of code?