mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 21:40:49 +08:00
Fixed segmentation fault error in TRACK_vot::getNextFrame()
This commit is contained in:
@@ -50,9 +50,7 @@ using namespace std;
|
||||
using namespace cv;
|
||||
using namespace cv::datasets;
|
||||
|
||||
#define NUM_TEST_FRAMES 100
|
||||
#define TEST_VIDEO_INDEX 7 //TLD Dataset Video Index from 1-10
|
||||
//#define RECORD_VIDEO_FLG
|
||||
#define NUM_TEST_FRAMES 1000
|
||||
|
||||
static Mat image;
|
||||
static bool paused;
|
||||
@@ -186,10 +184,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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user