title: How to solve "cv2.error: OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'imshow'"
body: <p>I'm learning how to use opencv, but I'm running into this problem.</p>
  <pre><code>from cvzone.HandTrackingModule import HandDetector
  import cv2
  
  
  cap = cv2.VideoCapture(&quot;https://192.168.178.49:8080/video&quot;)
  detector = HandDetector(maxHands=1, detectionCon=0.7)
  
  while True:
      success, img= cap.read()
      
      img = detector.findHands(img) 
      
      cv2.imshow(&quot;AI&quot;, img)
      cv2.waitKey(1)
  </code></pre>
  <p>Results in this error:</p>
  <pre><code>INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
  Traceback (most recent call last):
    File &quot;d:\Programming\Arm Code\testhandai.py&quot;, line 13, in &lt;module&gt;
      cv2.imshow(&quot;AI&quot;, img)
  cv2.error: OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'imshow'
  &gt; Overload resolution failed:
  &gt;  - mat is not a numerical tuple
  &gt;  - Expected Ptr&lt;cv::cuda::GpuMat&gt; for argument 'mat'
  &gt;  - Expected Ptr&lt;cv::UMat&gt; for argument 'mat'
  </code></pre>
  <p>I'm using Python 3.8 64-bit and the latest version for all the packages.
  Thank you.</p>