Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
opencv_tutorials_t1 [2016/06/06 16:29] – joaomatos | opencv_tutorials_t1 [2017/05/13 16:55] (current) – [Using your Webcam Image] acater |
---|
</Code> | </Code> |
The loop will run until the "q" key on the keyboard is pressed (we need to declare the key variable first ). The video shown on the images will be a collection of frames took from your webcam ( using the assign **capture >> colorimage**) the color image will store the webcam frame . The rest of the code is the same thing as the last code , converting to gray scale and HSV. At the end we just need to assign the **"waitKey"** command to the key variable and close the loop. | The loop will run until the "q" key on the keyboard is pressed (we need to declare the key variable first ). The video shown on the images will be a collection of frames took from your webcam ( using the assign **capture >> colorimage**) the color image will store the webcam frame . The rest of the code is the same thing as the last code , converting to gray scale and HSV. At the end we just need to assign the **"waitKey"** command to the key variable and close the loop. |
| |
| \\ |
| The video below demonstrates the program as it is run in real time. |
| \\ |
| {{youtube>PqW0GsMVRd0?medium}} |