You can use two cameras with the compute module. See <a href="https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;blog&#x2F;real-time-depth-perception-with-the-compute-module&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;blog&#x2F;real-time-depth-perception-...</a>