Another bugfix with sequence capture.
This commit is contained in:
parent
5f9f2e3a94
commit
4959640b03
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ cv::Mat SequenceCapture::GetNextFrame()
|
||||||
}
|
}
|
||||||
else if (is_image_seq)
|
else if (is_image_seq)
|
||||||
{
|
{
|
||||||
if (image_files.empty())
|
if (image_files.empty() || frame_num - 1 > image_files.size())
|
||||||
{
|
{
|
||||||
// Indicate lack of success by returning an empty image
|
// Indicate lack of success by returning an empty image
|
||||||
latest_frame = cv::Mat();
|
latest_frame = cv::Mat();
|
||||||
|
|
Loading…
Reference in a new issue