mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
Don't set sub label for none object classification
This commit is contained in:
parent
9d7f5e5438
commit
93fd0fa775
@ -151,6 +151,9 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
|
||||
)
|
||||
|
||||
if score >= camera_config.threshold :
|
||||
sub_label = self.labelmap[best_id]
|
||||
|
||||
if sub_label.lower() != "none":
|
||||
self.requestor.send_data(
|
||||
f"{camera}/classification/{self.model_config.name}",
|
||||
self.labelmap[best_id],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user