<< avireadframe SIVP - Scilab Image and Video Processing Toolbox camshift >>

SIVP - Scilab Image and Video Processing Toolbox >> SIVP - Scilab Image and Video Processing Toolbox > camopen

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

Availability

The latest version of SIVP can be found at

http://sivp.sf.net

See Also

<< avireadframe SIVP - Scilab Image and Video Processing Toolbox camshift >>