send the best person frame over mqtt for faster updates in homeassistant

This commit is contained in:
blakeblackshear
2019-07-14 08:31:21 -05:00
committed by Blake Blackshear
parent 700bd1e3ef
commit 2ec45cd1b6
3 changed files with 33 additions and 5 deletions

View File

@@ -175,7 +175,7 @@ class Camera:
self.object_cleaner.start()
# start a thread to publish object scores (currently only person)
mqtt_publisher = MqttObjectPublisher(self.mqtt_client, self.mqtt_topic_prefix, self.objects_parsed, self.detected_objects)
mqtt_publisher = MqttObjectPublisher(self.mqtt_client, self.mqtt_topic_prefix, self.objects_parsed, self.detected_objects, self.best_person_frame)
mqtt_publisher.start()
# create a watchdog thread for capture process