Don't set sub label for none object classification

This commit is contained in:
Nicolas Mowen 2025-06-26 18:40:41 -06:00
parent 9d7f5e5438
commit 93fd0fa775

View File

@ -151,6 +151,9 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
) )
if score >= camera_config.threshold : if score >= camera_config.threshold :
sub_label = self.labelmap[best_id]
if sub_label.lower() != "none":
self.requestor.send_data( self.requestor.send_data(
f"{camera}/classification/{self.model_config.name}", f"{camera}/classification/{self.model_config.name}",
self.labelmap[best_id], self.labelmap[best_id],