How can I convert inRange in cv2 to PIL? For example, I already have mask = cv2.inRange(img, array1, array2) but I\'m trying to keep everything in PIL. Any idea
mask = cv2.inRange(img, array1, array2)