The problem is the following:
There is a CIF video file that is supposed to be processed by the OpenCV.
Unfortunately, I am not able to read frames from this video. The following code
cv::VideoCapture cap = cv::VideoCapture("foreman.cif");
if(!cap.isOpened()) {
std::cout << "Open file error" << std::endl;
return -1;
}
gives Open file error in console.
Is there any way to grab frames from CIF video using OpenCV?
I don’t think openCV can read raw YUV streams directly.
You can use memcoder to convert it to an avi, compressed or not.
Or you can use regular c/c++ to read the data blocks, copy them into an image and use cvCvtColor() to convert YUV->BGR