Feature request: suppress repeat LPR reads of stationary (parked) vehicles

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

needs-triage
What problem would this solve?
Summary

When a camera overlooks a driveway with parked cars, every event on that camera re-reads the parked cars' plates and uploads them to Protect, even when those vehicles haven't moved and aren't the subject of the event. A car passing on the street, or a person walking up the drive, produces fresh "detections" of my own parked cars. The Licence Plates view in Protect fills with repeats of the same one or two plates.

Setup
  • Keystone v0.1.9, keystone-aio:0.1.9-intel on Unraid (OpenVINO, Intel Iris Xe)
  • Protect 7.4.114 on a UDM Pro
  • AI Key path only (AI Port disabled)
  • Cameras: G4 Pro overlooking the driveway and street, Doorbell Lite facing the driveway
  • Legacy Camera Enhancement enabled with "All Motion" on the driveway camera
  • lpr.enabled: true, lpr.native_protect: true, both household plates mapped under vehicles:
What happens
  1. Two cars are parked on the driveway, both in view.
  2. An unrelated car drives past on the street, creating a motion event.
  3. Keystone scans the event frames, finds the two parked plates, and uploads both to Protect.
  4. Protect records a new plate detection for each parked car.

This repeats for every motion event. In my case that was 35+ entries for the same two plates in a morning, e.g.:

LPR event=... cam=... plates=['AB12CDE:1.00', 'FG34HIJ:1.00'] (3 frames, 432ms)
Captioned event=...: 'A light-coloured car passes along the street...'

The caption correctly describes a passing car, but the plates attached to the event are the two stationary ones.

What would you like Keystone to do?
What I'd like

An option to avoid re-reporting a plate that hasn't moved. Any of these would solve it:

  • Stationary suppression: skip uploading a plate whose bounding box is in (roughly) the same position across the event's frames, and/or the same position as its last sighting on that camera.
  • Per-plate cooldown: e.g. lpr.repeat_cooldown_seconds, so the same plate on the same camera isn't uploaded again within N minutes unless its position has changed.
  • Report-on-change for known vehicles: for plates listed under vehicles:, only upload when the vehicle arrives, leaves or moves.
  • An ignore zone per camera, as a fallback, where plate reads are still used for captions/identities but not uploaded to Protect.

Ideally the plate would still be available to the captioner, so a caption can say "Alice's sedan pulls out of the driveway" when it does move.

Workarounds or alternatives you've tried
Workarounds tried
  • Turning off "All Motion" in Legacy Camera Enhancement stops the repeats, but Protect then reports lpr: false in protectAiSettings and discards all plate uploads, so this disables LPR entirely.
  • Shrinking the camera's motion zone to exclude the street reduces it, but any motion on the driveway itself (a person walking past the cars) still triggers a re-read.
  • lpr.native_protect: false stops every plate reaching Protect, not just the repeats.
  • A privacy mask over the parked cars would work but blacks out that part of the recording.
Your setup

7.4.114

Would you like to work on this?

None

Dominant language
Python
Stars
1k
Forks
114
Avg merge
1h 8m
Merged PRs (30d)
147

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seeARMS/keystone

All issues in seeARMS/keystone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.