according to an answer in stackoverflow, I should edit setting.json and add "python.autoComplete.extraPaths"
to it. I’m kinda sure that cv2 has installed correctly since the autocomplete is working fine in spyder. i have added the following to setting.json
"python.autoComplete.extraPaths": [
"C:/Users/username/anaconda3/Lib",
"C:/Users/username/anaconda3/Lib/site-packages",
"C:/Users/username/anaconda3/lib/site-packages/cv2.cp38-win_amd64.pyd",
"C:/Users/username/anaconda3/Library/include/opencv2"]
As you can see, I’m not really sure what path should I set. I would appreciate if you could help.