MVTec Software GmbH
  Building Vision For Business
Halcon

HALCON 7.0 Frame Grabber Interface for Baumer Optronic IEEE 1394 Cameras

This page provides the documentation of the HALCON BaumerFCAM interface for Baumer Optronic IEEE 1394 cameras. Registered customers can download the latest revision of this interface from the MVTec WWW server.

Revision: 2.5

System Requirements

  • Intel compatible PC with Windows 2000 (SP4) or Windows XP (SP1) and OHCI-compliant IEEE 1394 adapter card.
  • Successfully installed Baumer Optronic Firewire driver (version 1.15.0.0 or higher).
  • Baumer Optronic Firewire access DLL FxLib.dll (version 5.0.3.70 or higher).
    This DLL must be within your search path %PATH%. If you do not have this DLL, please contact Baumer Optronic or the vendor from which you bought the Baumer Optronic driver.
  • HALCON frame grabber interface HFGBaumerFCAM.dll or parHFGBaumerFCAM.dll, respectively.
    If you have properly installed the interface, both DLLs should reside in bin\i586-nt4 within the HALCON base directory %HALCONROOT% you have chosen during the installation of HALCON.

Features

  • Supports IEEE 1394-based Baumer Optronic camera series.
  • Synchronous and asynchronous grabbing.
  • External camera triggering.
  • Realtime image format switching (e.g., binning modes).
  • Software control of a variety of camera parameters.
  • Support of image cropping, brightness correction, and white balancing.
  • Setting of LUTs.

Limitations

  • Image cropping (partical scan mode) cannot be applied together with binning modes.
  • Bus reset is not supported.
  • grab_region and grab_region_async not supported.

Description

Parameters for open_framegrabber():

Name 'BaumerFCAM' The name of the HALCON frame grabber interface.
HorizontalResolution --- Ignored.
VerticalResolution --- Ignored.
ImageWidth 0, width The width of the desired image part ('0' stands for the complete image). Default: 0.
ImageHeight 0, height The height of the desired image part ('0' stands for the complete image). Default: 0.
StartRow 0, row The row coordinate of the upper left pixel within the desired image part ('0' obviously results in delivering the complete image). Default: 0.
StartColumn 0, column The column coordinate of the upper left pixel within the desired image part ('0' obviously results in delivering the complete image). Default: 0.
Field --- Ignored.
BitsPerChannel 8, 10, 12 The number of bits per channel. By specifying a value greater than 8 the grabbed images are delivered as uint2 images. Default: 8.
ColorSpace 'gray', 'rgb', 'default' Color space of the resulting HALCON image. 'default' means to adopt the supplied camera color space. Default: 'default'.
Gain 1.0 ... max Hardware gain setting of the camera.
ExternalTrigger 'true', 'false' Activate/ deactivate external triggering. Default: 'false'.
CameraType --- Ignored.
Device 'serial_number', 'default' The serial number of the desired camera device. You can obtain the serial numbers of all available cameras by the 'info_boards' parameter of the info_framegrabber operator. If 'default' is specified the Port parameter is used to specify the desired camera.
Default: 'default'.
Port 0, 1, ... The number of the camera as found on the IEEE 1394 bus if the parameter Device is set to 'default'. Default: 0 (searches for the first camera).
LineIn --- Ignored.

Parameters for set_framegrabber_param():

Note that most of the following parameters (and also the valid parameter values!) depend on the capabilities of the used camera. Furthermore, the default values may depend on the current camera settings.

