Function File: props = get (vi)
Function File: val = get (vi, prop)

Access property values of videoinput objects.

Without prop a cell with available properties is returned. The entries starting with a upper letter are available on all devices, the others queried from and specific to the used driver.

obj = videoinput ("v4l2", "/dev/video0");
get (obj)
⇒
 {
   [1,1] = SelectedSourceName
   [2,1] = ReturnedColorSpace
   [3,1] = BayerSensorAlignment
   [4,1] = DeviceCapabilities
   [5,1] = VideoInput
   [6,1] = VideoResolution
   [7,1] = VideoFrameInterval
   [8,1] = VideoFormat
   [9,1] = brightness
   [10,1] = contrast
   [11,1] = saturation
   [12,1] = white_balance_temperature_auto
   [13,1] = gain
   [14,1] = power_line_frequency
   [15,1] = white_balance_temperature
   [16,1] = sharpness
   [17,1] = backlight_compensation
   [18,1] = exposure_auto
   [19,1] = exposure_absolute
   [20,1] = exposure_auto_priority
 }
obj = videoinput("v4l2", "/dev/video0");
get (obj, "SelectedSourceName")
  ⇒ /dev/video0
obj = videoinput ("v4l2", "/dev/video0");
set(obj, "VideoResolution", [640 480]);
get (obj, "VideoResolution")
  ⇒    640   480

See also: @videoinput/set.

Package: image-acquisition