这条语句是什么意思?int c = waitKey(0);

nullnullptr 2016-09-02 04:17:46
int c = waitKey(0);
OpenCV 里面为什么可以这样用,这样有什么意义?
...全文
615 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-09-05
  • 打赏
  • 举报
回复
VS IDE中,在不明白的符号上点鼠标右键,选转到定义。
nullnullptr 2016-09-05
  • 打赏
  • 举报
回复
引用 4 楼 paschen 的回复:
就调用这个函数嘛,只要知道这个函数是做什么很容易就明白了
嗯嗯是啊 菜鸟一枚 懂了嘿嘿
paschen 2016-09-02
  • 打赏
  • 举报
回复
就调用这个函数嘛,只要知道这个函数是做什么很容易就明白了
nullnullptr 2016-09-02
  • 打赏
  • 举报
回复
引用 1 楼 qq423399099 的回复:
waitKey有两个作用: 1. It waits for x milliseconds for a key press. If a key was pressed during that time, it returns the key's ASCII code. Otherwise, it returns -1. 2It handles any windowing events, such as creating windows with cv::namedWindow(), or showing images with cv::imshow().
好像很容易就能查到 不知道我之前怎么没找到
nullnullptr 2016-09-02
  • 打赏
  • 举报
回复
引用 1 楼 qq423399099 的回复:
waitKey有两个作用: 1. It waits for x milliseconds for a key press. If a key was pressed during that time, it returns the key's ASCII code. Otherwise, it returns -1. 2It handles any windowing events, such as creating windows with cv::namedWindow(), or showing images with cv::imshow().
哇哇哇懂了!!!查了好久都没找到这样清楚的解释
小灸舞 2016-09-02
  • 打赏
  • 举报
回复
waitKey有两个作用:
1. It waits for x milliseconds for a key press. If a key was pressed during that time, it returns the key's ASCII code. Otherwise, it returns -1.
2It handles any windowing events, such as creating windows with cv::namedWindow(), or showing images with cv::imshow().

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