title: Smooth the edges of binary images (Face) using Python and Open CV
body: <p>I am looking for a perfect way to smooth edges of binary images. The problem is the binary image appears to be a staircase like borders which is very unpleasing for my further masking process. </p>
  
  <p>I am attaching a raw binary image that is to be converted into smooth edges and I am also providing the expected outcome. I am also looking for a solution that would work even if we increase the dimensions of the image.</p>
  
  <p><a href="https://i.stack.imgur.com/TlC2w.png" rel="noreferrer">Problem Image</a>    <a href="https://i.stack.imgur.com/XKk7v.png" rel="noreferrer">Expected Outcome</a></p>