When debugging halcon code with VC\C#, we usually encounter a headache, we cannot see the debugging information of halcon variables

What the hell… What the devil

 

Let’s say we want to look at a double, we need to

  1. double score = htScore.D()

Or when we want to see the intermediate result of an image or region, we need to save the file or export it to a window

It is so tedious that it greatly reduces the development efficiency.

 

However, these worries have been solved in halcon12!

New in halcon12: support for Visual Studio Visual debugging plug-ins.

Prerequisite: VS2010 or later

The plugin directory: %HALCONROOT%/misc/halcon_variable_inspect.vsix, find it and double-click install

My directory is: C:\Program Files\MVTec\ Halcon-12.0 \misc

 

Take VS2012 as an example to explain how it is used

 

1. Bring up the plug-in: Select Tool ->HALCON Variable Inspect

 

 

 

2. After calling up, the HALCON Variable Inpsct window will appear, and the local Variable of the current debugging position will be displayed automatically at the top

You can see the variable information at the bottom. Do you have any! Images, contours, arrays, and everything in halcon can be displayed!

 

3. By default, only variables defined in the current debugging function are listed. If you want to view all variables, etc

Mouse select Variable, then right-click HALCON Variable Inspect.

 

 

Summary: Is it convenient? Now is the last step! Turn up! Let more friends know!