Open carterw opened 1 year ago
Hi, thanks for your request. please have a look at #6. I might create a separate branch for Picamera2 at some point, though I am not expecting it to be any time soon unfortunately.
You might be able to just make it a configuration option instead of a whole new branch. Once the image stream is set up initially all the other code should remain the same. Here's a working example if you are interested (but if you don't have a module 3 I can see how you would not be very motivated);
https://github.com/pageauc/speed-camera/blob/master/strmpilibcam.py
Thanks for the example. I would be willing to make a configuration option to enable Picamera2 and I know the switch from Picamera to Picamera2 does not involve many changes in code, However any change is too much if I cannot test it, unfortunately.
Aside from the code, the process described in the Installation guide might need to vary depending on which version of Picamera is desired.
If you, or anyone else seeing this at a later point in time, would like to make the changes to the code yourself and are able to test it, I'll be more than willing to put a link to your fork in the documentation.
This looks pretty interesting but I am using the module 3 camera, which requires the modern Picamera2 library. Any chance you can add Picamera2 as an option in your project?