vidgear icon indicating copy to clipboard operation
vidgear copied to clipboard

[Proposal]: Support `Picamera2`

Open roaldarbol opened this issue 2 years ago • 14 comments

Issue guidelines

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 picamera2repo: 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?

roaldarbol avatar Dec 09 '22 11:12 roaldarbol

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.

welcome[bot] avatar Dec 09 '22 11:12 welcome[bot]

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 avatar Dec 26 '22 16:12 dante-biase

@dante-biase I just got time to work on this project again. I'll start shortly after pending commits are pushed.

abhiTronix avatar Dec 31 '22 09:12 abhiTronix

Fantastic!

dante-biase avatar Dec 31 '22 14:12 dante-biase

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...

iandol avatar Jul 03 '23 09:07 iandol

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).

roaldarbol avatar Jul 03 '23 10:07 roaldarbol

@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.

abhiTronix avatar Jul 03 '23 13:07 abhiTronix

Waiting for Picamera2 update

sourabmaity avatar Aug 22 '23 11:08 sourabmaity

@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.

abhiTronix avatar Aug 26 '23 05:08 abhiTronix

Okay I've finally started working on this. Expect a update in few days.

abhiTronix avatar Sep 28 '23 14:09 abhiTronix

Any update on this?

dante-biase avatar Feb 17 '24 22:02 dante-biase

@dante-biase It's here finally. :)

abhiTronix avatar Apr 09 '24 18:04 abhiTronix

Alright!

dante-biase avatar Apr 09 '24 18:04 dante-biase

Awesome to hear!🚀

roaldarbol avatar Apr 09 '24 18:04 roaldarbol

Congrats everyone 🎉, Official Support for Picamera2 API has been successfully added in https://github.com/abhiTronix/vidgear/commit/e119365689b5710ac50cda0b17e0df2e8ee2f771 ! Kudos 🚀

abhiTronix avatar May 13 '24 18:05 abhiTronix

Hi, everyone. The vidgear v0.3.3 with Picamera2 support is officially released: https://pypi.org/project/vidgear/

abhiTronix avatar Jun 23 '24 04:06 abhiTronix