mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
Don't set sub label for none object classification
This commit is contained in:
parent
9d7f5e5438
commit
93fd0fa775
@ -150,11 +150,14 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
|
||||
score,
|
||||
)
|
||||
|
||||
if score >= camera_config.threshold:
|
||||
self.requestor.send_data(
|
||||
f"{camera}/classification/{self.model_config.name}",
|
||||
self.labelmap[best_id],
|
||||
)
|
||||
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],
|
||||
)
|
||||
|
||||
def handle_request(self, topic, request_data):
|
||||
if topic == EmbeddingsRequestEnum.reload_classification_model.value:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user