SIVP Toolbox
Last update : April, 2006

camopen - Open a camera. (experimental)

Calling Sequence

n = camopen()
n = camopen(i)

Parameters

Description

camopen open a camera, but it does not read frames from the camera. Please use im=avireadframe(n) to get a frame from the n'th opened video file. Remember to close the opened camera using aviclose(n) or avicloseall().

Video support for SIVP is only available when SIVP is compiled with OpenCV which support video I/O.

Examples

	
    n = camopen();
    im = avireadframe(n); //get a frame
    imshow(im);

    avilistopened()
    aviclose(n);

Bugs and Shortcomings

Currently, video frame size is forced to be 320x240. The frame size could be set by user in later version.

Authors

Shiqi Yu <shiqi.yu[at]gmail.com>

Availability

The latest version of SIVP can be found at

http://sivp.sourceforge.net

See Also

aviinfo,  aviopen,  avifile,  addframe,  aviclose,  avicloseall,  avilistopened,  avireadframe,