Name

camopen — Open a camera. (experimental)

Calling Sequence

n = camopen()
n = camopen(i)

Parameters

i
The i'th camera.
n
A number, the opened video file/camera index.

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);

Authors

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

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

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