mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 19:27:56 +00:00
Another bugfix with sequence capture.
This commit is contained in:
@@ -418,7 +418,7 @@ cv::Mat SequenceCapture::GetNextFrame()
|
||||
}
|
||||
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
|
||||
latest_frame = cv::Mat();
|
||||
|
||||
Reference in New Issue
Block a user