Unresolved reference “cv2” inside cv2 (cv2.cv2)
问题 I've looked around and people seem to have similar problems but none described my case exactly, and solutions that worked for them didn't seem to work for me (or there was no answer to the question at all). Using pycharm, after having installed opencv-python and opencv-contrib-python I noticed that import cv2 works, but when I tried accessing cv2.imread() pycharm complained about not being able to find it. So I went to the cv2 init file, which looks like this: import importlib from .cv2