Ruud14 / SecurityCamera

A Raspberry Pi camera system with a live video feed, motion detection system, H.264 mp4 recording capabilities and a storage management system with support for remote storage. The recorder supports pre-motion frame recording and no internet environments (e.g. Wildlife cameras).
MIT License
71 stars 10 forks source link

Camera module 3 #10

Open carterw opened 1 year ago

carterw commented 1 year ago

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?

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

carterw commented 1 year ago

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

Ruud14 commented 1 year ago

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.