Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

make calibration to image without using vision assistant

Hi every one

I want to make calibration to image from front panel while the program running 

I achived to enable user to draw line or draw to points on image , then the program return the distance between two points or the line lenght 

my calibration is linear and very simple

I tried to use (IMAQ set simple calibration 2.vi) but I didn't know, what I should connect to( x step & y step) terminals 

can any one tell me how to solve this proplem or give me some advises

0 Kudos
Message 1 of 11
(6,037 Views)

If you are new to LabVIEW, I would recommend that you create a calibration script in Vision Assistant, and then use the export to LabVIEW functionality to save the steps as a VI.  Then you can have a look, and adpat it to your needs.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 11
(6,031 Views)

Why not use vision assistant?

0 Kudos
Message 3 of 11
(6,021 Views)

I build code that run in real time, so I have to build code using low level blocks

0 Kudos
Message 4 of 11
(6,019 Views)

I open front panel after making calibration in vision assisstant but, I can't understand how to enter distance value between two pointsmake calibration

0 Kudos
Message 5 of 11
(6,017 Views)

X step and y step are to be determined by your image. can you post an image that you want ot be calibrated?

0 Kudos
Message 6 of 11
(6,016 Views)

Hello,

 

using simple calibration model, you realize that you disregard the lens distortion? It is also advisable that the camera is perpendicular to the inspected object. Here, a telecentric lens helps too.

 

The simple calibration performs direct conversion from pixels to real-world units. For example, if you know a real world object that you measure is 10 mm in size and it occupies 10 pixels on the image, then the conversion factor is 10mm/10pix = 1mm/pix.

 

So, you want to measure an object with size U (in pixels), you use the equation:

 

X = 1mm/pix * U (note that this is for horizontal direction, vertical direction is analogous)

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 7 of 11
(6,007 Views)

 After I made calibration I connect image to some sequential operation image subtraction, edge deteection, threshold, basic morphlogy and advanced morphology

after that I connecte image to vision assistant that contain only particle analysis, but I found that real world parameters not active

0 Kudos
Message 8 of 11
(5,970 Views)

Hello,

 

do you apply the calibration to the image using IMAQ Set Calibration Info (prior to any analysis)?

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 9 of 11
(5,967 Views)

Dear Klemen

I use (IMAQ set simple calibration then IMAQ set calibration axis info )

then image enter to some image processing function finally enter particle measurment 

particle measurment calibration valid indicate true, but real world measurment still not change

0 Kudos
Message 10 of 11
(5,959 Views)