matrice 1.0.99279__py3-none-any.whl → 1.0.99281__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py +12 -1
- matrice/deploy/utils/post_processing/usecases/fire_detection.py +2 -0
- {matrice-1.0.99279.dist-info → matrice-1.0.99281.dist-info}/METADATA +1 -1
- {matrice-1.0.99279.dist-info → matrice-1.0.99281.dist-info}/RECORD +7 -7
- {matrice-1.0.99279.dist-info → matrice-1.0.99281.dist-info}/WHEEL +0 -0
- {matrice-1.0.99279.dist-info → matrice-1.0.99281.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99279.dist-info → matrice-1.0.99281.dist-info}/top_level.txt +0 -0
@@ -401,11 +401,22 @@ class _RealTimeJsonEventPicker:
|
|
401
401
|
elif self._hit_counter<0:
|
402
402
|
self._hit_counter=0
|
403
403
|
|
404
|
+
if len(self._sequence) == 1:
|
405
|
+
if incidents.get("human_text")=="Event Over":
|
406
|
+
event = {
|
407
|
+
"type": "event_end",
|
408
|
+
"frame_id": frame_id,
|
409
|
+
"video_timestamp_secs": int(frame_id)/30
|
410
|
+
}
|
411
|
+
self.reset()
|
412
|
+
self.send_api_call(frame_json)
|
413
|
+
return event
|
414
|
+
|
404
415
|
else:
|
405
416
|
# No detections in this frame
|
406
417
|
if len(self._sequence) == 1: # Waiting for final idle period
|
407
418
|
self._hit_counter += 1
|
408
|
-
if self._hit_counter >= self._end_threshold:
|
419
|
+
if (self._hit_counter >= self._end_threshold) or (incidents.get("human_text")=="Event Over"):
|
409
420
|
event = {
|
410
421
|
"type": "event_end",
|
411
422
|
"frame_id": frame_id,
|
@@ -484,6 +484,8 @@ class FireSmokeUseCase(BaseProcessor):
|
|
484
484
|
incident_id = 4
|
485
485
|
if len(self.id_timing_list)>0 and len(self.id_timing_list)==incident_id:
|
486
486
|
start_timestamp = self.id_timing_list[-1]
|
487
|
+
if len(self.id_timing_list)>0 and len(self.id_timing_list)>4 and level=='critical':
|
488
|
+
start_timestamp = self.id_timing_list[-1]
|
487
489
|
|
488
490
|
alert_settings=[]
|
489
491
|
if config.alert_config and hasattr(config.alert_config, 'alert_type'):
|
@@ -109,7 +109,7 @@ matrice/deploy/client/auto_streaming/auto_streaming.py,sha256=VRfy_EBFvhspN-hoN3
|
|
109
109
|
matrice/deploy/client/auto_streaming/auto_streaming_utils.py,sha256=BuRUokLp3t43yzRF8YSX9p_RHQD94RoBwNEoldXFDQo,14995
|
110
110
|
matrice/deploy/client/streaming_gateway/__init__.py,sha256=hkYC0qszaXZThquMuuI20Qkt_AHCB3pdy7jlJVeqPN4,1203
|
111
111
|
matrice/deploy/client/streaming_gateway/streaming_gateway.py,sha256=r8Z5AXBom89n-8W5RTlB-nOeUaprxK-QBDsAb-E9gl8,19605
|
112
|
-
matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=
|
112
|
+
matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=cFoKEf6iusht1GjuCV0ChESDKGwqVT99wAss-u85WJc,42623
|
113
113
|
matrice/deploy/client/streaming_gateway/streaming_results_handler.py,sha256=OpHkdbnuqVN28tQm9CYwrfgAth3Qz40Uaq5Tg4bbxyo,15813
|
114
114
|
matrice/deploy/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
matrice/deploy/server/server.py,sha256=duki4KUU1tvW3Y7wkrlMRVvt7bAP2QqSIsrSogLxC4o,36799
|
@@ -183,7 +183,7 @@ matrice/deploy/utils/post_processing/usecases/face_emotion.py,sha256=eRfqBdryB0u
|
|
183
183
|
matrice/deploy/utils/post_processing/usecases/face_recognition.py,sha256=T5xAuv6b9OrkmTmoXgZs4LZ5XUsbvp9xCpeLBwdu7eI,40231
|
184
184
|
matrice/deploy/utils/post_processing/usecases/fashion_detection.py,sha256=f9gpzMDhIW-gyn46k9jgf8nY7YeoqAnTxGOzksabFbE,40457
|
185
185
|
matrice/deploy/utils/post_processing/usecases/field_mapping.py,sha256=JDwYX8pd2W-waDvBh98Y_o_uchJu7wEYbFxOliA4Iq4,39822
|
186
|
-
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=
|
186
|
+
matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=EVY8uZ4e1g6XUKsHLtngy82_aXkQlINjrSFRH_AoYA0,49624
|
187
187
|
matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=-egmS3Hs_iGOLeCMfapbkfQ04EWtZx97QRuUcDa-jMU,45340
|
188
188
|
matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7qMx9Ztxg_hy9KTVX-3qBhAN-QwDt_Yigf9fFjLus,52017
|
189
189
|
matrice/deploy/utils/post_processing/usecases/gas_leak_detection.py,sha256=KL2ft7fXvjTas-65-QgcJm3W8KBsrwF44qibSXjfaLc,40557
|
@@ -244,8 +244,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
|
|
244
244
|
matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
|
245
245
|
matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
|
246
246
|
matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
|
247
|
-
matrice-1.0.
|
248
|
-
matrice-1.0.
|
249
|
-
matrice-1.0.
|
250
|
-
matrice-1.0.
|
251
|
-
matrice-1.0.
|
247
|
+
matrice-1.0.99281.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
248
|
+
matrice-1.0.99281.dist-info/METADATA,sha256=nN3PZnJXlOeNsWNQPfT_O4QBiKmEHg5IqoDcT3fiCpg,14624
|
249
|
+
matrice-1.0.99281.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
250
|
+
matrice-1.0.99281.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
251
|
+
matrice-1.0.99281.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|