| Interface: | Video4Linux2 |
| Revision: | 24.11.10 |
| Date: | 2025-10-08 |
| Parameter | Value List | Type | Kind | Description |
|---|---|---|---|---|
| 'bits_per_channel' | [-1, 8] | integer | pre-defined | Values for bits per channel. |
| 'camera_type' | [] | Unused. | ||
| 'color_space' | ['default', 'gray', 'raw', 'rgb'] | string | pre-defined | Values for color space. |
| 'defaults' | [1, 1, 0, 0, 0, 0, 'progressive', 8, 'default', -1.0, 'false', 'auto', 'default', 0, 0] | mixed | pre-defined | Default values for open_framegrabber. |
| 'device' | ['device:<device_id> | port:<port_number> | input_name:<input_name>'] | string | dynamic | List of available devices. |
| 'external_trigger' | [] | Unused. | ||
| 'field' | [] | Unused. | ||
| 'general' | [] | string | pre-defined | Information about the HALCON Video4Linux2 interface. |
| 'generic' | ['', 'capture_format=<format>', 'num_buffers=<buffers>', 'io_method=<read|mmap>'] | string | pre-defined | Value list for the Generic parameter. |
| 'horizontal_resolution' | [1, 2, 4] | integer | pre-defined | Value list for horizontal resolution. |
| 'image_height' | [] | Unsupported query. | ||
| 'image_width' | [] | Unsupported query. | ||
| 'info_boards' | ['device:<device_id> | port:<port_number> | input_name:<input_name>'] | string | dynamic | A list of the available devices. |
| 'parameters' | ['<parameters>'] | string | pre-defined | Pre-defined parameters of the HALCON interface. |
| 'parameters_readonly' | ['<parameters>'] | string | pre-defined | Pre-defined read-only parameters of the HALCON interface. |
| 'parameters_writeonly' | ['<parameters>'] | string | pre-defined | Pre-defined write-only parameters of the HALCON interface. |
| 'port' | [] | Unused. | ||
| 'revision' | '<revision>' | string | pre-defined | Revision number of the Video4Linux2 interface. |
| 'start_column' | [] | Unsupported query. | ||
| 'start_row' | [] | Unsupported query. | ||
| 'vertical_resolution' | [1, 2, 4] | integer | pre-defined | Value list for vertical resolution. |
| Parameter | Values | Default | Type | Description |
|---|---|---|---|---|
| Name | 'Video4Linux2' | string | Name of the HALCON interface. | |
| HorizontalResolution | 1, 2, 4, resolution | 1 | integer | Desired horizontal resolution of the camera image:
|
| VerticalResolution | 1, 2, 4, resolution | 1 | integer | Desired vertical resolution of the camera image:
|
| ImageWidth | 0, <width> | 0 | integer | Width of the desired image part ('0' stands for the complete image). |
| ImageHeight | 0, <height> | 0 | integer | Height of the desired image part ('0' stands for the complete image). |
| StartRow | 0, <row> | 0 | integer | Row coordinate of the upper left pixel within the desired image part. |
| StartColumn | 0, <column> | 0 | integer | Column coordinate of the upper left pixel within the desired image part. |
| Field | --- | Ignored. | ||
| BitsPerChannel | 8 | 8 | integer | Number of bits per channel of the resulting HALCON image. In case of -1 the current bit depth of the camera is used. By specifying a value greater than 8 the grabbed images are delivered as uint2 images. |
| ColorSpace | 'default', 'gray', 'raw', 'rgb' | 'default' | string | Specify the desired color space and thus the number of image channels of the resulting HALCON image. In case of 'default' the color space which is supported by the device will be used. |
| Generic | '', 'capture_format=<format>', 'num_buffers=<buffers>', 'io_method=<read|mmap>', -1 | -1 | mixed | With the generic parameter some important values can be set before the camera is initialized. Note that the parameter names including the values
must be strings.
|
| ExternalTrigger | --- | Ignored. | ||
| CameraType | --- | Ignored. | ||
| Device | 'default', '<device_id>' | 'default' | string | To open a specific camera the device name as shown in info_framegrabber(...'info_boards', ...) has to be set. Video4Linux2 devices are named 'video' followed by a number (e.g. 'video0'). Using 'default' here will select the first usable Video4Linux2 capture device found on the system. |
| Port | --- | Ignored. | ||
| LineIn | --- | Ignored. |
| Parameter | Values | Default | Type | Description |
|---|---|---|---|---|
| Backlight Compensation | 0, 1 | integer | Standard Device Parameter Adjusts the backlight compensation in the camera. The value 0 disables backlight compensation. | |
| 'Brightness' | 0 ... 255 | 128 | integer | Standard Device Parameter The brightness value of the image. |
| 'capture_format' | '<format>' | string | Interface Parameter The V4L2 image format the acquisition device should use to capture images, see also the generic parameter capture_format. This parameter cannot be changed while asynchroneous acquisition is active. | |
| 'Contrast' | 0 ... 255 | integer | Standard Device Parameter Contrast value of the image. | |
| Disable video processing | 'false', 'true' | string | Dynamic Device Parameter This parameter should always be 'false', because HALCON can not handle the resulting video format. | |
| 'do_abort_grab' | --- | Interface Parameter Aborts the current image acquisition and unlocks parameters, which are locked according to the status of the transport layer. | ||
| Exposure (Absolute) | 1 ... 10000 | integer | Standard Device Parameter Absolute exposure value. | |
| Exposure, Auto | 'Aperture Priority Mode', 'Auto Mode', 'Manual Mode', 'Shutter Priority Mode' | string | Standard Device Parameter A special auto exposure mode. Note: Only the modes 'Manual Mode' and 'Aperture Priority Mode' are supported by the Logitech Quickcam 9000 Pro. | |
| Exposure, Auto Priority | 'false', 'true' | string | Standard Device Parameter Enables/Disables the auto priority mode. | |
| 'Focus' | 0 ... 255 | integer | Dynamic Device Parameter Sets the focal point of the camera to the specified position. | |
| 'frame_interval' | <seconds> | integer, float | Interface Parameter Interval (in seconds) between capturing two successive images. Only intervals that the device driver supports can be specified. | |
| 'Gain' | 0 ... 255 | integer | Standard Device Parameter Gain control value of the camera. | |
| 'grab_timeout' | <milliseconds> | 5000 | integer | Desired timeout (milliseconds) for aborting a pending grab. If -1 is specified, the timeout is set to INFINITE. |
| LED1 Frequency | 0 ... 255 | integer | Dynamic Device Parameter Frequency of LED1. | |
| LED1 Mode | 0 ... 132 | integer | Dynamic Device Parameter Mode of LED1. The following modes are available:
|
|
| 'num_buffers' | <buffers> | integer | Interface Parameter The number of buffers the interface should use for image acquisition. A device driver may decide to use more buffers than requested, so this is the minimum number of buffers to use. The value must be at least one, with the maximum number dependent on the device driver and the available system memory. This parameter cannot be changed while asynchroneous acquisition is active. | |
| Power Line Frequency | 'Disable', '50 HZ', '60 HZ' | string | Standard Device Parameter Power line frequency. | |
| Raw bits per pixel | 0, 1 | integer | Dynamic Device Parameter Specifies how many raw bits per pixel should be used. This value is only relevant if 'Disable video processing' is set to 'true'. | |
| 'Saturation' | 0 ... 255 | integer | Standard Device Parameter Image color saturation. | |
| 'Sharpness' | 0 ... 255 | integer | Standard Device Parameter Adjusts the sharpness filters in a camera. The minimum value disables the filters, higher values give a sharper picture. | |
| 'timestamp_timebase' | 'auto', 'monotonic', 'realtime' | 'auto' | string | Interface Parameter When using the streaming interface (io_method 'mmap'), the Video4Linux2
driver records the time the image was acquired with every buffer. This
timestamp can be based on either CLOCK_REALTIME or CLOCK_MONOTONIC. The
timestamp is used by the interface to determine if an image is too old,
so the interface must know the timebase used. The default setting of 'auto' tells the interface to determine the timebase used automatically. For Linux kernels prior to 3.9, this involves some guesswork, as older Linux kernels did not report the timebase used. If the interface guesses wrong, the correct timebase can be specified by setting the parameter to 'monotonic' or 'realtime', depending on which timebase (CLOCK_MONOTONIC or CLOCK_REALTIME) is actually used. When using io_method 'read', this parameter is ignored and the interface generates timestamps based on CLOCK_MONOTONIC. |
| 'volatile' | 'disable', 'enable' | 'disable' | string | Interface Parameter Raw and grayscale only. In the volatile mode the image buffers are used
directly to store HALCON images. This is the fastest mode avoiding to copy
raw images in memory. However, be aware that older images are overwritten
again and again as a side-effect. Thus, you can only process one image
while you grab another image. Older images are invalid! Please note that the HDevelop Image Acquisition Assistant offers only the 'enable' value, if the current capture format allows volatile mode. So after changing these parameters, the refresh button has to be used to get the new status of the values for volatile. Default: 'disable'. |
| White Balance Temperature | 0 ... 10000 | integer | Standard Device Parameter White balance settings as a color temperature in Kelvin. A driver should have a minimum of 2800 (incandescent) to 6500 (daylight). | |
| White Balance Temperature, Auto | 'false', 'true' | string | Standard Device Parameter When activated, keeps adjusting the white balance temperature. |
All these postfixed parameter names are not returned when calling info_framegrabber(.., 'parameters', ..) and are used to enable the easy parameterization via a generic graphical user interface, particularly the HDevelop Image Acquisition Assistant.
| Parameter | Values | Default | Type | Kind | Description |
|---|---|---|---|---|---|
| 'available_param_names' | ['<parameters>'] | string | dynamic | The list contains the names of all available parameters. | |
| Backlight Compensation | 0, 1 | integer | dynamic | Standard Device Parameter Adjusts the backlight compensation in the camera. The value 0 disables backlight compensation. | |
| 'bits_per_channel' | -1, 8 | 8 | integer | pre-defined | Number of bits per channel of the resulting HALCON image. In case of -1 the current bit depth of the camera is used. By specifying a value greater than 8 the grabbed images are delivered as uint2 images. |
| 'Brightness' | 0 ... 255 | 128 | integer | dynamic | Standard Device Parameter The brightness value of the image. |
| 'camera_type' | '<default>' | 'auto' | string | pre-defined | The value is not used, so a default value is returned. |
| 'capture_format' | '<format>' | string | dynamic | Interface Parameter The V4L2 image format the acquisition device should use to capture images, see also the generic parameter capture_format. This parameter cannot be changed while asynchroneous acquisition is active. | |
| 'color_space' | 'gray', 'raw', 'rgb' | 'default' | string | pre-defined | Desired color space and thus the number of image channels of the resulting HALCON image. |
| 'Contrast' | 0 ... 255 | integer | dynamic | Standard Device Parameter Contrast value of the image. | |
| 'device' | '<device_id>' | 'default' | string | dynamic | Current device ID. |
| Disable video processing | 'false', 'true' | string | dynamic | Dynamic Device Parameter This parameter should always be 'false', because HALCON can not handle the resulting video format. | |
| Exposure (Absolute) | 1 ... 10000 | integer | dynamic | Standard Device Parameter Absolute exposure value. | |
| Exposure, Auto | 'Aperture Priority Mode', 'Auto Mode', 'Manual Mode', 'Shutter Priority Mode' | string | dynamic | Standard Device Parameter A special auto exposure mode. Note: Only the modes 'Manual Mode' and 'Aperture Priority Mode' are supported by the Logitech Quickcam 9000 Pro. | |
| Exposure, Auto Priority | 'false', 'true' | string | dynamic | Standard Device Parameter Enables/Disables the auto priority mode. | |
| 'external_trigger' | '<default>' | 'false' | string | pre-defined | The value is not used, so a default value is returned. |
| 'field' | '<default>' | 'progressive' | string | pre-defined | The value is not used, so a default value is returned. |
| 'Focus' | 0 ... 255 | integer | dynamic | Dynamic Device Parameter Sets the focal point of the camera to the specified position. | |
| 'frame_interval' | <seconds> | integer, float | dynamic | Interface Parameter Interval (in seconds) between capturing two successive images. Only intervals that the device driver supports can be specified. | |
| 'Gain' | 0 ... 255 | integer | dynamic | Standard Device Parameter Gain control value of the camera. | |
| 'generic' | '', 'capture_format=<format>', 'num_buffers=<buffers>', 'io_method=<read|mmap>', -1 | -1 | mixed | pre-defined | Values of the Generic parameter. |
| 'grab_timeout' | <milliseconds> | 5000 | integer | pre-defined | Current grab timeout in milliseconds. |
| 'horizontal_resolution' | 1, 2, 4, resolution | 1 | integer | pre-defined | Current value of horizontal resolution. |
| 'image_height' | <height> | 0 | integer | pre-defined | Height of the desired image part ('0' stands for the complete image). |
| 'image_width' | <width> | 0 | integer | pre-defined | Width of the desired image part ('0' stands for the complete image). |
| 'io_method' | 'read', 'mmap' | string | pre-defined | Interface Parameter The currently active I/O method used for accessing image data. See also the generic parameter io_method. | |
| LED1 Frequency | 0 ... 255 | integer | dynamic | Dynamic Device Parameter Frequency of LED1. | |
| LED1 Mode | 0 ... 132 | integer | dynamic | Dynamic Device Parameter Mode of LED1. The following modes are available:
|
|
| 'line_in' | <default> | 0 | integer | pre-defined | The value is not used, so a default value is returned. |
| 'max_height' | <height> | integer | dynamic | Maximum image height which is supported by the device. | |
| 'max_width' | <width> | integer | dynamic | Maximum image width which is supported by the device. | |
| 'name' | 'Video4Linux2' | string | pre-defined | Name of the HALCON interface. | |
| 'num_buffers' | <buffers> | integer | pre-defined | Interface Parameter The number of buffers the interface should use for image acquisition. A device driver may decide to use more buffers than requested, so this is the minimum number of buffers to use. The value must be at least one, with the maximum number dependent on the device driver and the available system memory. This parameter cannot be changed while asynchroneous acquisition is active. | |
| 'port' | <default> | 0 | integer | pre-defined | The value is not used, so a default value is returned. |
| Power Line Frequency | 'Disable', '50 HZ', '60 HZ' | string | dynamic | Standard Device Parameter Power line frequency. | |
| Raw bits per pixel | 0, 1 | integer | dynamic | Dynamic Device Parameter Specifies how many raw bits per pixel should be used. This value is only relevant if 'Disable video processing' is set to 'true'. | |
| 'revision' | '<revision>' | string | pre-defined | Revision number of the Video4Linux2 interface. | |
| 'Saturation' | 0 ... 255 | integer | dynamic | Standard Device Parameter Image color saturation. | |
| 'Sharpness' | 0 ... 255 | integer | dynamic | Standard Device Parameter Adjusts the sharpness filters in a camera. The minimum value disables the filters, higher values give a sharper picture. | |
| 'start_column' | <column> | 0 | integer | pre-defined | Returns the current start column of the HALCON image. |
| 'start_row' | <row> | 0 | integer | pre-defined | Returns the current start row of the HALCON image. |
| 'timestamp_timebase' | 'auto', 'monotonic', 'realtime' | 'auto' | string | pre-defined | Interface Parameter When using the streaming interface (io_method 'mmap'), the Video4Linux2
driver records the time the image was acquired with every buffer. This
timestamp can be based on either CLOCK_REALTIME or CLOCK_MONOTONIC. The
timestamp is used by the interface to determine if an image is too old,
so the interface must know the timebase used. The default setting of 'auto' tells the interface to determine the timebase used automatically. For Linux kernels prior to 3.9, this involves some guesswork, as older Linux kernels did not report the timebase used. If the interface guesses wrong, the correct timebase can be specified by setting the parameter to 'monotonic' or 'realtime', depending on which timebase (CLOCK_MONOTONIC or CLOCK_REALTIME) is actually used. When using io_method 'read', this parameter is ignored and the interface generates timestamps based on CLOCK_MONOTONIC. |
| 'vertical_resolution' | 1, 2, 4, resolution | 1 | integer | pre-defined | Current value of vertical resolution. |
| 'volatile' | 'disable', 'enable' | 'disable' | string | pre-defined | Interface Parameter Raw and grayscale only. In the volatile mode the image buffers are used
directly to store HALCON images. This is the fastest mode avoiding to copy
raw images in memory. However, be aware that older images are overwritten
again and again as a side-effect. Thus, you can only process one image
while you grab another image. Older images are invalid! Please note that the HDevelop Image Acquisition Assistant offers only the 'enable' value, if the current capture format allows volatile mode. So after changing these parameters, the refresh button has to be used to get the new status of the values for volatile. Default: 'disable'. |
| White Balance Temperature | <Kelvin> | integer | dynamic | Standard Device Parameter White balance settings as a color temperature in Kelvin. A driver should have a minimum of 2800 (incandescent) to 6500 (daylight). | |
| White Balance Temperature, Auto | 'false', 'true' | string | dynamic | Standard Device Parameter When activated, keeps adjusting the white balance temperature. |
You can request the source for those third-party libraries licensed under GPL or LGPL via email to info@mvtec.com with the subject "Request source code of third-party libraries".