From 092c1f98f699fb71445fcf7e2fddf57c43891af2 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 25 Apr 2012 06:27:55 +0000 Subject: [PATCH] fixed build of gpu demos pack --- samples/gpu/cascadeclassifier.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/gpu/cascadeclassifier.cpp b/samples/gpu/cascadeclassifier.cpp index 90ba21a60..422b4be7f 100644 --- a/samples/gpu/cascadeclassifier.cpp +++ b/samples/gpu/cascadeclassifier.cpp @@ -97,7 +97,7 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF int main(int argc, const char *argv[]) -{ +{ if (argc == 1) { help(); @@ -271,13 +271,13 @@ int main(int argc, const char *argv[]) displayState(frameDisp, helpScreen, useGPU, findLargestObject, filterRects, fps); imshow("result", frameDisp); - int key = waitKey(5); + char key = (char)waitKey(5); if (key == 27) { break; } - switch ((char)key) + switch (key) { case ' ': useGPU = !useGPU; @@ -305,4 +305,4 @@ int main(int argc, const char *argv[]) } return 0; -} \ No newline at end of file +}