Submitted by abitowhit on Fri, 12/27/2019 - 08:53
So I have decided that the pi noir is not really suiting my needs. I will probably switch to a normal pi camera.
One thing I noticed however was that as it gets darker outside, the timestamp becomes indistinguishable from the image.
A few simple changes to vidtrack.py will fix this...
After import time add:
import datetime
under def detectandDisplay() add:
curhour=datetime.datetime.now().hour
directly under fontColor=(0,0,0) add the following if statement:
if (curhour < 6 or curhour > 18):
fontcolor=(255,255,255)
This will change the font from black to white if the hour is less than 6am or greater than 7pm.
Adjust as your sunlight changes.