Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calibrate a stereo vision system with tow cameras?

Hello! Everyone!

Since NI release LabVIEW 2012 and VDM 2012, I began to use stereo vision example.vi to calibrate my stereo vision system, but in one year time, I try hundrends times and succeed few times. Depth image is always like this 

替换basler相机.jpg

So I think stereo vision model has some problem.I wait for update...... 

After VDM 2012 sp1 is released. I update my VDM, but there is a little improvement. I already can calibrate my system using five image with all most 100% Grid Coverge.

替换basler相机1.jpg

I searched for help. Thanks for Klemen! He helps a lot. There are many things in his post as followed

http://forums.ni.com/t5/Machine-Vision/Stereo-library-2012-pointers/m-p/2171812/highlight/true#M3672...

and his code

http://forums.ni.com/t5/Machine-Vision/Stereo-Vision-and-Projected-Light/m-p/2499898#M39335

Few days ago, NI released LabVIEW 2012 and VDM 2012, To my great surprise, Stereo Vision model is not update! It seems that NI is confident with VDM 2012 SP1.

So my calibration way must be wrong.

OK! After lot of useless words, there is the way to calibrate stereo vision system with two camera!

1.First image must be put as far as you can! this determine your system precision.

2.Calibrate the center grid latest! So you can calibate other grids as good as you can before programe think your system is calibrated! Just like this 

示范.jpg

 3.Take care about angles between each image, 3 degrees apart from other images.

Here is the result

效果.png

I use LabVIEW 2012 f5 +VDM SP1 and two Basler GigE Vision cameras. I update some VI as followed

update vi.png

Hope to help someone!

CLD
CAU
Message 1 of 3
(7,803 Views)

Hello,

 

thank you for sharing your results.

 

What did you mean with the last screenshot of the block diagram - update vi.png? Could you please explain in more detail.

 

I am very pleased you got this working. And thank you for the tips.

 

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 2 of 3
(7,772 Views)

Hello! Klemen

I mean that I use Stereo Vision Example.vi, but some sub vi are not updated to the newest. I use those new VI  which are in the last screenshot. such like change2.pngto 1.png 

You are welcome! And you also help me a lot.

CLD
CAU
0 Kudos
Message 3 of 3
(7,764 Views)