by StereoPi

An open source stereoscopic camera based on Raspberry Pi

View all updates Apr 08, 2019

OpenCV Depth Map Examples Code and Production Status

by Eugene Pomazov

For all students of OpenCV, we just released our code, ready-to-use Raspbian image, and a simple tutorial. Together, these will take you step-by-step from the first image capture to the final depth map created via real-time video capture.

The tutorial consists of six steps:

  • Step 1: Capture image
  • Step 2: Capture photos for calibration
  • Step 3: Create set of left and right images
  • Step 4: Calibration
  • Step 5: Depth map parameters tuning
  • Step 6: Depth map created via real-time video capture

Here’s an example of the results after the final step:

You can read a detailed description in our post on Medium, and look at our code on GitHub.

Production News

This week, PCBs arrivied at our factory as expected. Here are a couple of the very first samples:

And here’s what the production process looks like at our factory:

Our army of microSD cards imaged with Raspbian S.L.P. continues to grow:

Short camera cables arrived:

Camera support plates arrived (V1/V2 camera version shown here):

Also, Crowd Supply received the Compute Modules and cameras:

About the Author

Eugene Pomazov

StereoPi  ·  Realizator  ·   St. Petersburg

$164,792 raised

of $35,000 goal

470% Funded! Order Below

Product Choices


StereoPi AnyCase Kit

With AnyCase Kit you can get your setup in a 10 minutes, before you go to your 3D printer or laser cut machine! You can assemble any case with 25, 65, 120 or 200 mm stereobase, or for 360 degree video with just a screwdriver! And you have 12 more camera ribbons now, do not afraid to bend you cables in your bold experiments!


StereoPi Slim Edition

Perfect for DIY ninjas and those wanting to embed StereoPi in a tight space. This board is the same as the standard edition, but without all the bulky connectors - the Ethernet RJ45 jack, GPIO header, and dual USB Type-A connector have not been populated. To use this board, you will need your own Raspberry Pi Compute Module, cameras, and camera ribbon cables. Two short power cables already included.


StereoPi Starter Kit

This kit has everything you need to get started right away. The kit includes one StereoPi Standard Edition board, two V1 cameras (w/ ~20 cm ribbon cables), one Raspberry Pi Compute Module 3 + Lite, and everything in the StereoPi Accessories Kit (two short ribbon cables, one USB power cable, two power cables, one V1/V2 dual-camera mounting plate, and one wide-angle dual-camera mounting plate). We've also included a microSD card pre-imaged with Raspbian and all the stereoscopic video and image demos you see on this project page.


StereoPi Deluxe Kit

This kit includes everything in the StereoPi Starter Kit and adds two wide-angle (160°) cameras (w/ ~20 cm ribbon cables). With this kit, you'll be able to run all of the demos shown on this project page and start experimenting on your own. You will reign supreme over your stereoscopic domain.



We are a small team of geeks who have been making remote-controlled things with livestreaming video since 2010. We've done everything from boats and planes, to robots, copters, and VR helmets. If we can't find the right tools for our projects, we build them ourselves.


Sergey Serov

Kirill Shiryaev



Full-service Manufacturer

See Also

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: