Replies: 7 comments
-
I'm afraid I don't know of any direct way to do that. I guess you could do something like
which would allow this
Picamera2 is unlikely to work on any non-Pi computers. In theory there's a chance if the platform has an implementation of libcamera (which may be the case on some Linux systems), though you might also find differences in what is supported if your use case is not reasonably "simple". |
Beta Was this translation helpful? Give feedback.
-
I was thinking something along those lines, but is it possible to pipe that back in to QGLPicamera2 if you are working on an app? |
Beta Was this translation helpful? Give feedback.
-
Indeed, that's sounding tricky. The camera buffers are dmabufs that can be shared directly with the 3D graphics engine, so things are not straightforward, you can't just pass any old userspace buffer to it. Short of some extreme bodgery that sets up a |
Beta Was this translation helpful? Give feedback.
-
Tricky indeed. Maybe a for now I just post it as a consideration for a future feature to allow offline development without a pi and/or a camera. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
Slightly against my better judgement, the following works:
Of course, you do still need a camera that runs, but if you're wanting a canned input stream for developement/testing, then it does kind of cover that. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I will try this out and let you know if I have any questions. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I am on arch linux and picamera2 cannot find module libcamera. I tried to install libcamera from the aur package libcamera-git but there are conflicts with pipewire, which I do not want to mess with. So I will have to put this on hold and continue developing directly on the pi. Thank you for your help anyway. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, is it possible to run picamera2 with dummy data for development offline or on a non-pi computer? For example, using a video as opposed to the feed from the camera.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions