1 | initial version |
You don't tell camera to use a specific coding. The CvCapture will decode whatever format the camera is using into IplImage or cv::Mat.
Note that CvCapture will always return decoded images.
The CV_CAP_PROP_FOURCC
parameter is for VideoWriter, where you can use it to save a video in MJPG. It doesn't make any sense when you decode a stream.
2 | No.2 Revision |
You don't tell camera to use a specific coding. The CvCapture will decode whatever format the camera is using into IplImage IplImage
or cv::Mat.cv::Mat
.
Note that CvCapture will always return decoded images.
The CV_CAP_PROP_FOURCC
parameter is for VideoWriter, where you can use it to save a video in MJPG. It doesn't make any sense when you decode a stream. stream, because you cannot change the stream - you area just reading it.