diff --git a/openbr/plugins/stream.cpp b/openbr/plugins/stream.cpp index 5470f51..884176a 100644 --- a/openbr/plugins/stream.cpp +++ b/openbr/plugins/stream.cpp @@ -284,8 +284,11 @@ public: { qDebug("Video not open!"); } + } else { + // Yes, we should specify absolute path: + // http://stackoverflow.com/questions/9396459/loading-a-video-in-opencv-in-python + video.open(QFileInfo(input.file.name).absoluteFilePath().toStdString()); } - else video.open(input.file.name.toStdString()); return video.isOpened(); }