提交 57e26bde 编写于 作者: A Alexander Reshetnikov

Accelerating the completion of video bypass (bug #1893)

上级 3ec43a11
......@@ -494,10 +494,13 @@ bool VideoCapture::retrieve(Mat& image, int channel)
bool VideoCapture::read(Mat& image)
{
if (get(CV_CAP_PROP_POS_FRAMES) < get(CV_CAP_PROP_FRAME_COUNT))
if(!grab())
image.release();
else
retrieve(image);
else
image.release();
return !image.empty();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册