Skip to content
StereoPi OpenCV depth map examples
Branch: master
Clone or download
Latest commit fd54e93 Apr 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
calib_result
pairs First edition Apr 4, 2019
scenes
.gitattributes
1_test.py
2_chess_cycle.py
3_pairs_cut.py
3dmap_set.txt First edition Apr 4, 2019
4_calibration.py
5_dm_tune.py
6_dm_video.py First edition Apr 4, 2019
LICENSE
README.md Tutorial link added Apr 7, 2019
pattern.png
rectifyed_left.jpg
rectifyed_right.jpg

README.md

StereoPi tutorial scripts

Set of Disparity Map tutorial scripts for StereoPi board with CM3/3+ inside.

Brief tutorial: our post on Medium

Was tested in the following environment:

Ready-to-use Raspbian Image:

Download link 1 (Yandex Disk)

Download Link 2 (Google Drive)

Brief scripts description:

Press 'Q' key in any script for exit, as we added key stroke processing. Do not kill it by Ctrl+C :)

1_test.py - starts camera preview, save captured image if 'Q' button pressed.

Video: https://www.youtube.com/watch?v=wllLrNUw3SE

2_chess_cycle.py - takes a series of photos for stereopair calibration, shows countdown timer. You need a printed chessboard with 9x6 parameters (file "pattern.png" included).

Video: https://youtu.be/1XCAlU3k-xs


3_pairs_cut.py - just cuts all captured photos to left and right images.

Video: https://youtu.be/95DWmPECbDc


4_calibration.py - calibrate StereoPi cameas setup using pairs from script 4.

Video: https://youtu.be/vtPhu23tKGo


5_dm_tune.py - script for fine tune of disparity map settings.

Video: https://youtu.be/Z4j3NrMyeGE


6_dm_video.py - builds disparity map in real time.

Video: https://youtu.be/f29arVstfZA


You can’t perform that action at this time.