Mercurial Hosting > traffic-intelligence
diff c/InputVideoFileModule.cpp @ 401:b829ebdc18e6
simplified input of directories of video frames (simply use the video filename parameter to point at the directory)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 29 Jul 2013 18:58:05 -0400 |
parents | 7ef1071e3cc3 |
children | 3c271a46b4d4 |
line wrap: on
line diff
--- a/c/InputVideoFileModule.cpp Mon Jul 29 18:06:55 2013 -0400 +++ b/c/InputVideoFileModule.cpp Mon Jul 29 18:58:05 2013 -0400 @@ -14,7 +14,7 @@ InputVideoFileModule::~InputVideoFileModule(void) { } -void InputVideoFileModule::setFrameNumber(const int& frameNumber) { +void InputVideoFileModule::setFrameNumber(const unsigned int& frameNumber) { mVideoCapture.set(CV_CAP_PROP_POS_FRAMES, frameNumber); } @@ -23,7 +23,7 @@ bool success = false; if(mInit) { - mVideoCapture >> outputPicture; + mVideoCapture >> outputPicture; success = !outputPicture.empty(); } return success;