import pytesseract as ts
from wand.image import Image
from PIL import Image as PI
import pyocr
import pyocr.builders
import io
import glob
import re
import os
import shutil
AttributeError: type object 'Image' has no attribute 'open'
你要先确认你用的库,需要处理什么内容。 逻辑先不要搞混
from wand.image import Image 这个Image 没有open 方法
from PIL import Image 这个Image 有 open 方法