opencv-python
opencv-python copied to clipboard
report a bug about autocomplete
I'm in Windows 11. If I use version 4.6.0.66 with Pycharm 2022.1.3, then I cannot use the code autocomplete. I have to install version 4.5.5.64. Hope to fix quickly
https://github.com/opencv/opencv-python/issues/676
Read this : https://youtrack.jetbrains.com/issue/PY-35691/Code-completion-doesnt-work-for-cv2-module#focus=Comments-27-5402199.0-0
And this is the current sollution i have been try : https://youtrack.jetbrains.com/issue/PY-35691/Code-completion-doesnt-work-for-cv2-module#focus=Comments-27-6426279.0-0. And its work
This problem will occur when the version of opencv-python is higher than 4.5.5
.
This solution works for me: https://stackoverflow.com/a/75054982/14419009.
It works well with opencv-python+PyCharm
.
Fixed in:
- https://github.com/opencv/opencv/pull/20370
- https://github.com/opencv/opencv-python/pull/853