I can't seem to convert RGB to YCrCb in the new OpenCV python API (cv2). When I run this code:
img = cv2.imread('img1.jpg')
imgYCC = cv2.cvtColor(img, cv2.COLOR_RGB2YCrCb)
, I get this error:
AttributeError: 'module' object has no attribute 'COLOR_RGB2YCrCb'
What am I doing wrong?
CV_RGB2YCrCb, notCOLOR_RGB2YCrCbCOLOR_RGB2LABworks fine