Commit bdf861b497abc81263a40676266c5f832c1adac6

Authored by Josh Klontz
1 parent 52c809f5

minor bug fix

Showing 1 changed file with 4 additions and 1 deletions
openbr/plugins/stream.cpp
... ... @@ -284,8 +284,11 @@ public:
284 284 {
285 285 qDebug("Video not open!");
286 286 }
  287 + } else {
  288 + // Yes, we should specify absolute path:
  289 + // http://stackoverflow.com/questions/9396459/loading-a-video-in-opencv-in-python
  290 + video.open(QFileInfo(input.file.name).absoluteFilePath().toStdString());
287 291 }
288   - else video.open(input.file.name.toStdString());
289 292  
290 293 return video.isOpened();
291 294 }
... ...