niciBume / Cat_Prey_Analyzer

Cat Prey Image-Classification with deeplearning
MIT License
142 stars 22 forks source link

Change camera settings for day and night mode #23

Closed flaterne closed 1 year ago

flaterne commented 1 year ago

Hi niciBume,

this is a very interessting project and I am actualing trying to run this on my RasPi. It works fine at daylight (I have not conntected the GPIO pins yet for the camera). In your code I found the GPIO Pin 36 (IRPin), there you change the mode of the camera to night vision. Is there an option to change between those two camera modes depending on the date time? Or is this already included? Sorry for the circumstances, I am new in learning python. Thanks for your reply!

niciBume commented 1 year ago

I suppose that you could toggle the GPIO based on time, however this is not a built in option in this code base. You would need to write that piece of code and inject it approximately here. But in general you can just leave it on, i.e. the camera works at night as well with this setting. Never stop learning! :)

flaterne commented 1 year ago

great, thanks for the quick answer. I have connected the GPIO pin of the camera and the pictures are very good at day and night :)