Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
opencv_tutorials_t1 [2016/06/06 15:34] – joaomatos | opencv_tutorials_t1 [2017/05/13 16:55] (current) – [Using your Webcam Image] acater |
---|
{{::basic_operations_using_webcam.rar|Basic operations using webcam}} | {{::basic_operations_using_webcam.rar|Basic operations using webcam}} |
| |
{{ ::basic_op.jpg?direct |}} | |
| |
---- | ---- |
| ===== Basic Operations ===== |
| |
| {{ ::basic_op.jpg?direct |}} |
| |
<Code:c++ linenums:1> | <Code:c++ linenums:1> |
</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}} |