mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
fixed build of gpu demos pack
This commit is contained in:
parent
4ddde66b48
commit
092c1f98f6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user