I have compiled and installed OpenCV from source, and it works perfect, importing and using it in IDLE IDE or CMD working well.
But when using PyCharm to import OpenCV, there are no errors, but it is warning me that the function or OpenCV variables, can not find
.
It is a screenshot from the PyCharm IDE:
There is a warning that imread()
function not found.
In the IDE Settings, I did not find any way to configure the OpenCV, all settings seem OK, one more screenshot:
So this problem caused IDE does not autocomplete or suggest the parameters and so on...
But when running the program, it works well without any problem.
Note: When installing OpenCV with PyCharm IDE add packages, then it is OK. But I need to use the one which is compiled from source and installed locally.
Edit: This the screenshot of IDLE IDE, which you can see the autocomplete works well.
List of packages:
In this list, there is no cv2, which the other packages in the dir are listed here