pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
548 stars 101 forks source link

pi-timolo.py release 6.60 20-May-2017 Now very Happy with twilight Transitions #61

Closed pageauc closed 7 years ago

pageauc commented 7 years ago

For quite some time I have been struggling with finding a good algorithm for smooth day to night transitions. The Gaussian hyperbola method was not the right curve. The new one is a modified hyperbola that allows for brightness adjustments. Release 6.60 is now very good with very small transition light changes. The nightDarkAdjust works opposite to the previous release in that lower values are are brighter. Currently I have found nightDarkAdjust = 4.7 works well with the camera pointing towards sunrise. My inside camera also works well and will go down to very dark conditions before there is not enough light and the image is essentially black. I am thinking of putting in an option to turn off taking images if pixAve is very low. Anyway give it a try and let me know your comments.

Note - Depending on your previous version, this release will require the updated config.py file. You can perform a Minimal upgrade if you have a recent installation.

cd ~/pi-timolo
cp config.py config.py.old
wget -O config.py https://raw.github.com/pageauc/pi-timolo/master/source/config.py
wget -O pi-timolo.py https://raw.github.com/pageauc/pi-timolo/master/source/pi-timolo.py  

Edit the new config.py to transfer any previous customized settings from config.py.old

Claude ....