Does anyone have problems with OpenCV 2.4 and converting images to YCrCb color space? I am using Python bindings and I cannot find any definition used to convert BGR2YCrCb. Here are some things I tried:
>>> import cv2
>>> cv2.COLOR_BGR2GRAY
6L
>>> cv2.COLOR_BGR2HSV
40L
>>> cv2.COLOR_BGR2YCrCb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'COLOR_BGR2YCrCb'
>>> cv2.COLOR_BGR2YCC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'COLOR_BGR2YCC'
>>>
Does anyone know how to convert to cv2?
source
share