 |
|
Image Acquisition Interface for IEEE 1394 (FireWire) Cameras
|
Interface:
|
1394IIDC-2
|
|
Revision:
|
5.0
|
|
Date:
|
2012-05-15
|
|
HALCON Version:
|
11.0
|
General This page provides the documentation of the HALCON 1394IIDC-2 interface which is based on the libdc1394 v2 library via any
OHCI compliant IEEE 1394 adapter cards.
With this interface you can acquire images from all IEEE 1394 (FireWire)
cameras that are compliant to the IIDC 1394 standard.
Registered customers can download the
latest revision of this interface from the
MVTec WWW server.
System Requirements
- Intel compatible PC with Linux x86 or x86_64 operating system and OHCI compliant IEEE 1394 adapter. We recommend to use kernel
2.6.38 or higher.
- The following kernel modules must be loaded:
firewire-ohci and firewire-core.
- Read/write access to the devices /dev/fw*.
- Installed system libraries libraw1394
(version 2.0.5) and
libdc1394 (version 2.1.2).
- HALCON image acquisition interface hAcq1394IIDC-2.so or
hAcq1394IIDC-2xl.so, respectively.
If you have properly installed the interface, the shared object files
should reside in lib/$HALCONARCH within the HALCON
base directory $HALCONROOT you have chosen during the
installation of HALCON.
- Please note that this interface has been tested on
kernel version 2.6.32 and will probably not work
with older Linux kernel versions.
Features
- Supports all IEEE 1394a and IEEE 1394b cameras that are compliant to the IIDC 1394-based Digital Camera Specification.
- Synchronous and asynchronous grabbing.
- Multiple cameras.
- External camera triggering.
- Support of scalable image formats (Format_7).
- Software control of all IIDC 1394 parameters.
Limitations
- Bus reset not supported.
- Format_6 not supported.
- This interface does no more support the old FireWire kernel drivers,
i.e., it cannot be used together with devices
connected to /dev/raw1394 and /dev/video1394.
Only if you are using the scalable image format (Format_7), you can crop images by changing the used camera sensor size with the
following parameters:
- horizontal_offset
- horizontal_resolution
- vertical_offset
- vertical_resolution
Note that because of the smaller used sensor size the frame rate
will raise.
Selecting the desired video mode and frame rate Specify the desired video settings in IIDC 1394 notation as a string consisting of the video format (0,1,2,7), the video mode
(0,1,2,3,4,5,6,7), and the frame rate (0,1,2,3,4,5), separated
by colons. Video format 7 is the scalable image mode; here, the frame
rate depends from the chosen image size and the packet_size
parameter. For the supported modes and frame rates please see
the manual of your specific camera.
frame rate:
- 0 = 1.875 fps
- 1 = 3.75 fps
- 2 = 7.5 fps
- 3 = 15 fps
- 4 = 30 fps
- 5 = 60 fps
- 6 = 120 fps
- 7 = 240 fps
format 0
- mode 0 - 160 X 120 YUV(4:4:4) Mode (24bit/pixel) -
frame rates 2, 3, 4, 5, 6, 7
- mode 1 - 320 X 240 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 2 - 640 X 480 YUV(4:1:1) Mode (12bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 3 - 640 X 480 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 4 - 640 X 480 RGB Mode (24bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 5 - 640 X 480 Y (Mono) Mode (8bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 6 - 640 X 480 Y (Mono16) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
format 1
- mode 0 - 800 X 600 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 1, 2, 3, 4, 5, 6, 7
- mode 1 - 800 X 600 RGB Mode (24bit/pixel) -
frame rates 2, 3, 4, 5, 6
- mode 2 - 800 X 600 Y (Mono) Mode (8bit/pixel) -
frame rates 2, 3, 4, 5, 6, 7
- mode 3 - 1024 X 768 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6
- mode 4 - 1024 X 768 RGB Mode (24bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
- mode 5 - 1024 X 768 Y (Mono) Mode (8bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6, 7
- mode 6 - 800 X 600 Y (Mono16) Mode (16bit/pixel) -
frame rates 1, 2, 3, 4, 5, 6, 7
- mode 7 - 1024 X 768 Y (Mono16) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6
format 2
- mode 0 - 1280 X 960 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
- mode 1 - 1280 X 960 RGB Mode (24bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
- mode 2 - 1280 X 960 Y (Mono) Mode (8bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6
- mode 3 - 1600 X 1200 YUV(4:2:2) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
- mode 4 - 1600 X 1200 RGB Mode (24bit/pixel) -
frame rates 0, 1, 2, 3, 4
- mode 5 - 1600 X 1200 Y (Mono) Mode (8bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5, 6
- mode 6 - 1280 X 960 Y (Mono16) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
- mode 7 - 1600 X 1200 Y (Mono16) Mode (16bit/pixel) -
frame rates 0, 1, 2, 3, 4, 5
format 7
- 7:X:0 - Y8
- 7:X:1 - YUV411
- 7:X:2 - YUV422
- 7:X:3 - YUV444
- 7:X:4 - RGB8
- 7:X:5 - Y16
- 7:X:6 - RGB16
- 7:X:7 - Signed Y16
- 7:X:8 - Signed RGB16
- 7:X:9 - RAW8
- 7:X:10 - RAW16
Please note that 'X' is a number, which depends of the supported
formats of the camera. Possible values: 0...7.
'default' means to adopt the current settings of the camera.
| Parameter |
Value List |
Type |
Kind |
Description |
| 'bits_per_channel' |
[-1, 8, 16] |
integer |
pre-defined |
Values for bits per channel. |
| 'camera_type' |
'default' |
string |
pre-defined |
Values for camera type. |
| 'color_space' |
['gray', 'raw', 'rgb', 'yuv'] |
string |
pre-defined |
Values for color space. |
| 'defaults' |
[1, 1, 0, 0, 0, 0, 'progressive', -1, 'default', -1.0, 'false', 'default', '-1', 0, 0]
|
mixed |
pre-defined |
Default values for open_framegrabber. |
| 'device' |
['<device_id>'] |
string |
dynamic |
Returns a list of the available device IDs. |
| 'external_trigger' |
['false', 'true'] |
string |
pre-defined |
Values for the external trigger. |
| 'field' |
[] |
|
|
Unused. |
| 'general' |
[] |
string |
pre-defined |
Information about the HALCON 1394IIDC-2 interface. |
| 'generic' |
[' ', 'num_buffers=<num>', 'phy_speed=<speed>'] |
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>'] |
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 1394IIDC-2 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 |
'1394IIDC-2' |
|
string |
Name of the HALCON interface. |
| HorizontalResolution |
1, 2, 4, <width> |
1 |
integer |
Horizontal resolution of the image sensor if CameraType is set to Format_7. The passed value gets rounded to fit the step with restriction of
this parameter (which depends on the camera).
- 1: full horizontal resolution
- 2: subsampling by factor 2
- 4: subsampling by factor 4
The horizontal offset can be set by calling
set_framegrabber_param(..,'horizontal_offset',..). If CameraType
is set to a standard format this parameter will be ignored.
|
| VerticalResolution |
1, 2, 4, <height> |
1 |
integer |
Vertical resolution of the image sensor if CameraType is set to Format_7. The passed value gets rounded to fit the step with restriction of
this parameter (which depends on the camera).
- 1: full vertical resolution
- 2: subsampling by factor 2
- 4: subsampling by factor 4
The vertical offset can be set by calling
set_framegrabber_param(..,'vertical_offset',..). If CameraType is set
to a standard format this parameter will be ignored.
|
| 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 |
-1, 8, 16 |
-1 |
integer |
Number of significant bits per channel. -1 means to adopt the value 8 or 16 according to the specified CameraType. In case of Y16 or RGB16 image
formats the pixel data will be shifted according to this parameter to ensure
that the image data is right aligned.
|
| ColorSpace |
'default', 'gray', 'raw', 'rgb', 'yuv' |
'default' |
string |
Desired color space of the resulting HALCON image. 'default' means to adopt the camera setting.
|
| Generic |
' ', 'num_buffers=<num>', 'phy_speed=<speed>', -1 |
-1 |
mixed |
Generic parameters:
- num_buffers:
With the Generic parameter 'num_buffers' the actual number of image
buffers used in the HALCON acquisition interface can be set
before the camera is initialized. Note that the parameter must
be specified as a string, e.g., 'num_buffers=5'.
Note that depending on the image size of the used camera a large
number of buffers can exceed the available memory size of your
computer.
- phy_speed:
The Isochronous Transfer Speed denotes the real physical speed that is
used to talk with the connected image device. In case that you don't
want to use the maximum bandwidth of the IEEE 1394 bus, you can
set the real physical speed via this parameter. The desired speed is
a string with the values 'phy_speed=100', 'phy_speed=200',
'phy_speed=400', and 'phy_speed=800'. Note: 'phy_speed=800' is only
available for IEEE 1394b buses. Some cameras tell the IEEE 1394 bus,
that they support 800MB/s, although they support only 400MB/s. If
the grabbing of images fails, please check the parameter 'phy_speed'.
|
| ExternalTrigger |
'false', 'true' |
'false' |
string |
Status of the external trigger. |
| CameraType |
'<format:mode:fps>', 'default' |
'default' |
string |
Specify the desired video settings in IIDC 1394 notation as a string consisting of the video format (0,1,2,7), the video mode
(0,1,2,3,4,5,6,7), and the frame rate (0,1,2,3,4,5), separated
by colons. A detailed list with all settings is described
here.
Video format 7 is the scalable image mode; here, the frame
rate depends from the chosen image size and the packet_size
parameter. For the supported modes and frame rates please see
the manual of your specific camera.
|
| Device |
'-1', 'guid' |
'-1' |
string |
Select the desired camera device: You can either do this by specifying the indices of the used adapter card and ID, or by the camera GUID. To query the
actual installed cameras you can call
info_framegrabber(...,'info_boards',...). '-1' selects the first
available device.
|
| Port |
--- |
|
|
Ignored. |
| LineIn |
--- |
|
|
Ignored. |
Note that most of the following parameters (and also the valid parameter values!) depend on the capabilities of the used
camera. Additionally, the default values of these parameters
depend on the current camera settings.
For many camera features the corresponding parameter (like 'shutter'
and 'brightness') allows to set the operation mode of this feature
by a string value:
- 'auto' means that the camera controls the value automatically by
itself.
- 'manual' activates a feature, which is off.
- 'off' fixes the specified value. In the HDevelop Image Acquisition
Assistant you can enable a feature, which is off, by setting it to
'manual'.
- 'one_push' means that the camera controls the value automatically
by itself only once and returns to manual setting by integer values.
You can request the valid minimal and maximal integer values and
the step width required for the manual setting as well as the
supported modes of these parameters by calling
get_framegrabber_param(...,'<parameter_name>_range',...).
Other parameters like 'camera_type or 'trigger_mode' support a
camera-specific set of values. This set of values can be requested
by calling
get_framegrabber_param(...,'<parameter_name>_values',...).
| Parameter |
Values |
Type |
Description |
| 'bayer_pattern' |
'bg_gr', 'gb_rg', 'gr_bg', 'rg_gb' |
string |
Bayer pattern of the camera. |
| 'brightness' |
<brightness>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Brightness mode of the camera if a string value is passed. Otherwise the brightness mode is switched to 'manual' and the brightness value is set.
|
| 'burst_count' |
0, 1 |
integer |
Setting this parameter to 1 causes the camera to use the one shot mode for grabbing images. Setting this parameter to 0 causes the camera to use the
continuous shot mode for grabbing images. Not all cameras support the one
shot mode.
|
| 'camera_type' |
'<format:mode:fps>' |
string |
Specify the desired video settings in IIDC 1394 notation as a string consisting of the video format (0,1,2,7), the video mode
(0,1,2,3,4,5,6,7), and the frame rate (0,1,2,3,4,5), separated
by colons. A detailed list with all settings is described
here.
Video format 7 is the scalable image mode; here, the frame
rate depends from the chosen image size and the packet_size
parameter. For the supported modes and frame rates please see
the manual of your specific camera.
|
| 'capture_quality' |
<capture_quality>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Capture quality mode of the camera if a string value is passed. In case of an integer value the capture quality mode is switched to 'manual' (if
supported) and the capture quality value is set.
|
| 'capture_size' |
<capture_size>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Capture size mode of the camera if a string value is passed. Otherwise the capture size mode is switched to 'manual' (if supported) and the
capture size value is set.
|
| 'color_space' |
'gray', 'raw', 'rgb', 'yuv' |
string |
Desired color space of the resulting HALCON image. |
| 'do_abort_grab' |
--- |
|
Cancel current grab. |
| 'do_reset_camera' |
--- |
|
Factory defaults of the camera. The settings induced by this parameter call depend highly on the camera.
|
| 'do_software_trigger' |
--- |
|
Forces a trigger pulse. Note that this parameter only works, if trigger source is 'software'.
|
| 'exposure' |
<exposure>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Exposure mode of the camera if a string value is passed. Otherwise the exposure mode is switched to 'manual' (if supported) and the exposure value
is set.
|
| 'external_trigger' |
'false', 'true' |
string |
Enables/disables the external trigger mode. Be aware of the settings your camera supplies.
|
| 'focus' |
<focus>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Focus mode of the camera if a string value is passed. Otherwise the focus mode is switched to 'manual' (if supported) and the focus value is
set.
|
| 'gamma' |
<gamma>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Gamma mode of the camera if a string value is passed. Otherwise the gamma mode is switched to 'manual' (if supported) and the gamma value is
set.
|
| 'grab_timeout' |
<milliseconds> |
integer |
Specify the desired timeout (milliseconds) for aborting a pending grab. If -1 is specified, the timeout is set to INFINITE.
|
| 'horizontal_offset' |
<offset> |
integer |
Row coordinate of the upper left pixel of the desired image part if Format_7 is specified.
|
| 'horizontal_resolution' |
<resolution> |
integer |
Current value of horizontal resolution. |
| 'hue' |
<hue>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Hue mode of the camera if a string value is passed. Otherwise the hue mode is switched to 'manual' (if supported) and the hue value is set.
|
| 'iris' |
<iris>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Iris mode of the camera if a string value is passed. Otherwise the iris mode is switched to 'manual' (if supported) and the iris value is set.
|
| 'optical_filter' |
<optical_filter>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Optical_filter mode of the camera if a string value is passed. Otherwise the optical_filter mode is switched to 'manual' (if supported) and the
optical_filter value is set.
|
| 'packet_size' |
<packet_size> |
integer |
Specifies the size of the transferred packets (only supported in Format_7 mode). The passed value gets rounded to the next smaller value to fit the
step width restriction of this parameter. The value specifies the bandwidth
of the isochronous channel and therefore influences the frame rate of the
camera. By default, the packet size is set automatically to the maximum
possible value.
|
| 'pan' |
<pan>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Pan mode of the camera if a string value is passed. Otherwise the pan mode is switched to 'manual' (if supported) and the pan value is set.
|
| 'register_address' |
<0x00000000 ... 0xFFFFFFFF> |
integer |
Specify the address of the register that should be set directly (as long) via the offset, e.g., 0x00000520.
|
| 'register_value' |
<0x00000000 ... 0xFFFFFFFF> |
integer |
Specify the register value that is set directly in the register specified by the 'register_address' parameter, e.g., 0x01000000. The
parameter 'register_address' must always set before using the
parameter 'register_value'.
|
| 'saturation' |
<saturation>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Saturation mode of the camera if a string value is passed. Otherwise the saturation mode is switched to 'manual' (if supported) and
the saturation value is set.
|
| 'sharpness' |
<sharpness>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Sharpness mode of the camera if a string value is passed. Otherwise the sharpness mode is switched to 'manual' (if supported) and the sharpness
value is set.
|
| 'shutter' |
<shutter>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Shutter mode of the camera if a string value is passed. Otherwise the shutter mode is switched to 'manual' (if supported) and the shutter value
is set.
|
| 'start_async_after_grab_async' |
'disable', 'enable' |
string |
By default, at the end of grab_image_async a new asynchronous grab command is automatically given to the acquisition device. If the parameter
'start_async_after_grab_async' is set to 'disable', this new grab command
is omitted.
|
| 'swap_bytes' |
'false', 'true' |
string |
In case of images with a bit depth of more than 8 bit per pixel this parameter swaps the bytes.
|
| 'target_temperature' |
<temperature>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Temperature mode of the camera if a string value is passed. Otherwise the temperature mode is switched to 'manual' (if supported) and the target
temperature value is set.
|
| 'tilt' |
<tilt>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Tilt mode of the camera if a string value is passed. Otherwise the tilt mode is switched to 'manual' (if supported) and the tilt value is set.
|
| 'trigger_delay' |
<seconds> |
float |
Trigger delay value of the camera (in seconds). |
| 'trigger_mode' |
'mode_0', 'mode_1', 'mode_2', 'mode_3', 'mode_4', 'mode_5', 'mode_14', 'mode_15'
|
string |
The trigger mode as defined in the IEEE 1394-based digital camera specification:
- mode_0: Integration time is described by shutter parameter.
- mode_1: Integration time is equal to the pulse width of the
external trigger input.
- mode_2: Integration stops after n external trigger events.
- mode_3: Camera will issue trigger internally and cycle time is a multiple
of the cycle time of the fastest frame rate Integration time is
described by shutter parameter.
- mode_4: Multiple shutter present mode. After the n-th external trigger
event integration stops. Integration time is controlled by the
shutter parameter.
- mode_5: Multiple shutter pulse width mode. After the n-th external
trigger event integration stops.
Integration time is controlled by the trigger
duration.
- mode_14 and mode_15 are vendor specific trigger modes.
n is controlled via the parameter 'trigger_parameter'.
Be aware of the settings your camera supplies.
|
| 'trigger_parameter' |
<number> |
integer |
Trigger parameter needed by the trigger modes 2 to 5: In trigger mode 2 it specifies the number of trigger input events which define the integration
time (n>1!). In trigger mode 3 it defines the cycle time as multiple of the
cycle time of the fastest frame rate (n>0!). In trigger mode 4 and 5 it
defines the number of exposures (n>0!). See IEEE 1394-based digital camera
specification for further information.
|
| 'trigger_signal' |
'low_active', 'high_active' |
string |
Trigger polarity and distinguishes whereas the rising or falling edge triggers the camera. Be aware of the settings your camera supplies.
|
| 'trigger_source' |
'line_0', 'line_1', 'line_2', 'line_3', 'software' |
string |
Trigger source as defined in the IEEE 1394-based digital camera specification. Be aware of the settings your camera supplies.
|
| 'ub' |
<ub>, 'auto', 'manual', 'off', 'one_push' |
mixed |
White balance mode of the camera if a string value is passed. Otherwise the white balance mode is switched to 'manual' (if supported) and the ub
value is set.
|
| 'vertical_offset' |
<offset> |
integer |
Column coordinate of the upper left pixel of the desired image part if Format_7 is specified.
|
| 'vertical_resolution' |
<resolution> |
integer |
Current value of vertical resolution. |
| 'video_gain' |
<video_gain>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Video gain mode of the camera if a string value is passed. Otherwise the video gain mode is switched to 'manual' (if supported) and the video gain value
is set.
|
| 'volatile' |
'disable', 'enable' |
string |
Grayscale 8bpp and 16bpp 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!
|
| 'vr' |
<vr>, 'auto', 'manual', 'off', 'one_push' |
mixed |
White_balance mode of the camera if a string value is passed. Otherwise the white_balance mode is switched to 'manual' (if supported) and the vr
value is set.
|
| 'white_shading_b' |
<blue_value>, 'auto', 'manual', 'off', 'one_push' |
mixed |
White_shading mode of the camera if a string value is passed. Otherwise the white shading mode is switched to 'manual' (if supported) and the
blue value is set.
|
| 'white_shading_g' |
<green_value>, 'auto', 'manual', 'off', 'one_push' |
mixed |
White_shading mode of the camera if a string value is passed. Otherwise the white shading mode is switched to 'manual' (if supported) and the
green value is set.
|
| 'white_shading_r' |
<red_value>, 'auto', 'manual', 'off', 'one_push' |
mixed |
White_shading mode of the camera if a string value is passed. Otherwise the white shading mode is switched to 'manual' (if supported) and the
red value is set.
|
| 'zoom' |
<zoom>, 'auto', 'manual', 'off', 'one_push' |
mixed |
Zoom mode of the camera if a string value is passed. Otherwise the zoom mode is switched to 'manual' (if supported) and the zoom value is set.
|
There may exist additional read-only parameters with the following postfixes:
- '_description': These parameters provide the tool-tip of the
corresponding parameter as a string.
- '_range': These parameters provide the minimum, maximum,
step width, and default values for the corresponding integer or float
parameter as a tuple with 4 elements, e.g.,
get_framegrabber_param(..,'Shutter_range',..) will return
the output tuple [min,max,step,default]. Optionally,
this tuple can also contain additional valid string values like
'auto' or 'manual'.
- '_values': These parameters provide the valid value list for
the corresponding parameter as a tuple, e.g.,
get_framegrabber_param(..,'volatile_values',..) will return
the output tuple ['enable','disable'].
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 |
| 'bayer_pattern' |
'bg_gr', 'gb_rg', 'gr_bg', 'rg_gb' |
'rg_gb' |
string |
pre-defined |
Bayer pattern of the camera. |
| 'bits_per_channel' |
8, 16 |
-1 |
integer |
pre-defined |
Number of significant bits per channel. |
| 'brightness' |
<brightness>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the brightness mode of the camera is returned as a string. Otherwise you get the current brightness value.
|
| 'burst_count' |
0, 1 |
0 |
integer |
dynamic |
Setting this parameter to 1 causes the camera to use the one shot mode for grabbing images. Setting this parameter to 0 causes the camera to use the
continuous shot mode for grabbing images. Not all cameras support the one
shot mode.
|
| 'camera_guid' |
'<guid>' |
|
string |
dynamic |
Global Unified Identifier (GUID) of the camera. The returned string fits the format '<hexadecimal vendor code>'.
|
| 'camera_model' |
'<model_name>' |
|
string |
dynamic |
Name of the camera model. |
| 'camera_type' |
'<format:mode:fps>' |
'default' |
string |
pre-defined |
Current camera type. |
| 'camera_vendor' |
'<vendor_name>' |
|
string |
dynamic |
Name of the camera vendor. |
| 'capture_quality' |
<capture_quality>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the capture quality mode of the camera is returned as a string. Otherwise you get the current capture quality value.
|
| 'capture_size' |
<capture_size>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the capture size mode of the camera is returned as a string. Otherwise you get the current capture size value.
|
| 'color_space' |
'gray', 'raw', 'rgb', 'yuv' |
'default' |
string |
pre-defined |
Desired color space and thus the number of image channels of the resulting HALCON image.
|
| 'device' |
'<device_id>' |
'-1' |
string |
dynamic |
Current device ID. |
| 'exposure' |
<exposure>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the exposure mode of the camera is returned as a string. Otherwise you get the current exposure value.
|
| 'external_trigger' |
'false', 'true' |
'false' |
string |
pre-defined |
Status of the external trigger. |
| 'field' |
'<default>' |
'progressive' |
string |
pre-defined |
The value is not used, so a default value is returned. |
| 'focus' |
<focus>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the focus mode of the camera is returned as a string. Otherwise you get the current focus value.
|
| 'framerate' |
<fps> |
|
float |
dynamic |
Video frame rate of the camera in frames per second. In case of Format_7 as used video format the frame rate is estimated from the image size in bytes
and the size of the transferred bytes per packet and serves as a upper
reachable bound.
|
| 'gamma' |
<gamma>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the gamma mode of the camera is returned as a string. Otherwise you get the current gamma value.
|
| 'generic' |
<default> |
-1 |
string |
pre-defined |
Set values of the Generic parameter. |
| 'grab_timeout' |
<milliseconds> |
5000 |
integer |
pre-defined |
Current grab timeout in milliseconds. |
| 'horizontal_offset' |
<offset> |
|
integer |
dynamic |
Row coordinate of the upper left pixel of the desired image part if Format_7 is specified.
|
| 'horizontal_resolution' |
1, 2, 4 |
1 |
integer |
pre-defined |
Current value of horizontal resolution. |
| 'hue' |
<hue>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the hue mode of the camera is returned as a string. Otherwise you get the current hue value.
|
| '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).
|
| 'iris' |
<iris>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the iris mode of the camera is returned as a string. Otherwise you get the current iris value.
|
| 'line_in' |
<default> |
0 |
integer |
pre-defined |
The value is not used, so a default value is returned. |
| 'name' |
'1394IIDC-2' |
|
string |
pre-defined |
Name of the HALCON interface. |
| 'num_buffers' |
<number> |
2 |
integer |
pre-defined |
Number of buffers used for the image acquisition. |
| 'optical_filter' |
<optical_filter>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the optical filter mode of the camera is returned as a string. Otherwise you get the current optical filter value.
|
| 'packet_size' |
<packet_size> |
|
integer |
dynamic |
Specifies the size of the transferred packets (only supported in Format_7 mode). The passed value gets rounded to the next smaller value to fit the
step width restriction of this parameter. The value specifies the bandwidth
of the isochronous channel and therefore influences the frame rate of the
camera. By default, the packet size is set automatically to the maximum
possible value.
|
| 'pan' |
<pan>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the pan mode of the camera is returned as a string. Otherwise you get the current pan value.
|
| 'phy_speed' |
<speed> |
|
integer |
pre-defined |
Real physical speed that is used to talk with the connected image device, see also parameter Generic in open_framegrabber.
|
| 'port' |
<default> |
0 |
integer |
pre-defined |
The value is not used, so a default value is returned. |
| 'register_address' |
<0x00000000 ... 0xFFFFFFFF> |
|
integer |
dynamic |
Specify the address of the register that should be set directly (as long) via the offset, e.g., 0x00000520.
|
| 'register_value' |
<0x00000000 ... 0xFFFFFFFF> |
|
integer |
dynamic |
Specify the register value that is set directly in the register specified by the 'register_address' parameter, e.g., 0x01000000. The
parameter 'register_address' must always set before using the
parameter 'register_value'.
|
| 'revision' |
'<revision>' |
|
string |
pre-defined |
Revision number of the 1394IIDC-2 interface. |
| 'saturation' |
<saturation>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the saturation mode of the camera is returned as a string. Otherwise you get the current saturation value.
|
| 'sharpness' |
<sharpness>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the sharpness mode of the camera is returned as a string. Otherwise you get the current sharpness value.
|
| 'shutter' |
<shutter>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the shutter mode of the camera is returned as a string. Otherwise you get the current shutter value.
|
| 'start_async_after_grab_async' |
'disable', 'enable' |
'enable' |
string |
pre-defined |
Status of 'start_async_after_grab_async'. |
| '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. |
| 'swap_bytes' |
'false', 'true' |
'true' |
string |
pre-defined |
In case of images with a bit depth of more than 8 bit per pixel this parameter swaps the bytes.
|
| 'target_temperature' |
<temperature>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the temperature mode of the camera is returned as a string. Otherwise you get the current temperature value.
|
| 'temperature' |
<temperature> |
|
integer |
dynamic |
Current temperature value. |
| 'tilt' |
<tilt>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the tilt mode of the camera is returned as a string. Otherwise you get the current tilt value.
|
| 'trigger_delay' |
<seconds> |
|
float |
dynamic |
Trigger delay value of the camera (in seconds). |
| 'trigger_mode' |
'mode_0', 'mode_1', 'mode_2', 'mode_3', 'mode_4', 'mode_5', 'mode_14', 'mode_15'
|
|
string |
dynamic |
Current trigger mode. |
| 'trigger_parameter' |
<number> |
|
integer |
dynamic |
Current trigger parameter. |
| 'trigger_signal' |
'low_active', 'high_active' |
|
string |
dynamic |
Trigger polarity and distinguishes whereas the rising or falling edge triggers the camera. Be aware of the settings your camera supplies.
|
| 'trigger_source' |
'line_0', 'line_1', 'line_2', 'line_3', 'software' |
|
string |
dynamic |
Trigger source as defined in the IEEE 1394-based digital camera specification. Be aware of the settings your camera supplies.
|
| 'ub' |
<ub>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the white balance mode of the camera is returned as a string. Otherwise you get the current ub value.
|
| 'used_bandwidth' |
<percent> |
|
integer |
dynamic |
Shows the current bandwidth usage of the 1394 IIDC bus in percent. |
| 'vertical_offset' |
<offset> |
|
integer |
dynamic |
Column coordinate of the upper left pixel of the desired image part if Format_7 is specified.
|
| 'vertical_resolution' |
1, 2, 4 |
1 |
integer |
pre-defined |
Current value of vertical resolution. |
| 'video_gain' |
<video_gain>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the video gain mode of the camera is returned as a string. Otherwise you get the current video gain value.
|
| 'volatile' |
'disable', 'enable' |
'disable' |
string |
pre-defined |
Grayscale 8bpp and 16bpp 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!
|
| 'vr' |
<vr>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the white balance mode of the camera is returned as a string. Otherwise you get the current vr value.
|
| 'white_shading_b' |
<blue_value>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the white shading mode of the camera is returned as a string. Otherwise you get the current white shading blue value.
|
| 'white_shading_g' |
<green_value>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the white shading mode of the camera is returned as a string. Otherwise you get the current white
shading green value.
|
| 'white_shading_r' |
<red_value>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the white shading mode of the camera is returned as a string. Otherwise you get the current white shading red value.
|
| 'zoom' |
<zoom>, 'auto', 'manual', 'off', 'one_push' |
|
mixed |
dynamic |
If mode is not set to 'manual', the zoom mode of the camera is returned as a string. Otherwise you get the current zoom value.
|
Not supported by this interface.
Not supported by this interface.
Not supported by this interface.
Not supported by this interface.
grab_image starts a new synchronous grab. See also grab_image. Note that
the interface converts the image from the device to the desired image format
specified by the parameters 'image_width', 'image_height', 'start_row',
'start_column', 'bits_per_channel', and 'color_space'.
grab_image_async returns an image and starts the next asynchronous grab. See also grab_image_async.
Note that
the interface converts the image from the device to the desired image format
specified by the parameters 'image_width', 'image_height', 'start_row',
'start_column', 'bits_per_channel', and 'color_space'.
Not supported by this interface.
Not supported by this interface.
HDevelop ExamplesFor this interface there are the following examples available:
- 1394iidc2.hdev -
Benchmark.
- 1394iidc2_2cameras.hdev -
Concurrent grabbing from two connected cameras.
- 1394iidc2_camera_types.hdev -
Query and use all supported camera types.
- 1394iidc2_crop.hdev -
Grabbing images using software cropping.
- 1394iidc2_parameters.hdev -
Lists all parameters of a device.
- 1394iidc2_register_access.hdev -
Example for using direct register access.
- 1394iidc2_simple.hdev -
A simple example to show the usage of the interface.
Release Notes
- Revision 5.0 (May 15, 2012):
- Revision 4.1 (Jul 27, 2011):
- Adapted to new versions of the underlying system libraries
libraw1394 and libdc1394 to support the new FireWire kernel
drivers firewire-ohci and firewire-core. Note that the
interface currently only works together with the new drivers,
i.e., it cannot be used together with devices connected to
/dev/raw1394 and /dev/video1394.
- Added generic parameter 'phy_speed'.
- Revision 4.0 (Mar 17, 2010):
- HALCON 10 version of the interface (included in HALCON 10 DVD).
- First official release.
|