Does anyone else have experience of the DWE cameras? Installed two on our BlueROV (most recent version), but they don’t show up on the BlueOS DWE extension, but I do seem to be able to set up a stream with the settings in the attached picture.
Ideally we would like to capture synchronised frames from them, has anyone done this with the BlueROV?
Hi @JohnH -
You’ve setup the wrong stream! This is an easy mistake to make. BlueOS and Cockpit only support h264, not MJPG. The streams should also not be turned on in the DWE OS extension - you’re saying they don’t appear at all? The extension is solely useful to adjust bitrate in this context, and is not required if operating the cameras at their default settings.
Synchronizing the cameras perfectly is not going to be possible - this is an inherent limit of USB cameras as far as I understand. If you need synced outputs, units that host two cameras on the same board are typically used, as they output a large image that contains both sensors outputs (so 2x 1080p becomes 3840 x 1080). With that said, if you start recording both streams, and sync after the fact in video editing software, this may produce usable results.
Are you trying to synchronize to leverage stereo-cameras to determine distance of objects from the cameras?
To follow up @JohnH -
I just noticed you’re not using the exploreHD that BlueRobotics sells, but the Stellar HD. We looked at adding this camera to the reef, but because it only has MJPG streams available, we decided against it…
The primary “dealbreaker” is the sheer amount of bandwidth a MJPG stream consumes. This can easily overwhelm the available tether bandwidth with just a single camera, let alone two! You may find that you need to colocate more processing power on the ROV to accomplish your goals with the cameras, rather than stream them up the tether. You could also investigate a fiber-optic tether to handle the bandwidth requirements!
DWE use the StellarHD for their dedicated stereo system, in the Explore3D. For the synchronised capture, as well as vSLAM processing they have their SVC Pro.
I have been using this system for around 6 months. It started out really good, a DWE just keep improving it. I did a post about it here.
Thanks for the the replies! I think I’ll be able to get away with the processing/bandwidth issue by using a low framerate/resolution.
When I connect both cameras, one starts disconnecting repeatedly. Could this be a power issue? Could I use an additional 5v power supply? How would this be wired? Keen not to damage the pi!
Hi @JohnH -
Yes, more than 1 or 2 cameras typically require a dedicated 5V power supply connected to the 5V input pins of the camera connector.
However, even if you resolve the power issue, the bandwidth required by MJPG is enormous- you’ll likely have to lower frame rate and resolution, along with the bitrate via the DWE OS extension to a point where the picture is not particularly useful…
What is your goal for the use of the cameras? Viewing them in Cockpit is not possible, but QGround Control does support this video format - it is limited to only showing one stream at a time though…
Thanks for your reply. The goal of the cameras is to have a synchronised stereo pair for photogrammetry. Due to this, I can get away with a very low frame rate, say 15 fps or much less. So I’m hoping that I’ll I can manage, even with low bandwidth. I’ll be recording using DWE’s dedicated ‘Discovery’ software and using Cockpit for the Navcam.
On the power supply - so if I use a dedicated 5v power supply to power the cameras and only connect the data part of the Pi, that should be ok? Or do you thing I should share grounds between additional power supply and the Pi?
Many thanks.
Hi @JohnH -
You’ll want to have a common ground between the power supply and the pi, however unless it is an isolated supply this will already exist - easy to verify with a multimeter!
DWE sells dedicated hardware for accomplishing stereovision with those cameras, as @3dMB mentioned. I’m skeptical you’ll have much success without it, as synchronizing USB camera streams in the time domain is very difficult! You’ll likely need to develop your own software, and if processing recordings, some event should be captured that can be used to synchronize the feed. Even a small offset can negatively impact stereo depth calculations!