Commit 0036caba authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

fixed total FPS evaluation in the GPU HOG sample

parent 066590dc
...@@ -288,8 +288,6 @@ void App::RunOpencvGui() ...@@ -288,8 +288,6 @@ void App::RunOpencvGui()
rectangle(img_to_show, r.tl(), r.br(), CV_RGB(0, 255, 0), 3); rectangle(img_to_show, r.tl(), r.br(), CV_RGB(0, 255, 0), 3);
} }
WorkEnd();
// Show results // Show results
putText(img_to_show, GetPerformanceSummary(), Point(5, 25), FONT_HERSHEY_SIMPLEX, 1.0, Scalar(0, 0, 255), 2); putText(img_to_show, GetPerformanceSummary(), Point(5, 25), FONT_HERSHEY_SIMPLEX, 1.0, Scalar(0, 0, 255), 2);
imshow("opencv_gpu_hog", img_to_show); imshow("opencv_gpu_hog", img_to_show);
...@@ -299,6 +297,8 @@ void App::RunOpencvGui() ...@@ -299,6 +297,8 @@ void App::RunOpencvGui()
{ {
vc >> frame; vc >> frame;
} }
WorkEnd();
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment