waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 357 forks source link

Picamera and Arducam Multiplexer #414

Open lefsky opened 7 years ago

lefsky commented 7 years ago

I want to work with 8 Pi cameras simultaneously, preferably using picamera. I have been planning to use 2 RPis with 2 Arducam Multiplexers (which allows you to connect 4 cameras and access them sequentially (cameras are selected by altering GPIO settings).

From what I know of the picamera software, it seems that I would need to close and open each camera when I switched between them- is this conclusion correct? It seems that would lead to much slower access.

I suppose that my other option is the use the Pi Zero, although that will require communication between one primary computer and 8 Zeros rather than 2 RPi 3s, which I'd prefer. Will I use lose any functionality with the Zero?

M

johnsethsalazar commented 5 years ago

Hello, lefsky I'm experiencing a similar problem that you've encountered, if you could help I would appreciate it very much.

Here's the link of the problem I'm experiencing: https://stackoverflow.com/q/54417601/9482697

6by9 commented 5 years ago

These multiplexer boards are not made by Raspberry Pi, and are frequently a pain in the neck (at least to me). There is no official support for them from Pi Towers, and Arducam will be unable to assist on the software side as it is all running on the GPU (closed source).

The mux should switch whilst streaming (if not then complain to Arducam), but:

In @johnsethsalazar 's case, what you want to do is relatively trivial in that you can set up the multiplexer before enabling the camera. The bigger question to ask is what to do if the second PIR is triggered whilst the first is recording - you can not call start_recording twice to try and record both cameras simultaneously.