应用HALCON软件,通过支持集成传输层或IDS视觉套件的IDS GigE视觉相机进行图像采集。

使用HALCON软件采集图像

此应用手册(英文)纪载了如何使用IDS GigE 视觉相机以及HALCON机器视觉软件来获取图像。由于安装HALCON包含了其自有的GigE Vision Standard 的传输层,所以不需要使用制造商另外提供的特定软件。但是使用IDS Vision Suite 搭配IDS GigE Vision的相机提供用户更多的相机功能,此应用手册将会详细说明。

Camera connection via HDevelop image acquisition assistantConfigurator

Start HDevelop and use the image acquisition assistant to open a connected IDS GigE Vision camera

Figure 1: Open the HALCON image acquisition assistant
Figure 1: Open the HALCON image acquisition assistant

In the ‘Source’ tab HALCON gives you the choice to connect cameras with different interfaces. When pressing ‘Auto-detect Interfaces’ (see Figure 2, No. 1) HALCON probes and lists only those interfaces in the dropdown list that correspond to your connected camera.

The HALCON installation includes an own GigE Vision interface library. (see Figure 2, No. 2) Using this HALCON GenTL (GenICam Tranport Layer), it’s not necessary to install any specific camera manufacturer software.

 

Figure 2: Choose the acquisition interface
Figure 2: Choose the acquisition interface

Figure 3: HDevelop suggest to force a valid IP configuration
Figure 3: HDevelop suggest to force a valid IP configuration

Open the IDS GigE Vision camera

With the ‘Connection’ tab you can choose a connected IDS camera. The device is represented with an ID which is composed of cameras MAC address and its device name (see Figure 4, No.2).

The device may be reported as misconfigured. In this case, the device icon will show this symbol:

Figure 4: Connection assistant to choose a camera device
Figure 4: Connection assistant to choose a camera device

If you select such a device, the assistant may suggest a generic parameter that potentially resolves the misconfiguration. (for example by using the ‘GtlForceIP’ parameter).

With pressing ‘Connect’, the camera will be opened. Then you are able to set additional camera parameter in the ‘Parameters’ tab or see a ‘Live’ preview of the camera.

Generate HALCON script to acquire images

With the ‘Code Generation’ tab you can generate HALCON script code for using the camera with chosen parameters in HDevelop for your machine vision project.

Figure 5: Generate HALCON code for acquiring images
Figure 5: Generate HALCON code for acquiring images

Generated HALCON code can look like this:

Figure 6: Generated camera acquisition code
Figure 6: Generated camera acquisition code

Figure 7: HALCON has also a GenICam interface for external transport layers
Figure 7: HALCON has also a GenICam interface for external transport layers