title: Detect ovals in image - opencv python
body: <p>I have the below image and I'm trying to detect ovals as highlighted in the image. I tried using findContours() but I couldn't detect them properly. could you please help me?</p>
  <p><a href="https://i.stack.imgur.com/DXNiK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DXNiK.jpg" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/CHH5g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CHH5g.jpg" alt="enter image description here" /></a></p>
  <p>here's my code:</p>
  <pre><code>image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
  ret, image = cv2.threshold(image, 70, 255, cv2.THRESH_BINARY)
  cnts, hierarchy = cv2.findContours(image, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
  image = cv2.cvtColor(image, cv2.COLOR_GRAY2RGB)
  cv2.drawContours(image,cnts,-1,(0,255,255),1)
  cv2.imshow('output',image)
  </code></pre>