vidgear
vidgear copied to clipboard
[Proposal]: Support `Picamera2`
Issue guidelines
- [X] I've read the Issue Guidelines and wholeheartedly agree.
Issue Checklist
- [X] I have searched open or closed issues and found nothing related to my idea.
- [X] I have read the Documentation and it doesn't mention anything about my idea.
- [X] To my best knowledge, my idea wouldn't break something for other users.
Describe your Idea
With Bullseye, Raspberry Pi moved away from the legacy camera support to their own libcamera
-fuelled picamera2
. It aims at being a slot-in replacement for picamera
. It is still possible to use the legacy picamera
, but it's being deprecated and is slowly starting to break things.
Although picamera2
is still in beta, I'd propose beginning to implement it.
Use Cases
Anyone using Raspberry Pi cameras, especially newer custom cameras (e.g. from Arducam).
Any other Relevant Information?
The picamera2
repo: https://github.com/raspberrypi/picamera2
Documentation: https://datasheets.raspberrypi.com/camera/picamera2-manual.pdf
I can begin slowly and create a pull request, hoping that it really is mostly a slot-in replacement. Would you prefer having an additional PiGear2
class inside pigear.py
, or a new pigear2.py
?
Thanks for opening this issue, a maintainer will get back to you shortly!
In the meantime:
- Read our Issue Guidelines, and update your issue accordingly. Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo.
- Go comprehensively through our dedicated FAQ & Troubleshooting section.
- For any quick questions and typos, please refrain from opening an issue, as you can reach us on Gitter community channel.
Hi, we're eagerly waiting on PiCamera2 support. Any progress updates on this/is there any development code we can look at or contribute to?
@dante-biase I just got time to work on this project again. I'll start shortly after pending commits are pushed.
Fantastic!
I hope this is still in scope, the new pi camera modules are really nice (autofocus, wideangle etc), so it would be great to see picamera2 integrated here...
It would also be a major selling point, as they are still not supported in OpenCV natively yet (https://github.com/opencv/opencv/issues/21653).
@iandol yeah its on priority, I'm right now busy with my studies and job. But I've planned this for upcoming weeks and looking at Picamera2 documentation its not that hard to implement. Stay tuned.
Waiting for Picamera2 update
@sourabmaity Yeah I'm swamped with a ton of work right now and my schedule's pretty tight. However, I'm committed to work on this, so as soon as I get a breather, I'll definitely circle back and address this.
Okay I've finally started working on this. Expect a update in few days.
Any update on this?
@dante-biase It's here finally. :)
Alright!
Awesome to hear!🚀
Congrats everyone 🎉, Official Support for Picamera2 API has been successfully added in https://github.com/abhiTronix/vidgear/commit/e119365689b5710ac50cda0b17e0df2e8ee2f771 ! Kudos 🚀
Hi, everyone. The vidgear v0.3.3
with Picamera2 support is officially released: https://pypi.org/project/vidgear/