using open cv python i am trying to convert an rgb image to ycbcr using cv2.cvtclor.
the error is name 'CV_BGR2YCrCb' is not defined
Can anyone suggest few ideas.
You need to do this:
imgYCC = cv2.cvtColor(img, cv2.COLOR_BGR2YCR_CB)
The attribute name is COLOR_BGR2YCR_CB
not CV_BGR2YCrCb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With