- OpenCV 3 Computer Vision with Python Cookbook
- Alexey Spizhevoy Aleksandr Rybnikov
- 56字
- 2021-08-27 19:47:34
How it works...
As you can see, we just analyze the waitKey() return value. If we set a duration and no key is pressed, waitKey() would return -1.
After launching the code and pressing the P, L, R, E, and T keys a few times, you will get an image close to the following: