Puma7 e9432d55e8
log(masks): include camera name in invalid-coordinates error (#23156)
get_relative_coordinates() previously logged
"Not applying mask due to invalid coordinates. X,Y is outside ..."
without naming the camera, so on a multi-camera setup the user had
to guess which one to fix.

Add an optional camera_name kwarg with default "" (no behavior
change for existing callers). The global object-mask path in
FrigateConfig.validate_config passes camera_name=camera_config.name
since it already has it in scope, so legacy configs with absolute
pixel coordinates now get an actionable log line:

  Not applying mask due to invalid coordinates for camera back.
  9000,9000 is outside of the detection resolution 800x400.
  Use the editor in the UI to correct the mask.

Existing wording is preserved verbatim except for the inserted
" for camera <name>" segment. Runtime behavior is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
2026-05-10 15:21:44 -05:00
..
2026-05-07 08:53:07 -05:00
2026-05-02 16:35:42 -06:00
2026-03-26 12:54:12 -06:00
2026-05-05 16:33:43 -05:00
2026-04-29 16:20:19 -06:00
2026-04-28 08:54:09 -06:00
2026-05-10 12:09:28 -05:00
2026-05-01 11:25:26 -06:00
2026-05-10 12:09:28 -05:00
2026-05-07 08:53:07 -05:00
2026-05-07 12:23:02 -06:00
2026-05-07 12:23:02 -06:00
2026-04-30 12:53:34 -05:00
2026-03-26 13:47:24 -05:00
2026-02-03 13:29:52 -06:00
2026-03-26 12:54:12 -06:00
2026-04-29 16:20:19 -06:00