mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-09 16:22:48 +03:00
Fix LPR vehicle message for multiple models (#24119)
* use the camera's model for the lpr vehicle check `FrigateConfig.model` became `models[]` in the detector refactor, so this didn't compile on 0.19. Each camera has its own detector/model pair now, so the check resolves the camera's scene with `getModelForCamera` instead of looking at every model. * use camera config model * fix export test
This commit is contained in:
committed by
Nicolas Mowen
parent
98706482f5
commit
aaf18b81b2
@@ -63,7 +63,7 @@ class CameraState:
|
||||
self.lpr_min_obj_area: int = 0
|
||||
self.lp_objects = {
|
||||
label
|
||||
for label, attributes in config.model.attributes_map.items()
|
||||
for label, attributes in self.model.attributes_map.items()
|
||||
if "license_plate" in attributes
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user