我使用以下代码导入了魔杖
from wand.image import Image as WandImage
from wand.color import Color
with WandImage(filename=source_file, resolution=(RESOLUTION,RESOLUTION)) as img:
img.background_color = Color('white')
img.format = 'tif'
img.alpha_channel = False
Run Code Online (Sandbox Code Playgroud)
如何在python中将img对象转换为打开cv(cv2)图像对象?