title: How to find extreme outer points in an image with Python OpenCV
body: <p>I have this image of a statue.</p>
  
  <p><a href="https://i.stack.imgur.com/dMXjY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dMXjY.png" alt="enter image description here"></a></p>
  
  <p>I'm trying to find the top, bottom, left, and right most points on the statue. Is there a way to measure the edge of each side to determine the outer most point on the statue? I want to get the <code>(x,y)</code> coordinate of each side. I have tried to use <code>cv2.findContours()</code> and <code>cv2.drawContours()</code> to get an outline of the statue.</p>
  
  <pre><code>import cv2
  
  img = cv2.imread('statue.png')
  
  gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
  
  contours = cv2.findContours(gray, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)[0]
  cv2.drawContours(img, contours, -1, (0, 200, 0), 3)
  
  cv2.imshow('img', img)
  cv2.waitKey()
  </code></pre>