From 1fec49500ead8db48db884071b2f55794e3670e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Tue, 28 Jul 2026 09:14:54 +0000 Subject: [PATCH] Refactor pixel change threshold comment formatting for clarity --- machinery/src/computervision/main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/machinery/src/computervision/main.go b/machinery/src/computervision/main.go index b6f1f7c..ef03f4d 100644 --- a/machinery/src/computervision/main.go +++ b/machinery/src/computervision/main.go @@ -231,12 +231,12 @@ func ProcessMotion(motionCursor *packets.QueueCursor, configuration *models.Conf "mainWidth": configuration.Config.Capture.IPCamera.Width, "mainHeight": configuration.Config.Capture.IPCamera.Height, "regions": motionRectangles, - "polygon": regionPolygons, // Motion sensitivity = the pixel-change threshold that must - // be exceeded before motion triggers. The live view renders - // a reference square of sqrt(threshold) px (in this MOTION - // frame's pixel space) so the user can visually gauge how - // large a moving object must be before it is detected. - "pixelChangeThreshold": pixelThreshold, }, + "polygon": regionPolygons, // Motion sensitivity = the pixel-change threshold that must + // be exceeded before motion triggers. The live view renders + // a reference square of sqrt(threshold) px (in this MOTION + // frame's pixel space) so the user can visually gauge how + // large a moving object must be before it is detected. + "pixelChangeThreshold": pixelThreshold}, }, } payload, err := models.PackageMQTTMessage(configuration, message)