135 questions
0
votes
0
answers
36
views
Halcon Roi drawing mode cant be terminated
when i try to use halcon api drawing roi in qt,i must use left click to end drawing.If i directly close the viewer of drawing roi,the whole program gonna be forzened,cause the drawing isnt ended.I ...
0
votes
1
answer
32
views
How to lock *.hdpl package to changes, but leave the code visible?
We have a Halcon library where each procedure is saved as *.hdvp and releases are generated as *.hdpl packages that are copied into projects. The problem is that user can modify *.hdpl package inside ...
0
votes
0
answers
49
views
Halcon - every program/procedure i open is read only
I am using Halcon12 as we need to edit a old version of a software. For some reason suddenly every program or procedure I open is partially read only and every empty line is marked with an "*&...
0
votes
1
answer
138
views
How to fit a region into another region?
I'm new to Halcon and I can't figure out a way to match the scaling, rotation, and translation of one region to that of another region.
Currently, I'm trying to find a way to get a HHomMat2D ...
0
votes
1
answer
769
views
HALCON + C# - How can show selected objects with Halcon procedure in WinForms program?
I'm trying to create a WinForms program that shows the result of Halcon procedure. This procedure (for now) is a variation of detect_mura_defects_texture, which I have adapted to become a hdvp.
The ...
1
vote
1
answer
128
views
Halcon: numLevels parameter of FindNccModel has problem
If set numLevels to 'auto' and minScore = 0.99, it cannot find the model created on the same image.
Change the minScore to 0.8, get a result with score 1
It seems the minScore didn't work good on ...
0
votes
0
answers
145
views
Scratch defection detection in a random background
normaly when scratch exist product surface, the value of pixes are different from its background, but when background like random noise it's difficult distinguish scratch defect from background.
src ...
0
votes
1
answer
167
views
How to multiply Matrix with Vector in Halcon?
I am trying to multiply 4x4 transformation matrix with a Point Vector(4x1) in Halcon. Which command should i use since so far i haven't found anything
I tried to multiply with with hom_mat3d_compose ...
0
votes
1
answer
258
views
Create pose-array in Halcon
Ive seen a pose array a few times generated by a Halcon procedures like find_surface_model.
When I try to create one myself I cant get it to work.
I tried tuple_concat() and a few array notation ...
0
votes
1
answer
176
views
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 (...
0
votes
2
answers
639
views
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
...
0
votes
1
answer
331
views
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 ...
1
vote
2
answers
540
views
Multithreading computationally heavy tasks in HalconDotNet
For a project with a very large database I am using the following two procedures thousands of times in a loop:
select_points_object_model_3d()
render_object_model_3d()
This takes hours and hours for ...
0
votes
1
answer
395
views
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 ...
0
votes
1
answer
388
views
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 ...
0
votes
0
answers
185
views
Encoding point cloud data to unsigned char* and decoding (Halcon-MongoDB)
i am writing a code in C++ that acquires data from a 2D or 3D sensor (for example Photoneo XL) and has the aim to save the image/point cloud in MongoDB through Gridfs(this requires to serialize the ...
0
votes
1
answer
241
views
Render RGB pointcloud together with surface match result
(HalconDotNET)
I want to render an image from a visualized match result with a colored pointcloud.
In the example program find_surface_model_with_edges_simple.hdev after running find_surface_model() ...
1
vote
1
answer
255
views
Extract grid data from noisy image in Halcon
I am trying to get clean grid data from this image (don't mind the tilt, it is incidental).
This means no noisy dots and a uniform grid representing the situation. I am doing fairly well using ...
0
votes
2
answers
257
views
Render pointcloud parts from the same perspective
When slicing a objectModel3D into horizontal layers using select_points_object_model_3d and rendering these layers using render_object_model_3d(), I noticed that smaller parts of the bigger pointcloud ...
0
votes
1
answer
320
views
Halcon - Create hom_mat3D from data / Ajust existing hom_mat3D data
I am trying to create a Halcon homogeneous transformation matrix with data aquired from another process. I will be using it to generate a pose, which in turn will be used for rigid transformation.
The ...
0
votes
1
answer
354
views
Halcon - extract object from low contrast noisy image
I have this image:
and would need to get the region of the crate. like this:
I have not been able to get a clean selection so far. I tried thresholding the image, tried after adding some mult_image, ...
-1
votes
1
answer
1k
views
Sending image from HALCON to Python
I want to take a picture of an object in HALCON and send it to Python. I will process the image there and send the result back to HALCON. So far, I wrote/found the code below and was successful to ...
0
votes
2
answers
3k
views
Halcon: Cannot connect wth camera in C#
I started working on a project with Halcon and initially I used HDevelop 21.11 Progress version.
Recently I imported the code to C# using MVTec.HalconDotNet NuGet package but I'm having issues when ...
0
votes
1
answer
342
views
How can I remove duplicate points, And draw a diagram with X and Z axes in Halcon (MVTEC Software)?
I am doing a project where I need to draw a laser line image on a graph. I got the coordinates of the laser points. I am going to draw a two-dimensional graph in the Halcon (MVTEC software) using ...
0
votes
1
answer
584
views
HALCON - How to read low resolution ECC200 datacode in halcon?
I have the need to read this low quality ECC code using halcon 20.
I have tried all possible parameters but cannot find any combination that is able to read this code.
What seems strange to me is that ...