-1
我正在做图像上的OCR。OCR输出自动保存到一个文本文件到文件夹
from PIL import Image
import pytesseract
from pytesseract import image_to_string
img1=Image.open('my.png')
print(image_to_string(img1))
如何保存所提取的信息到一个名为“Output.txt的”文本文件