【发布时间】:2021-12-28 05:22:42
【问题描述】:
我在我的程序中使用以下行
img = cv2.resize(img, dsize=(299, 299), interpolation=cv2.INTER_LINEAR)
出现以下错误
AttributeError: module 'cv2' has no attribute 'resize'
图片img的类型是<class 'imageio.core.util.Array'>
我查看了OpenCV的官方文档和it contains the attribute resize。
我哪里出错了?
【问题讨论】:
标签: python opencv image-processing resize