PyLint not recognizing cv2 members

后端 未结 6 869
忘掉有多难
忘掉有多难 2020-12-01 03:15

I am running pylint on an opencv project and I am getting many pylint errors in VS code about members not being present.

Example code:

import cv2
cv         


        
6条回答
  •  温柔的废话
    2020-12-01 04:00

    Yes it is because the extension has not been installed. Set this: extension-pkg-whitelist=cv2 and you're good to go. However it may not detect the functions or modules implemented in cv2

提交回复
热议问题