make timestamp on snapshots configurable (fixes #88)

This commit is contained in:
Blake Blackshear
2020-01-18 08:41:55 -06:00
parent 1198c29dac
commit af247275cf
3 changed files with 21 additions and 2 deletions

View File

@@ -152,6 +152,9 @@ class Camera:
self.take_frame = self.config.get('take_frame', 1)
self.watchdog_timeout = self.config.get('watchdog_timeout', 300)
self.snapshot_config = {
'show_timestamp': self.config.get('snapshots', {}).get('show_timestamp', True)
}
self.regions = self.config['regions']
self.frame_shape = get_frame_shape(self.ffmpeg_input)
self.frame_size = self.frame_shape[0] * self.frame_shape[1] * self.frame_shape[2]