Skip to content

[Support]: LRP is crashing in 0.16.0-beta3 #18849

Closed Answered by hawkeye217
ArtemVladimirov asked this question in Config Support
Discussion options

You must be logged in to vote

The issue here is that Frigate automatically adds a ^ and $ anchors to every regex in your known_plates list. But you've specified case insensitivity with (?i), which Python requires at the beginning of a regex. So the generated regex ends up being:

^(?i)(?:.*)?([HM][1I]{3}[HM]C59)(?:.*)?$

which is invalid because (?i) is not at the beginning.

You can solve your issue by specifying both cases in the regex itself:

known_plates:
  Lexus:
    # Original: (?i).*([HM][1I]{3}[HM]C59).*
    - '.*([HMhm][1I]{3}[HMhm][Cc]59).*'
  Velar:
    # Original: (?i).*[HM][1I]59PP159.*
    - '.*[HMhm][1I]59[Pp][Pp]159.*'
  Mazda:
    # Original: (?i).*K818TB159.*
    - '.*[Kk]818[Tt][Bb]159.*'
  Evoque:
   …

Replies: 2 comments

Comment options

NickM-27
Jun 24, 2025
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ArtemVladimirov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment