title: Approximate polygons from image (map)
body: <p>So I have this map:
  <a href="https://i.stack.imgur.com/IODrs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IODrs.jpg" alt="original map"></a></p>
  
  <p>I've already done some filtering and now I have the following image:
  <a href="https://i.stack.imgur.com/H7mMb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H7mMb.png" alt="filtered map"></a></p>
  
  <p>Finally, I want to find the coordinates for each of the polygons in the image, but using the find_contours function is not giving me good results, as you can see on the following image.</p>
  
  <p>On the left side, you can see all of the contours (polygons) found (one color for each), and on the right side, it's an example of a polygon it has found (which is clearly wrong).
  <a href="https://i.stack.imgur.com/0pwIq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0pwIq.png" alt="contours"></a></p>
  
  <p>Having the black and white image, how can I find the coordinates for each of the polygons in it?</p>