Multi-Camera Connection To MatLab
7 views (last 30 days)
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!
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.