From c1dff23e12fe199c2fc69e2778049cb0437dc057 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 12 Dec 2025 07:28:44 -0600 Subject: [PATCH] don't use python style raw prefixes in yaml examples in LPR docs --- docs/docs/configuration/license_plate_recognition.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/configuration/license_plate_recognition.md b/docs/docs/configuration/license_plate_recognition.md index f92a69de7..777ac5118 100644 --- a/docs/docs/configuration/license_plate_recognition.md +++ b/docs/docs/configuration/license_plate_recognition.md @@ -114,16 +114,16 @@ These rules must be defined at the global level of your `lpr` config. ```yaml lpr: replace_rules: - - pattern: r'[%#*?]' # Remove noise symbols + - pattern: "[%#*?]" # Remove noise symbols replacement: "" - - pattern: r'[= ]' # Normalize = or space to dash + - pattern: "[= ]" # Normalize = or space to dash replacement: "-" - pattern: "O" # Swap 'O' to '0' (common OCR error) replacement: "0" - - pattern: r'I' # Swap 'I' to '1' + - pattern: "I" # Swap 'I' to '1' replacement: "1" - - pattern: r'(\w{3})(\w{3})' # Split 6 chars into groups (e.g., ABC123 → ABC-123) - replacement: r'\1-\2' + - pattern: '(\w{3})(\w{3})' # Split 6 chars into groups (e.g., ABC123 → ABC-123) - use single quotes preserve backslashes + replacement: '\1-\2' ``` - Rules fire in order: In the example above: clean noise first, then separators, then swaps, then splits.