matrice 1.0.99242__py3-none-any.whl → 1.0.99244__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.
@@ -360,7 +360,7 @@ class AutoStreaming:
360
360
 
361
361
  return self.streaming_gateways
362
362
 
363
- def start(self) -> bool:
363
+ def start(self, send_to_api: bool = False) -> bool:
364
364
  """
365
365
  Start auto streaming for all configured streaming gateways.
366
366
 
@@ -388,7 +388,7 @@ class AutoStreaming:
388
388
  # Create and start streaming thread
389
389
  thread = threading.Thread(
390
390
  target=self._streaming_worker,
391
- args=(gateway_id, gateway),
391
+ args=(gateway_id, gateway, send_to_api),
392
392
  name=f"AutoStream-{gateway_id}",
393
393
  daemon=True,
394
394
  )
@@ -421,7 +421,7 @@ class AutoStreaming:
421
421
  )
422
422
  return True
423
423
 
424
- def _streaming_worker(self, gateway_id: str, gateway: StreamingGateway):
424
+ def _streaming_worker(self, gateway_id: str, gateway: StreamingGateway, send_to_api: bool = False):
425
425
  """
426
426
  Worker thread for streaming a specific gateway.
427
427
 
@@ -431,7 +431,7 @@ class AutoStreaming:
431
431
  """
432
432
  try:
433
433
  # Start streaming
434
- success = gateway.start_streaming()
434
+ success = gateway.start_streaming(send_to_api=send_to_api)
435
435
 
436
436
  if success:
437
437
  AutoStreamingUtils.update_stream_status(
@@ -422,13 +422,10 @@ class IntrusionUseCase(BaseProcessor):
422
422
  self._ascending_alert_list.append(0)
423
423
 
424
424
  human_text_lines.append(f"\t\t- Zone name: {zone_name}")
425
- if zone_name == "Boarding Entrance":
426
- human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Gate: {zone_total}")
427
- elif zone_name == "Boarding Booth":
428
- human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Booth: {zone_total}")
425
+ human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Gate: {zone_total}")
429
426
  # Main people counting incident
430
427
  human_text = "\n".join(human_text_lines)
431
- event= self.create_incident(incident_id=self.CASE_TYPE+'_'+'zone_'+zone_name+str(frame_id), incident_type=self.CASE_TYPE,
428
+ event = self.create_incident(incident_id=self.CASE_TYPE+'_'+'zone_'+zone_name+str(frame_id), incident_type=self.CASE_TYPE,
432
429
  severity_level=zone_level, human_text=human_text, camera_info=camera_info, alerts=alerts, alert_settings=alert_settings,
433
430
  start_time=start_timestamp, end_time=self.current_incident_end_timestamp,
434
431
  level_settings= {"low": 1, "medium": 3, "significant":4, "critical": 7})
@@ -557,17 +554,14 @@ class IntrusionUseCase(BaseProcessor):
557
554
  return zone_count
558
555
  else:
559
556
  return 0
560
- human_text_lines.append(f"\t- Total count in Prohibited Boarding Area: {total_people}")
557
+ human_text_lines.append(f"\t- Total count in Prohibited Boarding Gate: {total_people}")
561
558
  human_text_lines.append("")
562
559
  human_text_lines.append(f"TOTAL SINCE @ {start_timestamp}:")
563
560
 
564
561
  for zone_name, zone_count in zone_analysis.items():
565
562
  zone_total = robust_zone_total(zone_count)
566
563
  human_text_lines.append(f"\t- Zone name: {zone_name}")
567
- if zone_name == "Boarding Entrance":
568
- human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Gate: {zone_total}")
569
- elif zone_name == "Boarding Booth":
570
- human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Booth: {zone_total}")
564
+ human_text_lines.append(f"\t\t\t- Total count in Prohibited Boarding Gate: {zone_total}")
571
565
  # human_text_lines.append(f"\t\t- Total count in Prohibited Boarding Gate: {zone_total-1}")
572
566
 
573
567
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99242
3
+ Version: 1.0.99244
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
@@ -104,7 +104,7 @@ matrice/deploy/client/client_stream_utils.py,sha256=IcJf8Xn8VMrvxplKqSP5qNIwvu8-
104
104
  matrice/deploy/client/client_utils.py,sha256=cJ47Q-BWkYCXMdCz__6VlfpMroq1kb8tZ887rdOZI24,14548
105
105
  matrice/deploy/client/frame_comparators.py,sha256=s5K-C3N2yeVz8XSPdvmKO_MX8x6rLKgd6Bs6DEBpaNw,20536
106
106
  matrice/deploy/client/auto_streaming/__init__.py,sha256=4mwoPkADPDWGwxokxFgL2HFppqsIlym29634iXvBcR0,413
107
- matrice/deploy/client/auto_streaming/auto_streaming.py,sha256=8XyBYJsvuzkPKadmEu_O8OK-3-d8bgw6jsKQhPhtZfY,25447
107
+ matrice/deploy/client/auto_streaming/auto_streaming.py,sha256=uccYMz2-5YxiB4J4oTfNgyMp6A8UvGkmSyVXkG1WGC4,25537
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
@@ -188,7 +188,7 @@ matrice/deploy/utils/post_processing/usecases/flower_segmentation.py,sha256=4I7q
188
188
  matrice/deploy/utils/post_processing/usecases/gas_leak_detection.py,sha256=KL2ft7fXvjTas-65-QgcJm3W8KBsrwF44qibSXjfaLc,40557
189
189
  matrice/deploy/utils/post_processing/usecases/gender_detection.py,sha256=DEnCTRew6B7DtPcBQVCTtpd_IQMvMusBcu6nadUg2oM,40107
190
190
  matrice/deploy/utils/post_processing/usecases/human_activity_recognition.py,sha256=SLyvbw1y_nEQ0AlT-ErpeSydjA8U5yfRPrjMx1t3Yz0,42226
191
- matrice/deploy/utils/post_processing/usecases/intrusion_detection.py,sha256=WkQaJt6nL1KR4kC13SLIaXhjqNZMju9qjcgUY1uOO5E,77912
191
+ matrice/deploy/utils/post_processing/usecases/intrusion_detection.py,sha256=oyr_BX6LnY42saGujDescVIYdRDR9elmmPwM7JwFUzQ,77461
192
192
  matrice/deploy/utils/post_processing/usecases/leaf.py,sha256=cwgB1ZNxkQFtkk-thSJrkXOGou1ghJr1kqtopb3sLD4,37036
193
193
  matrice/deploy/utils/post_processing/usecases/leaf_disease.py,sha256=bkiLccTdf4KUq3he4eCpBlKXb5exr-WBhQ_oWQ7os68,36225
194
194
  matrice/deploy/utils/post_processing/usecases/leak_detection.py,sha256=oOCLLVMuXVeXPHyN8FUrD3U9JYJJwIz-5fcEMgvLdls,40531
@@ -242,8 +242,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
242
242
  matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
243
243
  matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
244
244
  matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
245
- matrice-1.0.99242.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
246
- matrice-1.0.99242.dist-info/METADATA,sha256=l8osThgC_or1VtVsMdKYK9recYFQg_ZZLb4D1VdFpbs,14624
247
- matrice-1.0.99242.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
248
- matrice-1.0.99242.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
249
- matrice-1.0.99242.dist-info/RECORD,,
245
+ matrice-1.0.99244.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
246
+ matrice-1.0.99244.dist-info/METADATA,sha256=s8O6k7WpOGpfOdZrS6SMNjwF_0-glIo5j4KBhg2_QNA,14624
247
+ matrice-1.0.99244.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
248
+ matrice-1.0.99244.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
249
+ matrice-1.0.99244.dist-info/RECORD,,