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] = user_controls
[10,1] = brightness
[11,1] = contrast
[12,1] = saturation
[13,1] = white_balance_automatic
[14,1] = gain
[15,1] = power_line_frequency
[16,1] = white_balance_temperature
[17,1] = sharpness
[18,1] = backlight_compensation
[19,1] = camera_controls
[20,1] = auto_exposure
[21,1] = exposure_time_absolute
[22,1] = exposure_dynamic_framerate
}
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