mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
fix zone config
This commit is contained in:
parent
b10b64bf57
commit
91628bd5d8
@ -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