#-*- encoding:utf-8 -*- ''' @Author : dingjiawen @Date : 2023/12/11 19:31 @Usage : @Desc : ''' import tesserocr from PIL import Image image = Image.open('image.png') result = tesserocr.image_to_text(image) print(result) # 打印:19 b 2