matrice 1.0.99262__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."""
@@ -254,9 +254,6 @@ class FireSmokeUseCase(BaseProcessor):
254
254
  usecase=self.name,
255
255
  category=self.category,
256
256
  context=context)
257
- print("-----------------------------------------------")
258
- print(tracking_stats)
259
- print("-----------------------------------------------")
260
257
  return result
261
258
 
262
259
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99262
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
@@ -182,7 +182,7 @@ matrice/deploy/utils/post_processing/usecases/face_emotion.py,sha256=eRfqBdryB0u
182
182
  matrice/deploy/utils/post_processing/usecases/face_recognition.py,sha256=T5xAuv6b9OrkmTmoXgZs4LZ5XUsbvp9xCpeLBwdu7eI,40231
183
183
  matrice/deploy/utils/post_processing/usecases/fashion_detection.py,sha256=f9gpzMDhIW-gyn46k9jgf8nY7YeoqAnTxGOzksabFbE,40457
184
184
  matrice/deploy/utils/post_processing/usecases/field_mapping.py,sha256=JDwYX8pd2W-waDvBh98Y_o_uchJu7wEYbFxOliA4Iq4,39822
185
- matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=_s--Vc3_5owzoW6EF4zoKLQuis1LPpDd3HrNxBfg4Zw,47894
185
+ matrice/deploy/utils/post_processing/usecases/fire_detection.py,sha256=N1e65cZoaZLqYuspC6NAilO-0u6i9EOWFKCdD9YlmAs,47722
186
186
  matrice/deploy/utils/post_processing/usecases/flare_analysis.py,sha256=-egmS3Hs_iGOLeCMfapbkfQ04EWtZx97QRuUcDa-jMU,45340
187
187
  matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7qMx9Ztxg_hy9KTVX-3qBhAN-QwDt_Yigf9fFjLus,52017
188
188
  matrice/deploy/utils/post_processing/usecases/gas_leak_detection.py,sha256=KL2ft7fXvjTas-65-QgcJm3W8KBsrwF44qibSXjfaLc,40557
@@ -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.99262.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
247
- matrice-1.0.99262.dist-info/METADATA,sha256=fJGRELZIZR3e6xpTeNgdf3jVQz-Mi4Sl1dBhmWobw-o,14624
248
- matrice-1.0.99262.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
249
- matrice-1.0.99262.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
250
- matrice-1.0.99262.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,,