Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI custom step get calibration info

Good afternoon, I almost completed the design of a new step, but did not find a way to get information about camera calibration and image?
In my measurement, I get the distance in pixels, and I need to transfer it to millimeters.
All standard steps automatically convert measurements to millimeters when calibrated. How can I get information from the calibration step and recalculate my distance in millimeters?

For example, I inserted my measurement result and the measurement result of a standart step.

 

millimeters?arc_out.pngarc_res1.pngarc_res2.png

Download All
0 Kudos
Message 1 of 6
(3,233 Views)

No ideas?

0 Kudos
Message 2 of 6
(3,154 Views)

Just call IMAQ Is Vision Info Present 2 on the image, specifying that you want to check if the image contains Calibration information.

0 Kudos
Message 3 of 6
(3,137 Views)

Thanks, I tried this option, but IMAQ Is Vision Info Present 2 returns only tru or false about the presence or absence of calibration, and I need to get the calibration information itself (distance)2019-04-02_072633.png2019-04-02_072620.png

Download All
0 Kudos
Message 4 of 6
(3,132 Views)

IMAQ Get Calibration Info 3, located in the Vision and Motion>>Vision Utilities>>Calibration palette gives you more information on the type of calibration and parameters used for calibrated images.

0 Kudos
Message 5 of 6
(3,122 Views)

It's also worth noting that the Vision functions that return pixel information (area, distance, position, etc.) also return the calibrated version if the image passed to those functions is calibrated (look at the parameters returned by the algorithm and you will see real world coordinates/measurements also returned). There are also Calibration VIs to convert pixel locations to real world locations IMAQ Convert Pixel to Real World and IMAQ Convert Real World to Pixel when a calibrated image is passed in.

 

Hope this helps,

Brad

0 Kudos
Message 6 of 6
(3,116 Views)