[Python] Using other keys for the waitKey() function of opencv

Discussão em 'Python' iniciado por Stack, Julho 21, 2025.

  1. Stack

    Stack Membro Participativo

    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 keys i've got working. I tried to find out about more keys , tried various codes for them but didnt work. especially arrow keys.

    I found this about waitkey, but it doesn't work.

    So my question is, How do I catch other keys besides esc and spacebar to trigger certain functions in my python-opencv program?

    Continue reading...

Compartilhe esta Página