Clear Filters
Clear Filters

Multi-Camera Connection To MatLab

9 views (last 30 days)
tma on 3 Oct 2020
Answered: Manish Mahalwal on 13 Oct 2020
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
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.

Community Treasure Hunt

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

Start Hunting!