-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的」文本文件