Captura de imágenes en HALCON

Esta nota de aplicación (en inglés) describe la forma de captar imágenes con una cámara IDS GigE Vision y HALCON. Dado que la instalación HALCON incluye su propia capa de transporte compatible con GigE Vision, no es necesario utilizar ningún software adicional específico de fabricante. No obstante, el empleo del paquete de software IDS Vision Suite conlleva algunas ventajas interesantes que describimos en esta nota de aplicación.

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