NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Dedicated LPR fixes (#17325)
Josh Hawkins678ae87c62af
diff --git a/docs/docs/configuration/license_plate_recognition.md b/docs/docs/configuration/license_plate_recognition.mdindex 979e42bd12..47dcfaa093 100644--- a/docs/docs/configuration/license_plate_recognition.md+++ b/docs/docs/configuration/license_plate_recognition.md@@ -133,8 +133,8 @@ Users with a dedicated LPR camera can run Frigate's LPR by specifying a camera t# LPR global configurationlpr:enabled: True- min_area: 2000min_plate_length: 4+ detection_threshold: 0.7 # change if necessary# Dedicated LPR camera configurationcameras:@@ -146,7 +146,7 @@ cameras:ffmpeg: ...detect:enabled: False # optional, disable Frigate's standard object detection pipeline- fps: 5+ fps: 5 # keep this at 5, higher values are unnecessary for dedicated LPR mode and could overwhelm the detectorwidth: 1920height: 1080motion:diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.pyindex 3bf94a550d..9bf2119f93 100644--- a/frigate/data_processing/common/license_plate/mixin.py+++ b/frigate/data_processing/common/license_plate/mixin.py@@ -1279,10 +1279,9 @@ class LicensePlateProcessingMixin:# save the best snapshotlogger.debug(f"Writing snapshot for {id}, {top_plate}, {current_time}")frame_bgr = cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_I420)- _, buffer = cv2.imencode(".jpg", frame_bgr)self.sub_label_publisher.publish(EventMetadataTypeEnum.save_lpr_snapshot,- (base64.b64encode(buffer).decode("ASCII"), id, camera),+ (base64.b64encode(frame_bgr).decode("ASCII"), id, camera),)self.detected_license_plates[id] = {