Fishbone.Plugins.Halcon24111
0.1.0-alpha.2
dotnet add package Fishbone.Plugins.Halcon24111 --version 0.1.0-alpha.2
NuGet\Install-Package Fishbone.Plugins.Halcon24111 -Version 0.1.0-alpha.2
<PackageReference Include="Fishbone.Plugins.Halcon24111" Version="0.1.0-alpha.2" />
<PackageVersion Include="Fishbone.Plugins.Halcon24111" Version="0.1.0-alpha.2" />
<PackageReference Include="Fishbone.Plugins.Halcon24111" />
paket add Fishbone.Plugins.Halcon24111 --version 0.1.0-alpha.2
#r "nuget: Fishbone.Plugins.Halcon24111, 0.1.0-alpha.2"
#:package Fishbone.Plugins.Halcon24111@0.1.0-alpha.2
#addin nuget:?package=Fishbone.Plugins.Halcon24111&version=0.1.0-alpha.2&prerelease
#tool nuget:?package=Fishbone.Plugins.Halcon24111&version=0.1.0-alpha.2&prerelease
Fishbone.Plugins.Halcon24111
Calls MVTec HALCON 24.11 from Fishbone scripts. It needs HALCON installed.
HalconOperatorPluginregisters every HALCON operator under its HDevelop name, likeread_imageoraffine_trans_point_2d.HalconProcedurePluginregisters the HDevelop procedures (.hdvp) in one or more folders. Registering again doesn't re-read them, so callHalconProcedurePlugin.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 | Versions 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. |
-
net10.0
- Fishbone (>= 0.1.0-alpha.2)
- MVTec.HalconDotNet (>= 24111.0.0)
-
net8.0
- Fishbone (>= 0.1.0-alpha.2)
- MVTec.HalconDotNet (>= 24111.0.0)
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 |