mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 09:07:41 +03:00
Cleanup
This commit is contained in:
parent
103da04bbf
commit
04e97e6e52
@ -1149,7 +1149,7 @@ def set_plate(
|
|||||||
|
|
||||||
request.app.event_metadata_updater.publish(
|
request.app.event_metadata_updater.publish(
|
||||||
(event_id, "recognized_license_plate", new_plate, new_score),
|
(event_id, "recognized_license_plate", new_plate, new_score),
|
||||||
EventMetadataTypeEnum.attribute,
|
EventMetadataTypeEnum.attribute.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
|
|||||||
@ -46,5 +46,4 @@ class EventMetadataSubscriber(Subscriber):
|
|||||||
if payload is None:
|
if payload is None:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
topic = EventMetadataTypeEnum[topic[len(self.topic_base) :]]
|
|
||||||
return (topic, payload)
|
return (topic, payload)
|
||||||
|
|||||||
@ -1546,7 +1546,7 @@ class LicensePlateProcessingMixin:
|
|||||||
)
|
)
|
||||||
self.sub_label_publisher.publish(
|
self.sub_label_publisher.publish(
|
||||||
(id, "recognized_license_plate", top_plate, avg_confidence),
|
(id, "recognized_license_plate", top_plate, avg_confidence),
|
||||||
EventMetadataTypeEnum.attribute,
|
EventMetadataTypeEnum.attribute.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
# save the best snapshot for dedicated lpr cams not using frigate+
|
# save the best snapshot for dedicated lpr cams not using frigate+
|
||||||
|
|||||||
@ -303,7 +303,7 @@ class CustomObjectClassificationProcessor(RealTimeProcessorApi):
|
|||||||
):
|
):
|
||||||
self.sub_label_publisher.publish(
|
self.sub_label_publisher.publish(
|
||||||
(obj_data["id"], self.model_config.name, sub_label, score),
|
(obj_data["id"], self.model_config.name, sub_label, score),
|
||||||
EventMetadataTypeEnum.attribute,
|
EventMetadataTypeEnum.attribute.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle_request(self, topic, request_data):
|
def handle_request(self, topic, request_data):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user