matrice 1.0.99300__py3-none-any.whl → 1.0.99301__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.
@@ -697,7 +697,8 @@ class ColorDetectionUseCase(BaseProcessor):
697
697
  summary = {
698
698
  "total_count": sum(counts.values()),
699
699
  "per_category_count": counts,
700
- "detections": detections
700
+ "detections": detections,
701
+ "dominant_colors": {},
701
702
  }
702
703
  print("-------------------summary-------------------")
703
704
  print(summary)
@@ -714,12 +715,15 @@ class ColorDetectionUseCase(BaseProcessor):
714
715
 
715
716
  for category, colors in category_colors.items():
716
717
  if colors:
717
- dominant_color = max(colors.items(), key=lambda x: x[1])
718
- summary["dominant_colors"][category] = {
719
- "color": dominant_color[0],
720
- "count": dominant_color[1],
721
- "percentage": round((dominant_color[1] / sum(colors.values())) * 100, 1)
722
- }
718
+ if "dominant_colors" not in summary:
719
+ summary["dominant_colors"] = {}
720
+ else:
721
+ dominant_color = max(colors.items(), key=lambda x: x[1])
722
+ summary["dominant_colors"][category] = {
723
+ "color": dominant_color[0],
724
+ "count": dominant_color[1],
725
+ "percentage": round((dominant_color[1] / sum(colors.values())) * 100, 1)
726
+ }
723
727
  print("-------------------summary2-------------------")
724
728
  print(summary)
725
729
  print("-------------------summary2-------------------")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99300
3
+ Version: 1.0.99301
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
@@ -170,7 +170,7 @@ matrice/deploy/utils/post_processing/usecases/car_part_segmentation.py,sha256=Jb
170
170
  matrice/deploy/utils/post_processing/usecases/cardiomegaly_classification.py,sha256=1P6DyOU6R1XKmQ-55BbKMU8CSsm4-wR5wS827UJG2JU,41244
171
171
  matrice/deploy/utils/post_processing/usecases/chicken_pose_detection.py,sha256=-e8di7Am-E-FCQFrSY8qJTO1aWtdRAVJoE-VKBgcyyI,29291
172
172
  matrice/deploy/utils/post_processing/usecases/child_monitoring.py,sha256=z3oymoqq4hDGwA8MkdEONZW_Vx5CAZmvzZaNLsqmCfw,39380
173
- matrice/deploy/utils/post_processing/usecases/color_detection.py,sha256=d-2kxYPuj3b_tk1N1oC6t45jJGY3HOk0uOFLdcKJlQo,70102
173
+ matrice/deploy/utils/post_processing/usecases/color_detection.py,sha256=YsY1EDx7Lq1es9-Jg1DJYyHPB4u0NskqaXwFovL2zn8,70289
174
174
  matrice/deploy/utils/post_processing/usecases/color_map_utils.py,sha256=SP-AEVcjLmL8rxblu-ixqUJC2fqlcr7ab4hWo4Fcr_k,2677
175
175
  matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py,sha256=pxhOH_hG4hq9yytNepbGMdk2W_lTG8D1_2RAagaPBkg,40252
176
176
  matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py,sha256=Ao1k5fJDYU_f6yZ8VO-jW8-esECV0-zY5Q570c_fako,35674
@@ -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.99300.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
- matrice-1.0.99300.dist-info/METADATA,sha256=-824AoninG204nz02GaM8rzGSbO6JgiSlZdodraEUlw,14624
249
- matrice-1.0.99300.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
- matrice-1.0.99300.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
- matrice-1.0.99300.dist-info/RECORD,,
247
+ matrice-1.0.99301.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
248
+ matrice-1.0.99301.dist-info/METADATA,sha256=Yie8iz9jzoz34X3E_TxfIZ0YnCZXW6vOw2-xx1vzuIw,14624
249
+ matrice-1.0.99301.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
250
+ matrice-1.0.99301.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
251
+ matrice-1.0.99301.dist-info/RECORD,,