worldmaster wrote: ↑Sun Nov 24, 2019 7:24 pm
I repeat, I need fragments from each of the cameras. These fragments must be combined into a new frame. And then send the data stream to the network.
I have to repeat, the Stereo hat hides the fact that there are two cameras, Raspberry Pi thinks there is only one camera.
gordon77 wrote: ↑Sun Nov 24, 2019 7:32 pm
Roi will select a segment BUT I don't know if it will work for 3d, and select a different segment from each camera (which l don't think you mentioned before)
Again, Stereo hat provides "normal" frames, Pi does not know about two cameras connected, nor is any 3D option required for raspistill/raspivid.
But I was wrong with "-roi", since the Pi does not know about two cameras, it does not work the way needed.
This is simple stereo capture for this command:
Code: Select all
$ raspistill -md 4 -w 1296 -h 972 -p 22,50,648,486 -o p1.jpg
$
Now with "-roi" I get different regions:
Code: Select all
$ raspistill -md 4 -w 1296 -h 972 -p 22,50,648,486 -o p2.jpg -roi 0.25,0.0,0.5,0.5
$
Besides having received free samples of 0.3/1.0/2.0MP monochrome global shutter, 13MP/16MP color rolling shutter and 0.3MP color/2.0MP monochome stereo cameras from Lee at Arducam, I have no incentive in increasing Arducam sales.
Btw, Arducam stereo hat for Raspberry Pi with two 5MP camera bundle does cost 89.99€
https://www.uctronics.com/index.php/ard ... -2173.html
Comparable StereoPi starter kit does cost 125$ but includes a compute module 3+ lite:
https://www.crowdsupply.com/virt2real/stereopi
So if you already have a Pi, stereo hat is cheaper.
Stereo hat with two 8MP v2 cameras does cost 109.99$.
In addition to StereoPi it allows to get stereo hat with two Arducam cameras as well (all those I listed above).
I do have a sample here at home with two ov9281 monochrome global shutter cameras (my previous posting photo was taken with that, a "2 x 1280x800 = 2560x800" frame):
https://stamm-wilbrandt.de/en/forum/ArduCAM/mode7.jpg
The Arducam cameras do provide full and not half resolution as v1/v2 cameras.
But they only work with Arducam driver, not with raspivid/raspistill like the v1/v2 cameras:
https://github.com/ArduCAM/MIPI_Camera
So "-roi" does what it should above, capture 50% size in both dimensions , starting at coordinate (324,0).
What is needed for the OP request is to be able to specify two regions of interest.
I will come up with such a solution based on raspividyuv and i420toh264 tool (with GPU doing .h264 conversion) soon:
https://github.com/Hermann-SW2/userland ... i420toh264
What I can say for sure now is that that solution will work, and will allow to capture two arbitrarily located regions of interest.