Not there.
You need to request frames and convert them to shades of gray yourself.
Using C interface: fooobar.com/questions/111069 / ...
With C ++ interface:
VideoCapture cap(0); if (!cap.isOpened()) { // print error msg return -1; } namedWindow("gray",1); Mat frame; Mat gray; for(;;) { cap >> frame; cvtColor(frame, gray, CV_BGR2GRAY); imshow("gray", gray); if(waitKey(30) >= 0) break; } return 0;
source share