Using other keys for the waitKey() function of opencv

前端 未结 11 716
天涯浪人
天涯浪人 2020-11-29 19:16

I\'m working on a program (python ,opencv) in which I use the spacebar to go to the next frame, and Esc to exit the program. These are the only two

11条回答
  •  悲&欢浪女
    2020-11-29 19:33

    With Ubuntu and C++ I had problems with the Character/Integer cast. I needed to use cv::waitKey()%256 to obtain the correct ASCII value.

提交回复
热议问题