Create a color sensor that captures video from the specified device (defaults to device 0, which usually corresponds to the first webcam installed in a system).
Create a color sensor that captures video from the specified device (defaults to device 0, which usually corresponds to the first webcam installed in a system). If capture width, height, or framerate are supplied, an attempt is made to apply those parameters to the video stream, but not all webcams support all image sizes or framerates, and may ignore those settings.
Returns a color sensor that attempts to capture video from the specified network address.
Returns a color sensor that attempts to capture video from the specified
network address. The 'format' parameter is used to coerce the video
decoder to assume a particular encoding format, in case it can't guess it
correctly on its own. The width
or height
and height parameters can
be used to request a specific resolution from the video source, but of
course the source may not support the requested resolution (or may choose
to ignore it).
CAUTION! This function tends to hang if it can't make a connection to the target URL!
Returns a color sensor that attempts to capture video from the specified network address.
Returns a color sensor that attempts to capture video from the specified network address. Attempts to guess the video's encoding format, and uses whatever the default resolution provided by the source is.
CAUTION! This function tends to hang if it can't make a connection to the target URL!