fix zone config

This commit is contained in:
Blake Blackshear 2021-01-18 06:38:26 -06:00
parent ccb668a1b6
commit 70167a34b6

View File

@ -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])