int waitKey (int delay = 0) waitKey 函数用于在一定时间内等待用户的按键输入,其中delay表示等待的时间,以毫秒为单位。当delay<=0时,等待时间为无限长。 函数的返回值为按键的代码。