title: Slicing image with findContours(cv2)
body: <p>I cant post the image because of the reputation thing so here is the link to the image I downloaded:</p>
  
  <p><a href="https://www.amvplaygrounds.co.uk/pub/media/catalog/product/a/m/amv_f4-pm-017-shapes-circle-square-rectangle-star-triangle-200mm-2-sq-3d.jpg" rel="nofollow noreferrer">https://www.amvplaygrounds.co.uk/pub/media/catalog/product/a/m/amv_f4-pm-017-shapes-circle-square-rectangle-star-triangle-200mm-2-sq-3d.jpg</a></p>
  
  <pre><code>import cv2
  import numpy as np
  import matplotlib.pyplot as plt 
  image = cv2.imread(r'C:\Users\User\Desktop\shapes.png')
  gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  ret, thresh = cv2.threshold(gray, 200, 255, 0)
  contours, hier = cv2.findContours(thresh, cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
  for cnt in contours:
      x,y,w,h = cv2.boundingRect(cnt)
      shape = thresh[y:y+h,x:x+w]
      plt.imshow(shape)
  </code></pre>
  
  <p>It only returns one contour instead of 6 as you can see in the picture.</p>
  
  <p>What am I doing wrong ? </p>