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