|
|
@ -50,7 +50,7 @@ using namespace std; |
|
|
|
using namespace cv; |
|
|
|
using namespace cv; |
|
|
|
using namespace cv::datasets; |
|
|
|
using namespace cv::datasets; |
|
|
|
|
|
|
|
|
|
|
|
#define NUM_TEST_FRAMES 100 |
|
|
|
#define NUM_TEST_FRAMES 1000 |
|
|
|
|
|
|
|
|
|
|
|
static Mat image; |
|
|
|
static Mat image; |
|
|
|
static bool paused; |
|
|
|
static bool paused; |
|
|
@ -170,10 +170,8 @@ int main(int argc, char *argv[]) |
|
|
|
//Time measurment
|
|
|
|
//Time measurment
|
|
|
|
int64 e1 = getTickCount(); |
|
|
|
int64 e1 = getTickCount(); |
|
|
|
if (initialized){ |
|
|
|
if (initialized){ |
|
|
|
dataset->getNextFrame(frame); |
|
|
|
if (!dataset->getNextFrame(frame)) |
|
|
|
if (frame.empty()){ |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
frame.copyTo(image); |
|
|
|
frame.copyTo(image); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|