'brightness_correction' 'true', 'false' Enables/disables the brightness correction (only necessary in combination with binning modes).
'continuous_grabbing' 'enable', 'disable' Enables/disables the continuous grabbing mode. If the continuous grabbing mode is enabled, the camera grabs all the time. In this mode the operator grab_image does not grab synchronously, but behaves similar to grab_image_async. Using this mode you can achieve full frame rate. If the continuous grabbing mode is disabled, the camera is set to single frame capture by using the software trigger mode. Please note that this parameter influences the 'external_trigger' setting. Default: 'enable'.
'do_force_trigger' --- Forces the camera to snap an image when the camera is in trigger mode ("software trigger").
'dual_output' 'true', 'false' If set to 'true', the dual readout of the camera is enabled (when available).
'external_trigger' 'true', 'false' Enables/disables the trigger mode.
'flash_invert' 'true', 'false' Specifies whether the flash signal is inverted.
'flash_mode' 'enable', 'disable' Enables/disables the flash mode.
'gain' value Sets the desired gain value of the camera (specified as a float!).
'grab_timeout' msec Specify the desired timeout (milliseconds passed as a long) for aborting a pending grab. -1 means to abort never. Default: 5000.
'image_format' 'format' Specify the desired image format. The supported image formats of the camera can be requested by using the 'image_format_values' parameter of the get_framegrabber_param operator.
'image_height' -1, min ... max Specify the desired height of the grabbed image. The value -1 means to adopt the maximal possible image height.
'image_part' [row1, col1, row2, col2] Specifiy the upper left (row1, col1) and lower right (row2, col2) corner of the desired image part. Note that the image width will be adapted to a value which is divisible by 4; in addition, in case of color images the upper left corner will be adapted to a value which is divisible by 2. The value -1 means to adopt the minimal (or maximal, respectively) possible value.
'image_width' -1, min ... max Specify the desired width of the grabbed image (the value will be adapted to a value which is divisible by 4). The value -1 means to adopt the maximal possible image width.
'offset' min ... max Specify the black level offset of the camera.
'shutter' usec Specify the desired shutter value of the camera (microseconds passed as a long).
'shutter_mode' 0, 1, 2, 3 Specify the desired shutter mode of the camera (passed as a long):
  • 0: leaves current state (default mode of camera)
  • 1: rolling shutter mode
  • 2: sequential shutter mode
  • 3: overlapped shutter mode
'start_column' 0 ... max Specify the column coordinate of the upper left corner of the image part.
'start_row' 0 ... max Specify the row coordinate of the upper left corner of the image part.
'test_image' 'true', 'false' If set to 'true' each succeeding image grab will deliver a test pattern.
'trigger_signal' 'rising', 'falling' Sets the trigger polarity and distinguishes whereas the rising or falling edge triggers the camera. Default: 'rising'.
'volatile' 'enable', 'disable' Grayscale 8bpp only! In the volatile mode the two 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!
'white_balance' 'true', 'false' Enables/disables the automatic white balancing.
'white_balance_factors' [r, g, b] Specify the three scaling factors (float values!) for the red, green, and blue channel. Note that this setting disables the automatic white balancing.

Parameters for get_framegrabber_param():

Additional parameters supported by get_framegrabber_param only. Note that all parameters supported by set_framegrabber_param except the ones with prefix 'do_' can also be accessed by get_framegrabber_param.

'camera_model' model_name (string) Model type of the connected camera.
'camera_serial_number' serial_number (string) Serial number of the connected camera.
'camera_vendor' vendor_name (string) Vendor name of the connected camera.
'gain_range' [min (float),
max (float),
step_width (float),
current_value (float)]
Supported range of the 'gain' parameter. The four elements are the minimal and maximal gain value, the step width, and the current gain value.
'image_available' 0, 1 Returns the status of the last asynchronous grab command. The value 1 means that the image is already acquired and thus can be fetched by grab_image_async without delay. Note that this parameter is especially useful in combination with external triggering.
'image_format_values' [<list of supported formats> (string)] Supported image formats of the connected camera.
'offset_range' [min (long),
max (long),
step_width (long),
current_value (long)]
Supported range of the 'offset' parameter. The four elements are the minimal and maximal offset value, the step width, and the current offset value.
'shutter_range' [min (long),
max (long),
step_width (long),
current_value (long)]
Supported range of the 'shutter' parameter. The four elements are the minimal and maximal shutter value, the step width, and the current shutter value.
'revision' revision (string) The revision number of the HALCON BaumerFCAM interface.

Lookup Tables:

Lookup tables can be set using the operators set_framegrabber_lut. The BaumerFCAM cameras use 4096 entries per LUT, which are passed as an array of integers. When using RGB input, three arrays are needed, in case of monochrome cameras only the values for the red channel are used.

Release Notes

  • Revision 2.5 (Feb, 20 2007):
    • New parameters 'continuous_grabbing', 'image_available' and 'shutter_mode'.
  • Revision 2.4 (Aug 14, 2006):
    • Adaptation to FxLib version 5.0.3.70.
    • New parameter 'dual_output'.
  • Revision 2.3 (Jul 27, 2005):
    • Speed-up for acquisition of RGB images (avoiding cache alignment failures when converting the interleaved image data into HALCON image objects).
  • Revision 2.2 (Sep 23, 2004):
    • Bugfix in repeatedly initializing multiple cameras.
    • Bugfix in setting parameters 'start_row' and 'start_column'.
    • New parameter 'do_force_trigger'.
  • Revision 2.1 (Aug 12, 2004):
    • New parameters 'flash_invert' and 'flash_mode'.
  • Revision 2.0 (Jul 9, 2004):
    • First official release.
© Copyright 2008, MVTec Software GmbH, corporate/legal/privacy information