cv2 has no THRESH_BINARY code example
Example 1: pylint no name in module cv2
"python.linting.pylintArgs":["--extension-pkg-whitelist=cv2"]
#if that still doesn't work you can also use
"python.linting.pylintArgs":["--generate-members"]
Example 2: Module 'cv2' has no 'imread' memberpylint(no-member)
from cv2 import cv2