how to convert jpg image to binary python 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)