Merging CSI and USB Camera Feeds into a Single Output

I’m working with two cameras—one connected via CSI and the other via USB—and I want to merge their outputs into a single video feed. The main video should come from the CSI camera, while the USB camera’s output should be overlaid in the bottom-right corner. Additionally, the USB camera is running an HEF model.

What would be the best approach to achieve this? Any suggestions or example pipelines would be greatly appreciated!

Hey @uwaisasghar143 ,

While we don’t have a multistream example in the Raspberry Pi examples repository, you can find one in:

  1. The Tappas repository:
    tappas/apps/h8/gstreamer/general/multistream_detection at master · hailo-ai/tappas · GitHub
    (Note: You may need to make some modifications to match the RPi examples format)

  2. Alternatively, check DeGirum’s repository for their multistream detection implementation: https://degirum.ai/

Let me know if you need help adapting either of these examples!