After my bad soldering experience I received an email from Lee:
BTW I told our engineer to design a stereo OV9281 camera adapter board, you don't worry about soldering any more . Do you have any requirements about the base line between these two cameras?
I did measure and distance between my pupil centers is 73mm.
After some problems with German TNT not knowing whether I am a private person (I am) or a company, a new packet from
Arducam arrived.
I got two stereo camera modules, with both cameras being 80mm distant.
The left (connected) is new module with two ov5647 cameras (v1, UC-505), the disconnected has two ov9281 1MP monochrome global shutter cameras (UC-507):
Today I did test the ov9281 module with synchronized stereo hat (new one, UC-625, old works as well).
I did sync
ArduCAM Mipi camera repo onto my Pi3B+ that has newly installed Buster:
https://github.com/ArduCAM/MIPI_Camera
Then I did follow the instructions in
RPI/README.md to install library and build samples.
I looked for the available formats:
Code: Select all
pi@raspberrypi3Bplus:~/MIPI_Camera/RPI $ ./list_format
mode: 0, width: 1280, height: 800, pixelformat: GREY, desc: (null)
mode: 1, width: 1280, height: 720, pixelformat: GREY, desc: (null)
mode: 2, width: 640, height: 400, pixelformat: GREY, desc: (null)
mode: 3, width: 320, height: 200, pixelformat: GREY, desc: (null)
mode: 4, width: 160, height: 100, pixelformat: GREY, desc: (null)
mode: 5, width: 1280, height: 800, pixelformat: GREY, desc: Used for ov9281 2lans raw8
mode: 6, width: 1280, height: 800, pixelformat: Y10P, desc: Used for ov9281 2lans raw10
mode: 7, width: 2560, height: 800, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 1280x800*2
mode: 8, width: 2560, height: 720, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 2560x720*2
mode: 9, width: 1280, height: 400, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 640x480*2
mode: 10, width: 640, height: 200, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 320x200*2
mode: 11, width: 320, height: 100, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 160x100*2
index: 0, CID: 0x00980914, desc: V4L2_CID_HFLIP, min: 0, max: 1, default: 0, current: 0
index: 1, CID: 0x00980915, desc: V4L2_CID_VFLIP, min: 0, max: 1, default: 0, current: 0
index: 2, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 681, current: 3000
index: 3, CID: 0x00980913, desc: V4L2_CID_GAIN, min: 0, max: 15, default: 1, current: 1
close camera status = 0
pi@raspberrypi3Bplus:~/MIPI_Camera/RPI $
Formats 7-11 are the interesting ones. As I said previously, for the v1 and v2 Raspberry cameras capturing with raspistill/raspivid is possible, but at half the resolution for left and right camera (because the stereo hat pretends to be a normal Raspberry camera). For the 6 different
ArduCAM Mipi cameras that can be run directly on Pi
CSI-
2 interface, the stereo hat provides left and right image in full resolution. ov9281 is 1MP camera, with resolution 1280x800. Therefore mode7 has size 2560x800.
First I did preview, these commands do that:
Code: Select all
./preview_setMode 7
./preview_resolution 2560 800
Finally I captured a frame with this command which asks for mode (right click and zoom to see full 2560x800 image):
Code: Select all
pi@raspberrypi3Bplus:~/MIPI_Camera/RPI $ ./capture
Open camera...
mode: 0, width: 1280, height: 800, pixelformat: GREY, desc: (null)
mode: 1, width: 1280, height: 720, pixelformat: GREY, desc: (null)
mode: 2, width: 640, height: 400, pixelformat: GREY, desc: (null)
mode: 3, width: 320, height: 200, pixelformat: GREY, desc: (null)
mode: 4, width: 160, height: 100, pixelformat: GREY, desc: (null)
mode: 5, width: 1280, height: 800, pixelformat: GREY, desc: Used for ov9281 2lans raw8
mode: 6, width: 1280, height: 800, pixelformat: Y10P, desc: Used for ov9281 2lans raw10
mode: 7, width: 2560, height: 800, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 1280x800*2
mode: 8, width: 2560, height: 720, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 2560x720*2
mode: 9, width: 1280, height: 400, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 640x480*2
mode: 10, width: 640, height: 200, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 320x200*2
mode: 11, width: 320, height: 100, pixelformat: Y10P, desc: Used for synchronized stereo camera HAT 160x100*2
index: 0, CID: 0x00980914, desc: V4L2_CID_HFLIP, min: 0, max: 1, default: 0, current: 0
index: 1, CID: 0x00980915, desc: V4L2_CID_VFLIP, min: 0, max: 1, default: 0, current: 0
index: 2, CID: 0x00980911, desc: V4L2_CID_EXPOSURE, min: 0, max: 65535, default: 681, current: 681
index: 3, CID: 0x00980913, desc: V4L2_CID_GAIN, min: 0, max: 15, default: 1, current: 1
Please choose sensor mode: 7
Setting the mode...
choose the mode 7
Choose resolution 2560x800
Current mode is 7
Notice:You can use the list_format sample program to see the resolution and control supported by the camera.
Enable Software Auto Exposure...
Enable Software Auto White Balance...
Waiting for automatic adjustment to complete...
Capture image mode7.jpg...
Setting the focus...
Failed to set focus, the camera may not support this control.
mmal: Enable JPEG encoder.
Close camera...
pi@raspberrypi3Bplus:~/MIPI_Camera/RPI $
Pretty cool and detailed image, house roof top height in this room is 4.30m.
Next I wanted to "see the image in 3D", but I have no viewer.
So I scaled down the image to 20%, see below.
Then I did place flat cardboard vertically to 22" monitor on the border between left and right image.
Next I placed my nose against cardboard and made both images overlay.
Wonderful 3D view, the lamp in front, my head behind, and roof top far away:
Besides the official posting, synchronized stereo hat is not available on uctronics.com right now.
Questions on pricing would have to go to
Arducam support:
https://www.arducam.com/docs/cameras-fo ... amera-hat/