Commit 092c1f98 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed build of gpu demos pack

parent 4ddde66b
...@@ -97,7 +97,7 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF ...@@ -97,7 +97,7 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
if (argc == 1) if (argc == 1)
{ {
help(); help();
...@@ -271,13 +271,13 @@ int main(int argc, const char *argv[]) ...@@ -271,13 +271,13 @@ int main(int argc, const char *argv[])
displayState(frameDisp, helpScreen, useGPU, findLargestObject, filterRects, fps); displayState(frameDisp, helpScreen, useGPU, findLargestObject, filterRects, fps);
imshow("result", frameDisp); imshow("result", frameDisp);
int key = waitKey(5); char key = (char)waitKey(5);
if (key == 27) if (key == 27)
{ {
break; break;
} }
switch ((char)key) switch (key)
{ {
case ' ': case ' ':
useGPU = !useGPU; useGPU = !useGPU;
...@@ -305,4 +305,4 @@ int main(int argc, const char *argv[]) ...@@ -305,4 +305,4 @@ int main(int argc, const char *argv[])
} }
return 0; return 0;
} }
\ No newline at end of file
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