January 2018
Intermediate to advanced
268 pages
6h 20m
English
This program will display the input video stream and wait for the keyboard input to change the color space. If you run the previous program, you will see the window displaying the input video stream from the webcam. If you press G, you will see that the color space of the input stream gets converted to grayscale. If you press Y, the input stream will be converted to YUV color space. Similarly, if you press H, you will see the image being converted to HSV color space.
As we know, we use the function waitKey() to listen to keyboard events. As and when we encounter different keystrokes, we take appropriate actions. The reason we are using the function ord() is because waitKey() returns the ASCII value of the ...
Read now
Unlock full access