I am cropping a pil image using google vision api\'s bound vertices, then converting it to cv2 for further processing but cv2 throws an error :
gray1 = cv2.cv