خواندن و استخراج متن از تصاویر از طریق Python API import easyocr reader = easyocr.Reader(['en']) # Set the language of the OCR engine # Load the image and preprocess it from PIL import Image import cv2 image = Image.open('text_image.png') image = image.convert('L') # Convert the image to grayscale image = cv2.imread('text_image.png') # Use the OCR …