Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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);
}