First time here? Check out the FAQ!
answered 2016-02-23 04:14:21 -0600
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); }