python binary to image code example
Example 1: convert image to binary python
img=cv2.imread('<image path>')
gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
Example 2: convert image to binary python
img=cv2.imread('<image path>')gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)