Multi-Camera Connection To MatLab

6 views (last 30 days)
tma
tma on 3 Oct 2020
Answered: Manish Mahalwal on 13 Oct 2020
Hi,
I have a project that I would like to stream 4 videos together on Matlab. The goal is to get 4 live video data from the Raspberry Pi 4B , which has about 9 fps per video, and stitch videos on Matlab, either by using the position based image stitching or by stitching algorithms such as video mosaicking.
I am currently using a Raspberry Pi 4 B and a 4 cameras adapter from Arducam; however, this adapter is a nascent product that has some stability issues and limitations.
Any ideas on how to approach this problem, I would appreciate it!

Answers (1)

Manish Mahalwal
Manish Mahalwal on 13 Oct 2020
Hi,
About the workflow that you mentioned, is the camera adapter doing some multiplexing or is it creating 4 separate camera interface within Raspberry Pi like /dev/video0, /dev/video1 and so on?
If it is multiplexing, you might have to control it via GPIO pins, like set the GPIO pins to 00 and take first camera's snapshot then change GPIO to 01 and then the second camera's snapshot and so on.
If it is creating separate interfaces you can create multiple webcam objects and then access the data.
In the past, people have faced problems using multiple cameras with a single Raspberry Pi. This forum mentions a lot of different workflows you could try. Please note, I can't say it will work, but it may be a place to start.

Categories

Find more on Image Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!