In HALCON/.NET all HALCON operators and data structures are available
as high-level classes, greatly simplifying the development
of your application. HALCON/.NET can be used in .NET languages
like C#, Visual Basic .NET, and C++. It can be used on Windows
and with Mono also on Linux.
private void timerCycle_Tick(object sender, System.EventArgs e)
// Create instance of reader without special parameters
HBarCode reader = new HBarCode(new HTuple(), new HTuple());
// Acquire next image
HImage image = acquisition.GrabImage();
// Find and decode bar codes of type EAN 13
HRegion regions = reader.FindBarCode(image, "EAN-13", out results);
if (results.Length > 0)
// Display image and bar code regions in graphics window
// Display decoded result of first found bar code in a text box
textBoxCode.Text = results;
textBoxCode.Text = "Not found!";
// Cleanup (could also be done using the garbage collector)
With only a few lines of
C# code you can build the entire application,
e.g., to decode bar codes.
HALCON variables can be inspected directly
within Visual Studio
With HALCON/C++ you can access the whole functionality of HALCON
based on a C++ class hierarchy. This enables you to develop programs
that are very compact and easy to maintain. HALCON/C++ is available
on Windows, Linux, and OS X.
If you develop your solution with the interactive rapid prototyping
is very easy, since HDevelop
export your application as C++, C, C#, or Visual Basic source code.
"HDevelop Engine" – is a library that acts as an interpreter and
lets you directly load and execute HDevelop programs and procedures
from within your C++, C#, or Visual Basic application. This allows
you to change the vision part of your application without the need
of compiling it.
HALCON not only supports multithreading and parallel programming,
but also provides automatic parallelization to exploit
the power of multi-core or multiprocessor hardware.
Read more about
HALCON supports debugging efforts of software developers tremendously.
Using HALCON's extension for Visual Studio, C++ and C#/.NET developers
can inspect HALCON variables (tuples and iconic) directly within
Protection of Know-how
HALCON secures the know-how of the software developer: code, which is
saved in external or local procedures, as well as code of entire
procedure libraries or programs can be secured with a password.
Therefore, functionality can be shared without revealing the