I recently compiled the OpenCV 4.4.0 with CUDA and Python3 bindings following this instruction. I install it to a virtualenv in Anaconda, and it works in Anaconda Prompt. But as I want to use it in Pycharm, the code import cv2 is underlined with the hint (just underlined, not run yet):
No module named cv2
Even though I could import errorless and use it anyway. And then there's no "hint info" as my cursor was on the code e.g. cv2.imread() (normally there would be hints about input name and format etc.). So the problem should just be that Pycharm couldn't recognize it.
Could anyone enlighten me a little? Thanks!
