VSCode报错:Module 'cv2' has no 'imshow' member

问题描述:

原因:

代码是没问题的,可直接运行。

主要原因是因为vscode的插件模块检测不到模块,在于cv2模块下还有cv2模块。

解决:

1 from cv2 import cv2 as cv2

 

 

posted @ 2021-03-25 11:19  一剑光寒十四州  阅读(250)  评论(0)    收藏  举报