First time here? Check out the FAQ!
answered 2015-03-04 11:47:41 -0600
use
cvtColor(img_in, img_out, CV_BGR2YUV);
updated 2015-03-05 05:25:26 -0600
In c++ use
In python
img_out = cv2.cvtColor(img_in, cv2.COLOR_BGR2YUV)