【发布时间】:2023-03-12 08:52:02
【问题描述】:
我使用以下代码导入了魔杖
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
如何在 python 中将 img 对象转换为打开 cv (cv2) 图像对象?
【问题讨论】:
标签: python-2.7 opencv imagemagick wand