Download and install the Spanish language pack.

import pytesseract from PIL import Image import cv2

# Convert to text text = pytesseract.image_to_string(image, lang='spa')