title: OpenCV - Removing the independent short line in an image
body: <p>How do I remove the short and disconnected line but retain all the other connected lines in the following image?</p>
  
  <p><a href="https://i.stack.imgur.com/ataZ6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ataZ6.png" alt="There is an independent short line in top right corner image"></a></p>