First time here? Check out the FAQ!
answered Feb 23 '16
You can just use
cv::VideoCapture cap(0); cv::Mat frame; while(cap.read (frame)){ cv::cvtColor(frame, frame, BGR2RGB); cv::imshow("RGB", frame); cv::waitKey(1); }