Fishbone.Plugins.Halcon24111 0.1.0-alpha.2

This is a prerelease version of Fishbone.Plugins.Halcon24111.
dotnet add package Fishbone.Plugins.Halcon24111 --version 0.1.0-alpha.2
                    
NuGet\Install-Package Fishbone.Plugins.Halcon24111 -Version 0.1.0-alpha.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fishbone.Plugins.Halcon24111" Version="0.1.0-alpha.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fishbone.Plugins.Halcon24111" Version="0.1.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="Fishbone.Plugins.Halcon24111" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fishbone.Plugins.Halcon24111 --version 0.1.0-alpha.2
                    
#r "nuget: Fishbone.Plugins.Halcon24111, 0.1.0-alpha.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fishbone.Plugins.Halcon24111@0.1.0-alpha.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fishbone.Plugins.Halcon24111&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fishbone.Plugins.Halcon24111&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Tool

Fishbone.Plugins.Halcon24111

Calls MVTec HALCON 24.11 from Fishbone scripts. It needs HALCON installed.

  • HalconOperatorPlugin registers every HALCON operator under its HDevelop name, like read_image or affine_trans_point_2d.
  • HalconProcedurePlugin registers the HDevelop procedures (.hdvp) in one or more folders. Registering again doesn't re-read them, so call HalconProcedurePlugin.Reload(folders) after the files change.
  • Both show images, regions and XLD contours in the debugger.

A call reads like in HDevelop, in the same order, with out on the outputs:

read_image(out image, "fabrik");
threshold(image, out region, 128, 255);
count_obj(region, out n);

Tuples

A control output is a HALCON tuple, and it comes back as an ordinary script value. What you get depends on how many elements it has:

Elements Script value
none null
one the value itself: a long, a double or a string. A handle, like a dictionary, stays an HTuple
two or more a list of them, with each handle a one-element HTuple

So the same line gives a different kind of value depending on the image. With one region, area_center(regions, out areas, out rows, out cols) makes areas a number, and foreach (a in areas) fails, since a number isn't something to loop over. With none, areas is null.

This is deliberate. The plugin doesn't guess, and a script handles it the way HDevelop or C# code does: take the count from the objects, and pick each element with tuple_select. That works for none, one or many:

area_center(regions, out areas, out rows, out cols);
count_obj(regions, out n);
for (i in 0, n) {
    tuple_select(areas, i, out area);
    println(area);
}

Going the other way, a script list becomes a tuple, and [] is the empty tuple.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.2 33 10/10/2026
0.1.0-alpha.1 293 8/28/2026