title: Is there a way to display all the bounding boxes that i find?
body: <p>I have been able to get all the contours in an image I have but I'm unable to print all the bounding boxes for the respective contours.</p>
  
  <p>I tried printing each bounding in the for loop, but that just hangs the program midway:</p>
  
  <pre><code>import cv2
  img=cv2.imread("C:/Users/user1/example_check.png")
  
  gr=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
  
  ret,th=cv2.threshold(gr,225,255,cv2.THRESH_BINARY)
  
  ca=cv2.Canny(th,225,255)
  
  con,h=cv2.findContours(ca.copy(),cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_NONE)
  
  s_con=sorted(con,key=cv2.contourArea,reverse=True)[1:]
  
  for (i,c) in enumerate(s_con):
      dc=cv2.drawContours(img.copy(),s_con,-1,(0,255,0),1)
      cv2.imshow('Contours',dc)
  
      (x1,y1,w,h)=cv2.boundingRect(c)
      rect=cv2.rectangle(img,(x1,y1),(x1+w,y1+h),(0,255,0),2)
  
      cv2.imshow("Rectangled",rect) 
  
      if cv2.waitKey(1)==13:
          break
  
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>I expect the output to show me all the existing bounding boxes, but the program hangs upon execution</p>