title: segmentation fault in imshow in opencv python3
body: <p>i have installed opencv in python by</p>
  <p><code>python3 -m pip install opencv-python</code></p>
  <p>i am currently on macOS 10.15.6</p>
  <p>the <code>pip list</code> shows  <code>opencv-python   4.4.0.40</code> in list</p>
  <p><code>cv2</code> has been imported
  but it is continously giving</p>
  <p><code>segmentation error</code> on the line <code>cv2.imshow(winname=&quot;Face&quot;, mat=img)</code></p>
  <p>the full code is like this</p>
  <pre><code>import cv2
  # read the image
  img = cv2.imread(&quot;/Users/abhimac/Pictures/mycutout.png&quot;)
  # show the image
  cv2.imshow(winname=&quot;Face&quot;, mat=img)
  # Wait for a key press to exit
  cv2.waitKey(delay=0)
  # Close all windows
  cv2.destroyAllWindows() 
  </code></pre>
  <p>the path of image has been checked , it is correct.</p>