title: Error faces not defined when trying to draw box around face and body
body: <p>i get a error when i try to draw a box around my face and body</p>
  <pre><code>while True:
      _, frame = cap.read()
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
      faces = face_cascade.detectMultiScale(gray, 1.3, 5)
      bodies = body_cascade.detectMultiScale(gray, 1.3, 5)
   # draws box on faces
      for (x, y, width, height) in faces:
          cv2.rectangle(frame, (x, y), (x + width, y + height), (255, 0, 0,), 3)
  
      for (x, y, width, height) in bodies:
          cv2.rectangle(frame, (x, y), (x + width, y + height), (255, 0, 0,), 3)
  </code></pre>
  <p>error:
  for (x, y, width, height) in faces:
  NameError: name 'faces' is not defined</p>