title: PyCharm can´t find reference of any OpenCV function in __init__.py
body: <p>I´m using PyCharm 2021.2 Professional edition and I have installed opencv-python with:</p>
  <pre><code>pip install opencv-python
  </code></pre>
  <p>However, the IDE keeps giving me the following warning when I try to use cv2 package:</p>
  <blockquote>
  <p>Cannot find reference 'resize' in '<strong>init</strong>.py'</p>
  </blockquote>
  <p>Here I gave the example of the resize function, but it´s happening for every function in cv2 package. Although the code runs with no errors, I can´t use the auto complete feature, which is a bit annoying. I found an answer <a href="https://stackoverflow.com/questions/48772621/cannot-find-reference-for-opencv-functions-in-pycharm">here</a> that might help. The guy says to use:</p>
  <pre class="lang-py prettyprint-override"><code>import cv2.cv2 as cv2
  </code></pre>
  <p>However this is not working for me. Im getting the following error:</p>
  <blockquote>
  <p>ERROR: No matching distribution found for cv2</p>
  </blockquote>
  <p>That´s because there is no package named cv2 inside opencv. Does anyone knows how to solve this problem? Is it a PyCharm's issue?</p>
  <p><strong>UPDATE</strong><br />
  Here is the output of the command <code>pip show opencv-python</code> :</p>
  <blockquote>
  <p>Name: opencv-python<br />
  Version: 4.5.3.56<br />
  Summary: Wrapper package for OpenCV python bindings.<br />
  Home-page: <a href="https://github.com/skvark/opencv-python" rel="nofollow noreferrer">https://github.com/skvark/opencv-python</a><br />
  Author: None<br />
  Author-email: None<br />
  License: MIT<br />
  Location: z:\appdata\python\lib\site-packages<br />
  Requires: numpy<br />
  Required-by:</p>
  </blockquote>