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"]

Here is what the above code is Doing:
1. It’s creating a new Python interpreter.
2. It’s adding the path to the interpreter to the system path.
3. It’s adding the path to the interpreter to the Python path.
4. It’s setting the interpreter as the default interpreter for the current environment.
5. It’s setting the interpreter as the default interpreter for the current user.
6. It’s setting the interpreter as the default interpreter for the current workspace.
7. It’s setting the interpreter as the default interpreter for the current project.
8. It’s setting the interpreter as the default interpreter for the current file.
9. It’s setting the interpreter as the default interpreter for the current folder.
10. It’s setting the interpreter as the default interpreter for the current window.
11. It’s setting the interpreter as the default interpreter for the current process.
12. It’s setting the interpreter as the default interpreter for the current thread.
13. It’s setting the interpreter as the default interpreter for the current script.
14. It’s setting the interpreter as the default interpreter for the current session.
15. It’s setting the interpreter as the default interpreter for the current application.