When the Eclipse mentions "Unresolved import cv2"


 Memo

As i have done in previous post, the opencv 3.2 works very well, but one thing bothers me, the eclipse is keeping mention "Unresolved import:: cv2", even the cv2 works well.

At first, i thought the Eclipse PyDev configuration causes this problem, so i googled a little bit and there was no obvious solution.

So i followed into the python3.6 side-package folder (which looks like this C:\Users\%Username%\AppData\Local\conda\conda\envs\python36\Lib\site-packages), then i confirmed the cv2 binary file is right there, but i noticed it is named as cv2.cp36-win_amd64.pyd, so i tried rename it as cv2.pyd with a copy of cv2.cp36-win_amd64.pyd(because i am not sure if cv2.cp36-win_amd64.pydis the default name for library link), and it did solve the problem, after that i tried to delete the original cv2.cp36-win_amd64.pyd file, it still works, happy ending.