Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use

  cvtColor(img_in, img_out, CV_BGR2YUV);

In c++ use

  cvtColor(img_in, img_out, CV_BGR2YUV);

In python

 img_out = cv2.cvtColor(img_in, cv2.COLOR_BGR2YUV)