Questions tagged [halcon]

Halcon (proprietary notation: HALCON) is a proprietary library of algorithms for image processing and machine vision. The software is developed by the Munich company MVTec.

Halcon (proprietary notation: HALCON) is a proprietary library of algorithms for image processing and machine vision. The software is developed by the Munich company MVTec.

The Halcon library provides about 2000 different operators and provides interfaces to many cameras and frame grabbers. It is designed for operation on multicore systems and for GPGPU.

Halcon is used predominantly in industrial and medical applications. Similar proprietary libraries include the Cognex Vision Library and the Matrox Imaging Library.

The IDE uses the proprietary HDevelop. Otherwise, there is also an extension for Microsoft Visual Studio.

128 questions
0
votes
0 answers

How can I find image points for given world points in Halcon using a line scan camera?

In Halcon with a line scan camera, I've got my image points to world points with the command image_points_to_world_plane. But is there a inverse, so if I have the world points that I can get the image points of those? I've tried pose_to_hom_mat3d…
Dion
  • 1
0
votes
1 answer

Halcon.NET region loses data / Region is cropped unintentionally

I encountered strange behaviour in Halcon.NET that I am trying to understand. I have ~100 regions and I want to merge the ones that overlap. To merge the regions I use Union1() and then Connection() to separate non-overlapping ones. But in the…
Malinko
  • 124
  • 11
0
votes
0 answers

Halcon hand-eye calibration error is very large

I am trying to use Halcon to calibrate the hand and eye on the UR10. The robot pose type is zyx/abg. After calibration, it shows Inconsistent pose pairs and then produces a large error. Sometimes it will show 'Only few tilted robot poses available,…
L VD
  • 1
0
votes
1 answer

Overpaint 3D Coordinate System arrows in image

How can I paint 3D orientation arrows onto an image in Halcon to illustrate the orientation of a pointcloud I'm rendering? First I figured I would generate a 2D image of the arrows, rotate as needed (pointcloud will only rotate over z-axis) and just…
Malinko
  • 124
  • 11
0
votes
0 answers

AccesViolationException when using Marshal.ReadByte()

I'm trying to convert an Halcon object to a bitmap and found this piece of code online: https://github.com/Joncash/HanboAOMClassLibrary/blob/master/Hanbo.Helper/ImageConventer.cs /// /// Halcon Image .NET Bitmap /// ///
Armitius
  • 1
  • 1
0
votes
0 answers

Standard Halcon example gives abormal program termination (4 or 11) with HDevelop 22.11

I am trying to run the following template script in HDevelop 22.11 Progress. But I keep getting either the following error: Abnormal program termination: Received signal 11 and Abnormal program termination: Received signal 4 I have been unable to…
Lars Nielsen
  • 2,005
  • 2
  • 25
  • 48
0
votes
2 answers

Convert HImage to byte[] as File.ReadAllBytes() does with .png

HalconDotNet.HOperatorSet.ReadImage(out HObject image, srcPath); //... //(graphic stuff) //... HalconDotNet.HOperatorSet.WriteImage(imagePart, "png", 0, tmpImgPath); // skip these steps Image = File.ReadAllBytes(path) …
Malinko
  • 124
  • 11
0
votes
0 answers

Hdevelop Deep Learning Code Error (User defined exception ('throw') (HDevelop error code: 21001))

I'm new to MVTec Halcon Deep Learning, I labelled my images and exported a hdict. file with MVTec Deep Learning Tool, then I tried to change some code of "classify_pill_defects_deep_learning_1_preprocess" Halcon example code, when it reached…
0
votes
1 answer

Generate camera parameters in HalconDotNet

In Halcon one can: gen_cam_par_area_scan_polynomial (0.008, 0, 0, 0, 0, 0, 5.2e-006, 5.2e-006, 640, 512, 1280, 1024, CameraParam) to get the required camera parameters. In HalconDotNet (C#) this function does not exist, how can one generate camera…
Malinko
  • 124
  • 11
0
votes
1 answer

Hsmartwindow doesnt show image in .net program on production pc

My first stack overflow question, here we go. Last week the computer on which a prototype vision application written in C#/.net was running crashed due to an unreleated reason. this resulted in the need to fresh install windows (windows 10 IOT).…
casper
  • 1
  • 1
0
votes
1 answer

HalconDotNet - Check if Halcon variable is empty or uninitialized

Is there a proper way of checking if a variable is uninitialized or empty? As a workaround I've been comparing with results from gen_empty_obj to see if its empty, but I have no idea how to check if a variable was initialized.
Malinko
  • 124
  • 11
0
votes
2 answers

How to Serialize HTuple in C#?

Define the class: [Serializable] public class HalconConfig { public HTuple mNumber; public HObject mImage; public HalconConfig() { mNumber = 6; …
0
votes
1 answer

HalconDotNet - Converting HtupleVector to int in C#

From my Halcon procedure I receive a HtupleVector with coordinates that looks like: {{[900, 200], [300, 200], [600, 700], [1000, 700], [200, 700]}} I want to use these values in C# as integers so I tried the following: for (int i = 0; i <…
Malinko
  • 124
  • 11
0
votes
1 answer

Preserve local procedures when creating a procedure file from source + local procedures

This pseudo source is the layout of my Halcon application: [sourceCode] [sourceCode] [sourceCode] [localProcedure] [sourceCode] [localProcedure] [sourceCode] When I create a procedure file (.hdvp) of the above pseudo source the local procedure's…
Malinko
  • 124
  • 11
0
votes
1 answer

HalconDotNET remote debugging exported library functions

When using StartDebugServer it is possible to enable remote debugging of your application like shown here. HaEngine = new HDevEngine(); HaEngine.StartDebugServer(); When using an exported library it gives you a wrapper .cs file that does not use a…
Malinko
  • 124
  • 11
1 2 3
8 9