Skip to content

NVR with realtime local object detection for IP cameras

Use escapse string in get_intel_gpu_stats (#13452)

Martin Weineltecaba82c9d9e
diff --git a/frigate/util/services.py b/frigate/util/services.py
index 7119067bbd..16f46e1149 100644
--- a/frigate/util/services.py
+++ b/frigate/util/services.py
@@ -296,7 +296,7 @@ def get_intel_gpu_stats() -> dict[str, str]:
# video is used for vaapi
video = []
- for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
+ for result in re.findall(r'"Video/\d":{[a-z":\d.,%]+}', reading):
packet = json.loads(result[10:])
single = packet.get("busy", 0.0)
video.append(float(single))