mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix zone config
This commit is contained in:
parent
ccb668a1b6
commit
70167a34b6
@ -765,7 +765,7 @@ class DetectConfig():
|
||||
class ZoneConfig():
|
||||
def __init__(self, name, config):
|
||||
self._coordinates = config['coordinates']
|
||||
self._filters = { name: FilterConfig(c) for name, c in config['filters'].items() }
|
||||
self._filters = { name: FilterConfig(c, c) for name, c in config['filters'].items() }
|
||||
|
||||
if isinstance(self._coordinates, list):
|
||||
self._contour = np.array([[int(p.split(',')[0]), int(p.split(',')[1])] for p in self._coordinates])
|
||||
|
Loading…
Reference in New Issue
Block a user