Guide to synchronize two Basler cameras on i.MX 8M Plus and compute depth maps using OpenCV and Python.
This application note explains how to synchronize two Basler cameras on the NXP i.MX 8M Plus platform and compute a depth map using OpenCV and Python. It covers hardware and software requirements, camera synchronization via PWM or GPIO hardware trigger, image building with Yocto, calibration using a chessboard pattern, and depth map computation. The document includes detailed steps and code examples for implementation.
The guide assumes familiarity with Linux, Yocto Project, and OpenCV. It provides configuration instructions for device tree, GPIO, and GStreamer pipelines, as well as calibration scripts for stereo vision setup. This manual is written in Chinese.
Use either PWM trigger or GPIO hardware trigger. For GPIO, configure GPIO1_IO15 and connect SYNC_I(C) to MCLK on the adapter.
Hardware: NXP i.MX 8M Plus EVK, 2 x Basler cameras, SanDisk Ultra 32-GB micro SDHC Class 10. Software: Ubuntu 20.10 Linux 5.15.71_2.2.0 with Yocto Project and Basler BSP layers.