update samples: waitKey() usage
Original commit is a5f19f7dd6ae5bc93f73e0417a9e0bfd34c01672
This commit is contained in:
committed by
Alexander Alekhin
parent
4e7b521438
commit
6d34d6b47e
@@ -90,7 +90,7 @@ int main(int argc, char** argv)
|
||||
// infinite loop to display
|
||||
// and refresh the content of the output image
|
||||
// until the user presses q or Q
|
||||
int key = 0;
|
||||
char key = 0;
|
||||
while(key != 'q' && key != 'Q')
|
||||
{
|
||||
// those paramaters cannot be =0
|
||||
@@ -102,7 +102,7 @@ int main(int argc, char** argv)
|
||||
HoughDetection(src_gray, src, cannyThreshold, accumulatorThreshold);
|
||||
|
||||
// get user key
|
||||
key = waitKey(10);
|
||||
key = (char)waitKey(10);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user