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
camera calibration for stereo photo
-
- Posts: 215
- Joined: Tue May 21, 2019 12:33 pm
- Location: France
Re: camera calibration for stereo photo
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.
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
Despite my quite active participation in the forum, I am not in the StereoPi team
StereoPi (v1) Standard Edition + CM3Lite module + a few cameras