camera calibration for stereo photo

StereoPi hardware discussion
Post Reply
henrique_mg
Posts: 24
Joined: Sat Jul 13, 2019 5:10 pm

camera calibration for stereo photo

Post by henrique_mg » Fri Oct 04, 2019 3:17 pm

Would it be possible to calibrate the camera before taking photos via http: //stereopi.local/ so that the images are already aligned ready to print?
it would be nice if you could add this feature to the stereopi image

stereomaton
Posts: 90
Joined: Tue May 21, 2019 12:33 pm
Location: France

Re: camera calibration for stereo photo

Post by stereomaton » Fri Oct 04, 2019 6:35 pm

Doing it automatically is not very simple, and you have to have a valid calibration of your system beforehand.

If you want to do it yourself, you can get inspiration from the code of the stereomaton: https://github.com/haum/stereomaton/blo ... eomaton.py
Lines 209 to 222 do the alignment, line 240 does concatenation and saving.

The problem is to find the Hl and Hr matrices. You can probably find them with the opencv calibration tool crafted by realizator although I did not checked.
Stereophotographer and hacker
StereoPi Standard Edition + CM3Lite module

Post Reply