1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +08:00

Fixed segmentation fault error in TRACK_vot::getNextFrame()

This commit is contained in:
Vladimir
2015-08-22 02:29:50 +09:00
parent a4fdf7efff
commit 20cdf5d7f6
4 changed files with 9 additions and 12 deletions

View File

@@ -169,10 +169,8 @@ int main(int argc, char *argv[])
//Time measurment
int64 e1 = getTickCount();
if (initialized){
dataset->getNextFrame(frame);
if (frame.empty()){
if (!dataset->getNextFrame(frame))
break;
}
frame.copyTo(image);
}