For many applications it’s useful to have multiple OAK cameras running at the same time, as more cameras can perceive more (of the world around them). Examples here would include:
Box measurement app, multiple cameras from multiple different perspectives could provide better dimension estimation
People counter/tracker app, multiple cameras could count/track people across a large area (eg. shopping mall)
Attaching multiple cameras on front/back/left/right side of your robot for full 360° vision, so your robot can perceive the whole area around it regardless of how it’s positioned.
This example shows how you can use multiple OAK cameras on a single host. The demo will find all devices connected to the host computer and display an RGB preview from each of the camera.
An demo application that does object detection from multiple cameras can be found here.
===Connected to 18443010F105060F00 >>> MXID: 18443010F105060F00 >>> Num of cameras: 3 >>> USB speed: UsbSpeed.SUPER >>> Board name: DM9098 >>> Product name: OAK-D S2 FF ===Connected to 1844301011F4C51200 >>> MXID: 1844301011F4C51200 >>> Num of cameras: 3 >>> USB speed: UsbSpeed.UNKNOWN >>> Board name: NG9097 >>> Product name: OAK-D Pro PoE AF
Please run the install script to download all required dependencies. Please note that this script must be ran from git context, so you have to download the depthai-python repository first and then run the script
git clone https://github.com/luxonis/depthai-python.git cd depthai-python/examples python3 install_requirements.py
For additional information, please follow installation guide
This example script requires external file(s) to run. If you are using:
python3 examples/install_requirements.pyto download required file(s)
dephtai-core, required file(s) will get downloaded automatically when building the example