Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

98 lines (56 sloc) 2.56 KB

In the latest Raspbian Buster with the Linux kernel > 4.19.57 stereoscopic support is broken. Please DO NOT upgrade of the system untill appropriate fix from the Raspberry Pi Foundation. We'll update this document after any improvements.

Installing OpenCV 3.4.3 on raspbian Buster without breaking stereoscopic mode:

1. Download Raspbian Buster and write image to your micro SD card.

We've used "Raspbian Buster with desktop, 2019-07-10"

2. Enable two cameras support:

Put dt-blob.bin file to /BOOT partition. Do not forget to extract it from ZIP archive.

3. First boot (important!!!)

After the first boot you'll see setup wizard. Choose all settings you need, but please

SKIP the latest step - "check for updates".

SKIP the latest step - "check for updates".

SKIP the latest step - "check for updates".

Enable camera:

sudo raspi-config

Go to "Interfacing options", choose "Enable camera", press "Yes", reboot your system.

4. Set python 3 as a default:

sudo nano ~/.bashrc

add this row at the end of file:

alias python='/usr/bin/python3'

Save the file (Esc X X, "yes").

Activate new settings:

source ~/.bashrc

Check if the settings are applied correctly.


You should see "Python 3.7.3" in the first row.

If you see "Python 2.7.x" - please repeat previous steps.

5. Install OpenCV 3.4.3 with PiWheels:

sudo pip3 install opencv-python

sudo pip3 install opencv-contrib-python

In our case we have version installed.

6. Install additional libs:

sudo pip3 install opencv-python 
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev 
sudo apt-get install libqtgui4 
sudo apt-get install libqt4-test

You may also need matplotlib. Go this way:

sudo pip3 install matplotlib

7. To check if everything Ok try to run our first test script:


You should see preview image. Press 'Q' for exit.

8. Check raspistill 3D mode:

raspistill -3d sbs -o 1.jpg

You should see 5 seconds preview, and stereoscopic image "1.jpg" should be saved after running this code.

9. How to avoid occasional stereoscopic support breaking?

Untill update from RPi Foundation, please do not update your Raspbian Buster.

We do not recomment direct kernel update with 'sudo rpi-update', system update with 'sudo apt-get upgrade', and also following the last setup wizard step running 'sudo piwiz'.

Stay tuned!

And good luck with your OpenCV experiments! :-)

You can’t perform that action at this time.