title: Python OpenCV - get coordinates of borders of elements inside an image
body: <p>I know my question might sound a little generic but I read a lot of blogs and questions about this and still can't find a solution that get any close to what I'm trying to do. I have the attached sample IG screenshot. My goal is to get the coordinates of the elements I highlighted in green.
  Canny edges doesn't seem to do a thing (see also <a href="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.html" rel="nofollow noreferrer">https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.html</a>). I read Houg Transform could have helped (<a href="https://pysource.com/2018/03/07/lines-detection-with-hough-transform-opencv-3-4-with-python-3-tutorial-21/" rel="nofollow noreferrer">https://pysource.com/2018/03/07/lines-detection-with-hough-transform-opencv-3-4-with-python-3-tutorial-21/</a>) but still no luck.
  All I would need is a way to get those sections and get their coordinates. If somebody could simply point me out to what technique(s) could help me, that would be helpful.</p>
  
  <p><a href="https://i.stack.imgur.com/n6upP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n6upP.png" alt="enter image description here"></a></p>