title: How to Segment handwritten and printed digit without losing information in opencv?
body: <p>I've written an algorithm that would detect printed and handwritten digit and segment it but while removing outer rectangle handwritten digit is lost using clear_border from ski-image package. Any suggestion to prevent information.  </p>
  
  <p>Sample:<br>
  <a href="https://i.stack.imgur.com/wIJCv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wIJCv.jpg" alt="enter image description here"></a></p>
  
  <p>How to get all 5 characters separately?</p>