OCR基础框
import pytesseract
from PIL import Image
img = Image.open(‘实际数据1.jpeg‘)
#具体位置截图
image1 = Image.crop((left,top,right,bottom))
text = pytesseract.image_to_string(img)
print(type(text))
print(text)
2023-12-13 20:42:33
import pytesseract
from PIL import Image
img = Image.open(‘实际数据1.jpeg‘)
#具体位置截图
image1 = Image.crop((left,top,right,bottom))
text = pytesseract.image_to_string(img)
print(type(text))
print(text)
下一篇:docker 监控数据整合