title: recursion is detected during loading of "cv2" binary extensions
body: <p>I have a small program which return opencv error after compilation by pyinstaller.
  But without compilation it's work!</p>
  <p>I use Python 3.8.10 on Windows 10</p>
  <p><strong>Program:</strong></p>
  <p>import pyautogui<br>
  import numpy as np<br>
  import cv2<br>
  try:<br>
  from PIL import Image<br>
  except ImportError:<br>
  import Image<br><br></p>
  <p>screenshot = pyautogui.screenshot('screenshot.png', region=(970, 591, 184, 101)) # start <br>
  img = cv2.imread('screenshot.png')<br>
  img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)<br>
  img = cv2.bitwise_not(img)<br><br></p>
  <p><strong>Error:</strong> <br></p>
  <p>['C:\Users\n1kro\AppData\Local\Temp\_MEI83642\base_library.zip', 'C:\Users\n1kro\AppData\Local\Temp\<em>MEI83642\lib-dynload', 'C:\Users\n1kro\AppData\Local\Temp\<em>MEI83642']  <br>                                                Traceback (most recent call last):     <br>                                                                                   File &quot;test.py&quot;, line 3, in           <br>                                                                           File &quot;PyInstaller\loader\pyimod03_importers.py&quot;, line 476, in exec_module   <br>                                            File &quot;cv2_<em>init</em></em>.py&quot;, line 180, in                <br>                                                            File &quot;cv2_<em>init</em></em>.py&quot;, line 75, in bootstrap               <br>                                                          ImportError: ERROR: recursion is detected during loading of &quot;cv2&quot; binary extensions. Check OpenCV installation.         [3416] Failed to execute script 'test' due to unhandled exception! <br></p>
  <p>I tried to reinstall all, but it is not helped!</p>
  <p>Find this post: <a href="https://github.com/opencv/opencv/issues/13202" rel="nofollow noreferrer">https://github.com/opencv/opencv/issues/13202</a>
  But dont understand, what to do :(
  Need your help, please!</p>