Visualization fix, and fix with sequence reading from video files.

This commit is contained in:
Tadas Baltrusaitis
2017-11-10 08:57:34 +00:00
parent 4959640b03
commit e58ccaa73d
2 changed files with 9 additions and 25 deletions

View File

@@ -254,7 +254,7 @@ bool SequenceCapture::OpenVideoFile(std::string video_file, float fx, float fy,
vid_length = (int)capture.get(CV_CAP_PROP_FRAME_COUNT);
if (capture.isOpened())
if (!capture.isOpened())
{
std::cout << "Failed to open the video file at location: " << video_file << std::endl;
return false;