Another bugfix with sequence capture.

This commit is contained in:
Tadas Baltrusaitis 2017-11-10 07:57:33 +00:00
parent 5f9f2e3a94
commit 4959640b03
1 changed files with 1 additions and 1 deletions

View File

@ -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();