title: How to Format the Output of you numpy array in Python3?
body: <p>I have not been able to format my numpy array the way I want it.I checked several post like <a href="https://stackoverflow.com/questions/10996140/how-to-remove-specific-elements-in-a-numpy-array">How to remove specific elements in a numpy array</a> most seemed close but none has what I want. If this question is a repition point me in the right direction. </p>
  
  <pre><code>im2, contours, hierarchy = cv2.findContours(th2,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
  </code></pre>
  
  <p>contours gives me this:</p>
  
  <pre><code>print(contours)
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>[array([[[618, 737]]], dtype=int32), array([[[615, 737]]], dtype=int32), array([[[656, 731]],
     [[655, 732]],
  
     [[651, 732]],
  
     [[649, 734]],
  
     [[648, 734]],
  
     [[647, 735]],
  
     [[646, 734]],
  
     [[645, 735]],
  
     [[644, 735]],
  
     [[643, 736]],
  
     [[641, 736]],
  
     [[640, 737]],
  
         [[686, 737]],
  
         [[686, 734]],
  </code></pre>
  
  <p>but I'd like to get an output that could give me a tuple in this format:</p>
  
  <pre><code>(x, y)
  </code></pre>
  
  <p>or if there was another way I could access the integers in the array that would be neat I already tried but did not get what I want</p>
  
  <pre><code>contours = tuple(map(tuple, contours))
  
  contours = totuple(contours)
  </code></pre>
  
  <p>please help I'm a newbiee</p>