title: How to convert grayscale image to binary image and reverse the process in python?
body: <p>I have a task to convert a grayscale image to binary and then take it back to its original form. I am using threshold function from opencv to convert the gray image into a binary. Is there any way to reconvert the binary image to the gray one?</p>