首页 > 编程知识 正文

为什么在函数中使用数组按键没有用,计算机右键属性没反应

时间:2023-05-04 18:14:27 阅读:24769 作者:1599

opencv :等待密钥

等待键

Waits for a pressed key。

c:intwaitkey(intdelay=0) )。

c:intcvwaitkey(intdelay=0) () ) ) ) ) )。

parameters : delaydelayinmilliseconds.0 isthespecialvaluethatmeans“forever”。

thefunctionwaitkeywaitsforakeyeventinfinitely (when (文本TT ) delay ) leq0) or for delay milliseconds, whenitispositive.sincetheoshasaminimumtimebetweenswitchingthreads,thefunctionwillnotwaitexactlydelayms,it will wait at at at leat lat lat least dependingonwhatelseisrunningonyourcomputeratthattime.itreturnsthecodeofthepressedkeyor-1 ifnokeywaspressedbeforethespecifiecifieyor

笔记

thisfunctionistheonlymethodinhighguithatcanfetchandhandleevents,soitneedstobecalledperiodicallyfornormaleventprocessingunlesiongunlelested

笔记

thefunctiononlyworksifthereisatleastonehighguiwindowcreatedandthewindowisactive.ifthereareseveralhighghguiwindows,anyofthememchthemc

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。