Why does cap.get(CV_CAP_PROP_FORMAT) return 0?
Consider the following snippet of code:
VideoCapture cap(argv[1]);
int frame_format = cap.get(CV_CAP_PROP_FORMAT);
When I run this, and pass in a .bmp file as argv[1], the call to get(CV_CAP_PROP_FORMAT) returns 0. I would have expected it to return 16 (CV_8UC3).
When I fetch an image from the file with
cap >> image;
int image_type = image.type();
I get the 16 I expect.
Thanks for any tips you can give me.
--wpd