Function for creating Stream objects from video
streams.
Usage
stream(...)
Arguments
...
stream takes one argument that is a number indicating the
index of the camera to use (0 is usually the default webcam on most
computers). A Stream object can also be created without any argument,
in which case it is empty and can be populated with a stream later.