mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
More strict test for MSMF FOURCC (camera).
This commit is contained in:
parent
d0de575aef
commit
5c9f58e124
@ -130,7 +130,12 @@ TEST(DISABLED_videoio_camera, msmf_read_yuyv)
|
|||||||
std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl;
|
std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl;
|
||||||
int fourcc = (int)capture.get(CAP_PROP_FOURCC);
|
int fourcc = (int)capture.get(CAP_PROP_FOURCC);
|
||||||
std::cout << "FOURCC code: " << cv::format("0x%8x", fourcc) << std::endl;
|
std::cout << "FOURCC code: " << cv::format("0x%8x", fourcc) << std::endl;
|
||||||
test_readFrames(capture);
|
cv::Mat frame;
|
||||||
|
for (int i = 0; i < 10; i++)
|
||||||
|
{
|
||||||
|
capture >> frame;
|
||||||
|
EXPECT_EQ(2, frame.channels());
|
||||||
|
}
|
||||||
capture.release();
|
capture.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user