首页 > 技术文章 > VSCode报错:Module 'cv2' has no 'imshow' member
timelesszxl 2021-03-25 11:19 原文
代码是没问题的,可直接运行。
主要原因是因为vscode的插件模块检测不到模块,在于cv2模块下还有cv2模块。
1 from cv2 import cv2 as cv2