title: Unsupported depth of input image: > 'VDepth::contains(depth)' > where > 'depth' is 6 (CV_64F)
body: <p>I'm trying to use hand tracking but still giving me errors I tried using <code>astype -&gt; float32</code> but still gave me an error regarding the bool value doest have <code>astype</code></p>
  <p>this is the line of code that gives me the first error
  imgRGB = cv2.cvtColor(img, cv2.COLOR_BGRA2RGB)</p>
  <pre><code>def __init__(self, mode=False, maxHands=2, detectCon=0.5, trCon=0.5):
  
      self.mode = mode
  
      self.maxHands = maxHands
  
      self.detectCon = detectCon
  
      self.trCon = trCon
  
      self.mpHands = mp.solutions.hands
  
      self.hands = self.mpHands.Hands(self.mode, self.maxHands, self.detectCon, self.trCon)
  
      self.mpDraw = mp.solutions.drawing_utils
  
  def findHands(self, img, draw = True):
  
      imgRGB = cv2.cvtColor(img, cv2.COLOR_BGRA2RGB)
  
      results = self.hands.process(imgRGB)
  
      if results.multi_hand_landmarks:
  
          for handL in results.multi_hand_landmarks:
  
              if draw:
  
                  self.mpDraw.draw_landmarks(img, handL, self.mpHands.HAND_CONNECTIONS)
  
      return img
  
  
  def main():
      cap = cv2.VideoCapture(0)
      pTime = 0
      cTime = 0
      detector = handDetector
      while True:
          success, img = cap.read()
          img = detector.findHands(img, True)
          cTime = time.time()
          fps = 1 / (cTime - pTime)
          pTime = cTime
          cv2.putText(img, str(int(fps)), (10, 70),
          cv2.FONT_HERSHEY_PLAIN, 3, (60, 50, 255), 3)
          cv2.imshow(&quot;Image&quot;, img)
          Q = cv2.waitKey(33)
          if(Q)==27:
             break
  </code></pre>