title: How to find the orientation of an object (shape)? - Python Opencv
body: <p>My images are always like this:
  <a href="https://i.stack.imgur.com/NxVRE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NxVRE.png" alt="Original images"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Sjief.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sjief.png" alt="Original images"></a></p>
  
  <p>But I need to rotate them to be like this:
  <a href="https://i.stack.imgur.com/6WeWT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6WeWT.png" alt="rotated image"></a>
  <a href="https://i.stack.imgur.com/la0yx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/la0yx.png" alt="rotated image"></a></p>
  
  <p>But to do that, I need to find the orientation of the object, knowing that the thinner part of the object has to be on the left side.
  In summary, the images are wings and the start of the wing has to be on the left side and the end of the wing has to be on the right side.</p>
  
  <p>I hope someone can give me a suggestion, I've tried a bunch of different strategies but with no good result so far. </p>