As part of requirement of the project, the program must be able to process a live streaming video. To do that, the program need to request the computer to turn on any available webcam, then show on the screen the video recording. To do that, the following functions are used;
1) cvCaptureFromCAM(0): this function allocates and initialize the cvcapture structure to allow the program read a live streaming video from the webcam. Number (0) represents the index of the camera. If there is more than one camera, the number could be 1,2,3... depending on which camera is going to be used.
2) cvQueryFrame( ); this function grabs frame from the video sequentially for the processing.
No comments:
Post a Comment