Navigation

Operators and Keywords

Function List:

C++ API

Function File: props = set (vi, prop)
Function File: val = set (vi, prop, value)
Function File: val = set (vi, prop, value, …)

Set or modify properties of videoinput objects.

The first variant (without value) returns a struct with possible values or range.

set(obj, 'brightness')
⇒ scalar structure containing the fields:

   min = 0
   max =  255
   step =  1
   default =  128

There is a number of properties starting with an upper letter which are available on all videoinput devices. Only the non-obvious are described here.

’VideoResolution’

Sets the width and height of the captured images. The driver attemps to adjust the values if the size requested is unavailable.

set(obj, "VideoResolution", [960 700])
⇒ warning: driver is sending image at 960x544 but 960x700 was requested
’VideoFrameInterval’

Time between frames in seconds as [numerator, denominator]. Conceptually fps=1/frame_interval.

’VideoFormat’

Set the VideoFormat using FOURCC code (for example RGB3) or long name (RGB24). See set(obj, "VideoFormat") for a list.

See also: @videoinput/get.

Package: image-acquisition