**** BEGIN LOGGING AT Tue Aug 30 02:59:57 2022 Aug 30 08:52:29 @waveform: good morning, any news on the pivariety cams ? Aug 30 09:34:26 johk, morning -- sorry about the long delay! Been on holiday for much of the last week. There's not much news yet, I'm afraid -- two things I need to try and do this week related to it are to get libcamera bumped beyond Debian (preferably to RaspiOS' version if possible), and get some necessary detail to file bugs with the kernel team on why we can't (yet) successfully build the updated kernel module Aug 30 09:54:22 @waveform, was also on holidays last week. Aug 30 09:55:47 waveform, I managed to get the arducam patched libcamera to work on raspbian, but currently v4l2 is only suported indirectly with gstreamer... which is quite cpu intensive. opencv still seems to completely lack libcamera support. Aug 30 09:56:50 quite annoying... I would really like to avoid to use one of the closed industrial camera providers for this project Aug 30 10:02:14 I'm not *too* surprised about opencv lacking libcamera support; it's (still) very new and in quite a lot of flux. That said, I haven't kept up with opencv development for a long time, and someone may be working on it for all I know Aug 30 10:03:04 waveform, there is actually a GSoC project for the libcamera support, but I have no idea if there was any progress Aug 30 10:03:41 https://libcamera.org/open-projects.html Aug 30 10:10:38 johk, https://github.com/kbarni/LCCV seems to be an interesting attempt at getting libcamera to talk to opencv; they're handling the buffers manually but there's no gstreamer in the way and the buffer handling *seems* sane from a quick skim. Might be worth a look, anyway Aug 30 10:11:49 still, it'll require an up to date libcamera; I'll go dive into what that's going to require for the archive (and the kernel bits) after the morning's meetings Aug 30 10:23:11 I have seen that, but that only works for C++ afaik, all our opencv code is in python Aug 30 10:26:38 from what I can see the C++ is mostly just calling C bits in libcamera and opencv; at a bare minimum that could (painfully) be translated into ctypes though a "proper" wrapper would be preferable Aug 30 10:27:26 waveform: but why go to the effort instead of implementing the support directly into opencv? Aug 30 10:38:46 that would be preferable, but I suspect that's not going to appear in the short term (a general integration of libcamera into opencv), so it rather depends what timescales you're willing to endure Aug 30 10:59:30 waveform, we're using ROS for the data acquisition anyways, so in the short term I'd just use one of the libcamera nodes Aug 30 14:01:31 waveform, I'm actually a bit surprised that raspbian defaults to libcamera now, even though support is still so lacking Aug 30 14:06:28 johk, there's ... a certain amount of politics behind that. One of the things that certain parties have always been rather vocal about is the Pi's closed-source bootloader. A very significant part of the closed-source blob is the camera/gpu firmware so this is part of them trying to reduce the amount in the closed-source blob (which is nice). Another part is this means all the layers get future support (mmal, part of the old stack, is basically Aug 30 14:06:28 unsupported by anyone) Aug 30 14:10:40 why did they do the transition when they did? I have some vague recollections of our meetings with people in Pi trading from the time and IIRC (hoping I'm not divulging anything private), Bullseye was need for some bits of Pi4 support (CM4 particularly I think?) but bits of the old camera stack were broken in bullseye Aug 30 14:11:31 so there was a choice between leaving people who were already working on libcamera hacking away at it, releasing it a bit prematurely and hoping things got better, or diverting those people (the camera experts) onto fixing the old stack, knowing they were likely to throw it out some way thru the bullseye life-cycle Aug 30 14:14:57 anyway, I'm probably mis-remembering some details, but I think that was the gist of what went on Aug 30 14:17:12 hmm Aug 30 14:17:37 does rpi foudation actively support libcameraƟ Aug 30 14:19:36 pi trading (as distinct from the foundation, who only work on the educational side of things) have several camera devs and they do work on libcamera support for the official pi cameras (i.e. not the arducams, but given it's all an open stack I'm sure they will incidentally benefit from that in the long run) Aug 30 14:20:37 ok I see? Are you affiliated with pi trading/foundation? Aug 30 14:22:22 no, before I joined Canonical I did some contract work for them (some picademy bits, largely related to the python picamera library I wrote, and the Sense HAT desktop emulator). These days, given my role is "Ubuntu for the Raspberry Pi" I have some regular (monthly-ish) meetings with some of their engineers so we can keep abreast of hardware developments, common issues, etc. Aug 30 14:26:40 ah ok I wasn't aware you were working for Canonical. **** ENDING LOGGING AT Wed Aug 31 02:59:57 2022