title: Is it possible to convert a edge detection output to binary image OpenCV
body: <p>I am trying to convert a text document to a binary image by first detecting its edges and then converting it to a binary image based on output of edge detection.
  Can someone help me in this regard.
  This is my image after edge detection<img src="https://i.stack.imgur.com/pSHj8.jpg" alt="enter image description here"></p>