camera calibration for stereo photo

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

camera calibration for stereo photo

Post by henrique_mg »

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: 215
Joined: Tue May 21, 2019 12:33 pm
Location: France

Re: camera calibration for stereo photo

Post by stereomaton »

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
Despite my quite active participation in the forum, I am not in the StereoPi team
StereoPi (v1) Standard Edition + CM3Lite module + a few cameras

Post Reply