diff --git a/alarm/src/application/services/impl/AlarmServiceImpl.ts b/alarm/src/application/services/impl/AlarmServiceImpl.ts index 490e85a2f..b45f3ce54 100644 --- a/alarm/src/application/services/impl/AlarmServiceImpl.ts +++ b/alarm/src/application/services/impl/AlarmServiceImpl.ts @@ -77,7 +77,9 @@ export class AlarmServiceImpl implements AlarmService { private async checkIntrusion(detection: Detection): Promise { return this.getActiveIntrusionRules().then(rules => - rules.find(rule => rule.activeOn === detection.sourceDeviceId && rule.objectClass === detection.objectClass) + rules.find( + rule => rule.activeOn === detection.sourceDeviceId && rule.objectClass === detection.objectClass + ) ) } diff --git a/recognition/app/application/Recognizer.py b/recognition/app/application/Recognizer.py index 67935f55d..79128bc56 100644 --- a/recognition/app/application/Recognizer.py +++ b/recognition/app/application/Recognizer.py @@ -20,7 +20,8 @@ def __init__(self, camera_code: str, rtsp_stream_url: str): self._recognized_objects: [str] = [] if ENV != "test": self._net = cv.dnn_DetectionModel( - os.path.abspath(f"{yolo_resource}/yolov3.weights"), os.path.abspath(f"{yolo_resource}/yolov3.cfg") + os.path.abspath(f"{yolo_resource}/yolov3.weights"), + os.path.abspath(f"{yolo_resource}/yolov3.cfg"), ) self._net.setInputSize(320, 320) self._net.setInputScale(1.0 / 255)