AttributeError: module 'imageio' has no attribute 'cv2'
时间: 2023-11-09 19:09:35 浏览: 33
这个错误提示是因为你在使用 imageio 库时,调用了其中的 cv2 模块,但是 imageio 库并没有 cv2 模块。可能是你的代码中有类似于下面这样的语句:
```python
import imageio
imageio.cv2.some_function()
```
正确的做法是使用 OpenCV 库中的 cv2 模块来处理图像,而不是使用 imageio 库。你可以尝试将代码中的 imageio.cv2 替换为 cv2,或者直接使用 OpenCV 库中的 cv2 模块。