matrice 1.0.99263__py3-none-any.whl → 1.0.99264__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.
@@ -372,7 +372,8 @@ class _RealTimeJsonEventPicker:
372
372
  A dictionary describing the detected event or ``None`` if no event
373
373
  boundary was reached for the supplied frame.
374
374
  """
375
- incidents = frame_json.get("result").get("value").get("agg_summary")[str(frame_id)].get("incidents") or []
375
+ #incidents = frame_json.get("result").get("value").get("agg_summary")[str(frame_id)].get("incidents") or []
376
+ incidents = frame_json.get("result").get("value").get("agg_apps")[0].get("agg_summary")[str(frame_id)].get("incidents") or []
376
377
  has_alerts = bool(incidents and incidents.get("alerts")[0])
377
378
 
378
379
  if has_alerts:
@@ -317,7 +317,8 @@ class StreamingResultsHandler:
317
317
  raise
318
318
  def _send_file_to_api_(self, frame_json):
319
319
  """Send file to API."""
320
- frame_id = list(frame_json.get("result").get("value").get("agg_summary").keys())[0]
320
+ # frame_id = list(frame_json.get("result").get("value").get("agg_summary").keys())[0]
321
+ frame_id = list(frame_json.get("result").get("value").get("agg_apps")[0].get("agg_summary").keys())[0]
321
322
  return self.json_event_picker.process(int(frame_id), frame_json)
322
323
  def _cleanup_old_files(self):
323
324
  """Remove old result files if exceeding max_files limit."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99263
3
+ Version: 1.0.99264
4
4
  Summary: SDK for connecting to matrice.ai services
5
5
  Home-page: https://github.com/matrice-ai/python-sdk
6
6
  Author: Matrice.ai
@@ -108,8 +108,8 @@ matrice/deploy/client/auto_streaming/auto_streaming.py,sha256=VRfy_EBFvhspN-hoN3
108
108
  matrice/deploy/client/auto_streaming/auto_streaming_utils.py,sha256=BuRUokLp3t43yzRF8YSX9p_RHQD94RoBwNEoldXFDQo,14995
109
109
  matrice/deploy/client/streaming_gateway/__init__.py,sha256=hkYC0qszaXZThquMuuI20Qkt_AHCB3pdy7jlJVeqPN4,1203
110
110
  matrice/deploy/client/streaming_gateway/streaming_gateway.py,sha256=r8Z5AXBom89n-8W5RTlB-nOeUaprxK-QBDsAb-E9gl8,19605
111
- matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=_hPwoCn_l_OTdB0VXvpAV2NkA0UksYHUEZJsq6ugAe8,42009
112
- matrice/deploy/client/streaming_gateway/streaming_results_handler.py,sha256=KTT-AADM0vw1QW1-mkYwLtZOAfC6KT68k3y6ot5dbOU,15700
111
+ matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py,sha256=znNZkzG9W7VeZPKUxzgxHiW1GqvD-oA-McZSnMiBm1E,42144
112
+ matrice/deploy/client/streaming_gateway/streaming_results_handler.py,sha256=OpHkdbnuqVN28tQm9CYwrfgAth3Qz40Uaq5Tg4bbxyo,15813
113
113
  matrice/deploy/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
114
114
  matrice/deploy/server/server.py,sha256=duki4KUU1tvW3Y7wkrlMRVvt7bAP2QqSIsrSogLxC4o,36799
115
115
  matrice/deploy/server/stream_worker.py,sha256=KDNlYep4Bg1xhHwDrwY9kfxsJfFtATydiYbzVDt58vs,20481
@@ -243,8 +243,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
243
243
  matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
244
244
  matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
245
245
  matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
246
- matrice-1.0.99263.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
247
- matrice-1.0.99263.dist-info/METADATA,sha256=6Q8MwVSw6nCPXg1p_PLd1B-zFdBk5tFbVEH-XApMYhE,14624
248
- matrice-1.0.99263.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
249
- matrice-1.0.99263.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
250
- matrice-1.0.99263.dist-info/RECORD,,
246
+ matrice-1.0.99264.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
247
+ matrice-1.0.99264.dist-info/METADATA,sha256=_2o9NOe0Kq4cwjZzBR0PnXGW1_Alh0OTTUYeIJgmdBc,14624
248
+ matrice-1.0.99264.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
249
+ matrice-1.0.99264.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
250
+ matrice-1.0.99264.dist-info/RECORD,,