Skip to content

Instantly share code, notes, and snippets.

@Bigstool
Created October 18, 2022 01:17
Show Gist options
  • Save Bigstool/bea6c05f5e1f80c03f55c0c65a7784ae to your computer and use it in GitHub Desktop.
Save Bigstool/bea6c05f5e1f80c03f55c0c65a7784ae to your computer and use it in GitHub Desktop.
How to fix OpenCV code completion not working on PyCharm

Ref: https://youtrack.jetbrains.com/issue/PY-54649/OpenCV-code-completion-is-still-not-working#focus=Comments-27-6172519.0-0

  • In PyCharm open from menu FILE - SETTINGS
  • Go to PROJECT:<your_project_name> and select PYTHON INTERPRETER
  • Click on the gear symbol next to the interpreter path and select SHOW ALL
  • Make sure the correct interpreter is selected
  • Click on that icon that looks like a folder tree (on the top)
  • Click on the "+" icon
  • Select the folder where the OpenCV package is located normally (if you installed it via package manager) you will find it in: <your_project_path>\venv\Lib\site-packages\cv2
  • Click OK (twice)
  • Wait for updating skeletons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment