matrice 1.0.99216__tar.gz → 1.0.99218__tar.gz

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.
Files changed (252) hide show
  1. {matrice-1.0.99216/src/matrice.egg-info → matrice-1.0.99218}/PKG-INFO +1 -1
  2. {matrice-1.0.99216 → matrice-1.0.99218}/setup.py +1 -1
  3. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/config.py +4 -0
  4. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/core/config.py +29 -0
  5. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/processor.py +4 -0
  6. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/__init__.py +3 -0
  7. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/fire_detection.py +47 -7
  8. matrice-1.0.99218/src/matrice/deploy/utils/post_processing/usecases/human_activity.py +841 -0
  9. {matrice-1.0.99216 → matrice-1.0.99218/src/matrice.egg-info}/PKG-INFO +1 -1
  10. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice.egg-info/SOURCES.txt +1 -0
  11. {matrice-1.0.99216 → matrice-1.0.99218}/LICENSE.txt +0 -0
  12. {matrice-1.0.99216 → matrice-1.0.99218}/README.md +0 -0
  13. {matrice-1.0.99216 → matrice-1.0.99218}/setup.cfg +0 -0
  14. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/__init__.py +0 -0
  15. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/action.py +0 -0
  16. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/actionTracker.py +0 -0
  17. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/action_tracker.py +0 -0
  18. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/annotation.py +0 -0
  19. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/app_store.py +0 -0
  20. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/application.py +0 -0
  21. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute.py +0 -0
  22. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/__init__.py +0 -0
  23. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/action_instance.py +0 -0
  24. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/actions_manager.py +0 -0
  25. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/actions_scaledown_manager.py +0 -0
  26. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/instance_manager.py +0 -0
  27. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/instance_utils.py +0 -0
  28. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/prechecks.py +0 -0
  29. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/resources_tracker.py +0 -0
  30. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/scaling.py +0 -0
  31. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/shutdown_manager.py +0 -0
  32. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/compute_manager/task_utils.py +0 -0
  33. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/__init__.py +0 -0
  34. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/aug_server.py +0 -0
  35. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/aug_server_v2.py +0 -0
  36. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/__init__.py +0 -0
  37. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/base.py +0 -0
  38. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/__init__.py +0 -0
  39. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/bit_depth_reduction.py +0 -0
  40. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/blur.py +0 -0
  41. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/brightness_contrast.py +0 -0
  42. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/color_jitter.py +0 -0
  43. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/compression_artifacts.py +0 -0
  44. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/downscale_upscale.py +0 -0
  45. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/film_grain.py +0 -0
  46. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/flip.py +0 -0
  47. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/fog.py +0 -0
  48. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/horizontal_flip.py +0 -0
  49. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/hsv.py +0 -0
  50. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/iso_noise.py +0 -0
  51. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/low_light.py +0 -0
  52. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/posterize.py +0 -0
  53. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/rain.py +0 -0
  54. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/random_affine.py +0 -0
  55. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/salt_pepper.py +0 -0
  56. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/shadows.py +0 -0
  57. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/snow.py +0 -0
  58. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/speckle.py +0 -0
  59. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/augmentation_utils/strategies/sunflare.py +0 -0
  60. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/client.py +0 -0
  61. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/client_utils.py +0 -0
  62. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/create_dataset.py +0 -0
  63. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_augmentation.py +0 -0
  64. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_augmentor.py +0 -0
  65. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/__init__.py +0 -0
  66. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/imagenet_classification.py +0 -0
  67. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/labelbox_classification.py +0 -0
  68. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/labelbox_detection.py +0 -0
  69. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/mscoco_detection.py +0 -0
  70. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/pascalvoc_detection.py +0 -0
  71. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/unlabelled.py +0 -0
  72. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_davis_segmentation.py +0 -0
  73. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_detection_mscoco.py +0 -0
  74. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_imagenet_classification.py +0 -0
  75. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_kinetics_activity_recognition.py +0 -0
  76. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_mot_tracking.py +0 -0
  77. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_mscoco_detection.py +0 -0
  78. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/video_youtube_bb_tracking.py +0 -0
  79. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_formats/yolo_detection.py +0 -0
  80. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_labelling.py +0 -0
  81. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_prep.py +0 -0
  82. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/data_processor.py +0 -0
  83. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/image_augmentations.py +0 -0
  84. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/image_data_augmentation.py +0 -0
  85. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/new_data_augmentation.py +0 -0
  86. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/pipeline.py +0 -0
  87. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/server.py +0 -0
  88. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/server_utils.py +0 -0
  89. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/data_processing/video_server.py +0 -0
  90. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/dataset.py +0 -0
  91. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/__init__.py +0 -0
  92. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/__init__.py +0 -0
  93. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/aggregator.py +0 -0
  94. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/ingestor.py +0 -0
  95. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/pipeline.py +0 -0
  96. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/publisher.py +0 -0
  97. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/aggregator/synchronizer.py +0 -0
  98. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/__init__.py +0 -0
  99. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/auto_streaming/__init__.py +0 -0
  100. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/auto_streaming/auto_streaming.py +0 -0
  101. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/auto_streaming/auto_streaming_utils.py +0 -0
  102. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/client.py +0 -0
  103. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/client_stream_utils.py +0 -0
  104. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/client_utils.py +0 -0
  105. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/frame_comparators.py +0 -0
  106. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/streaming_gateway/__init__.py +0 -0
  107. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/streaming_gateway/streaming_gateway.py +0 -0
  108. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/streaming_gateway/streaming_gateway_utils.py +0 -0
  109. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/client/streaming_gateway/streaming_results_handler.py +0 -0
  110. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/__init__.py +0 -0
  111. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/__init__.py +0 -0
  112. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/batch_manager.py +0 -0
  113. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/cache_manager.py +0 -0
  114. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/inference_interface.py +0 -0
  115. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/model_manager.py +0 -0
  116. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/inference/triton_utils.py +0 -0
  117. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/proxy/__init__.py +0 -0
  118. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/proxy/proxy_interface.py +0 -0
  119. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/proxy/proxy_utils.py +0 -0
  120. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/server.py +0 -0
  121. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/server/stream_worker.py +0 -0
  122. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/__init__.py +0 -0
  123. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/boundary_drawing_internal/__init__.py +0 -0
  124. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/boundary_drawing_internal/boundary_drawing_internal.py +0 -0
  125. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.py +0 -0
  126. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/boundary_drawing_internal/example_usage.py +0 -0
  127. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/kafka_utils.py +0 -0
  128. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/__init__.py +0 -0
  129. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/__init__.py +0 -0
  130. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/base.py +0 -0
  131. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/config.py +0 -0
  132. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/kalman_filter.py +0 -0
  133. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/matching.py +0 -0
  134. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/strack.py +0 -0
  135. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/advanced_tracker/tracker.py +0 -0
  136. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/core/__init__.py +0 -0
  137. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/core/base.py +0 -0
  138. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/core/config_utils.py +0 -0
  139. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/__init__.py +0 -0
  140. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/run_tests.py +0 -0
  141. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_advanced_customer_service.py +0 -0
  142. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_basic_counting_tracking.py +0 -0
  143. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_comprehensive.py +0 -0
  144. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_config.py +0 -0
  145. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_customer_service.py +0 -0
  146. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_data_generators.py +0 -0
  147. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_people_counting.py +0 -0
  148. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_processor.py +0 -0
  149. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_utilities.py +0 -0
  150. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/test_cases/test_utils.py +0 -0
  151. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/Histopathological_Cancer_Detection_img.py +0 -0
  152. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/advanced_customer_service.py +0 -0
  153. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/age_detection.py +0 -0
  154. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/anti_spoofing_detection.py +0 -0
  155. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/assembly_line_detection.py +0 -0
  156. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/banana_defect_detection.py +0 -0
  157. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/basic_counting_tracking.py +0 -0
  158. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/blood_cancer_detection_img.py +0 -0
  159. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/car_damage_detection.py +0 -0
  160. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/car_part_segmentation.py +0 -0
  161. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/cardiomegaly_classification.py +0 -0
  162. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/chicken_pose_detection.py +0 -0
  163. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/child_monitoring.py +0 -0
  164. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/color_detection.py +0 -0
  165. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/color_map_utils.py +0 -0
  166. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/concrete_crack_detection.py +0 -0
  167. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/crop_weed_detection.py +0 -0
  168. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/customer_service.py +0 -0
  169. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/defect_detection_products.py +0 -0
  170. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/distracted_driver_detection.py +0 -0
  171. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/drowsy_driver_detection.py +0 -0
  172. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/emergency_vehicle_detection.py +0 -0
  173. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/face_emotion.py +0 -0
  174. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/face_recognition.py +0 -0
  175. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/fashion_detection.py +0 -0
  176. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/field_mapping.py +0 -0
  177. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/flare_analysis.py +0 -0
  178. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/flower_segmentation.py +0 -0
  179. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/gender_detection.py +0 -0
  180. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/human_activity_recognition.py +0 -0
  181. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/leaf.py +0 -0
  182. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/leaf_disease.py +0 -0
  183. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/leak_detection.py +0 -0
  184. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/license_plate_detection.py +0 -0
  185. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/litter_monitoring.py +0 -0
  186. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/mask_detection.py +0 -0
  187. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/parking.py +0 -0
  188. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/parking_space_detection.py +0 -0
  189. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/pedestrian_detection.py +0 -0
  190. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/people_counting.py +0 -0
  191. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/pipeline_detection.py +0 -0
  192. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/plaque_segmentation_img.py +0 -0
  193. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/pothole_segmentation.py +0 -0
  194. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/ppe_compliance.py +0 -0
  195. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/price_tag_detection.py +0 -0
  196. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/road_lane_detection.py +0 -0
  197. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/road_traffic_density.py +0 -0
  198. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/road_view_segmentation.py +0 -0
  199. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/shelf_inventory_detection.py +0 -0
  200. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/shoplifting_detection.py +0 -0
  201. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/shopping_cart_analysis.py +0 -0
  202. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/skin_cancer_classification_img.py +0 -0
  203. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/smoker_detection.py +0 -0
  204. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/solar_panel.py +0 -0
  205. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/template_usecase.py +0 -0
  206. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/theft_detection.py +0 -0
  207. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/traffic_sign_monitoring.py +0 -0
  208. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/underwater_pollution_detection.py +0 -0
  209. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/vehicle_monitoring.py +0 -0
  210. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/warehouse_object_segmentation.py +0 -0
  211. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/waterbody_segmentation.py +0 -0
  212. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/weapon_detection.py +0 -0
  213. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/weld_defect_detection.py +0 -0
  214. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/windmill_maintenance.py +0 -0
  215. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/usecases/wound_segmentation.py +0 -0
  216. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/__init__.py +0 -0
  217. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/advanced_counting_utils.py +0 -0
  218. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/advanced_helper_utils.py +0 -0
  219. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/advanced_tracking_utils.py +0 -0
  220. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/alerting_utils.py +0 -0
  221. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/category_mapping_utils.py +0 -0
  222. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/color_utils.py +0 -0
  223. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/counting_utils.py +0 -0
  224. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/filter_utils.py +0 -0
  225. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/format_utils.py +0 -0
  226. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/geometry_utils.py +0 -0
  227. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/smoothing_utils.py +0 -0
  228. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deploy/utils/post_processing/utils/tracking_utils.py +0 -0
  229. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deployment/__init__.py +0 -0
  230. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deployment/camera_manager.py +0 -0
  231. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deployment/deployment.py +0 -0
  232. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deployment/inference_pipeline.py +0 -0
  233. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/deployment/streaming_gateway_manager.py +0 -0
  234. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/docker_utils.py +0 -0
  235. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/drift_monitor.py +0 -0
  236. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/exported_model.py +0 -0
  237. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/local_test.py +0 -0
  238. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/metrics_calculator.py +0 -0
  239. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/metrics_calculator_oop.py +0 -0
  240. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/model_store.py +0 -0
  241. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/models.py +0 -0
  242. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/pipeline.py +0 -0
  243. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/projects.py +0 -0
  244. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/rpc.py +0 -0
  245. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/scaling.py +0 -0
  246. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/session.py +0 -0
  247. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/testing.py +0 -0
  248. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/token_auth.py +0 -0
  249. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice/utils.py +0 -0
  250. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice.egg-info/dependency_links.txt +0 -0
  251. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice.egg-info/requires.txt +0 -0
  252. {matrice-1.0.99216 → matrice-1.0.99218}/src/matrice.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice
3
- Version: 1.0.99216
3
+ Version: 1.0.99218
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
@@ -14,7 +14,7 @@ long_description = (here / "README.md").read_text(encoding="utf-8")
14
14
  setup(
15
15
  name="matrice",
16
16
 
17
- version = "1.0.99216",
17
+ version = "1.0.99218",
18
18
 
19
19
  description="SDK for connecting to matrice.ai services",
20
20
  long_description=long_description,
@@ -46,6 +46,8 @@ APP_NAME_TO_USECASE = {
46
46
  "litter_detection" : "litter_detection",
47
47
  "human_activity_recognition": "human_activity_recognition",
48
48
  "leak_detection": "leak_detection",
49
+ "fire_smoke_detection": "fire_smoke_detection",
50
+ "human_activity": "human_activity",
49
51
  }
50
52
 
51
53
  APP_NAME_TO_CATEGORY = {
@@ -96,6 +98,8 @@ APP_NAME_TO_CATEGORY = {
96
98
  "litter_detection" : "litter_detection",
97
99
  "human_activity_recognition": "general",
98
100
  "leak_detection": "oil_gas",
101
+ "fire_smoke_detection": "hazard",
102
+ "human_activity": "general",
99
103
  }
100
104
 
101
105
  def get_usecase_from_app_name(app_name: str) -> str:
@@ -514,6 +514,7 @@ class ConfigManager:
514
514
  'waterbody_segmentation': None,
515
515
  'litter_detection':None,
516
516
  'leak_detection': None,
517
+ 'human_activity': None,
517
518
 
518
519
  #Put all image based usecases here::
519
520
  'blood_cancer_detection_img': None,
@@ -926,6 +927,14 @@ class ConfigManager:
926
927
  except ImportError:
927
928
  return None
928
929
 
930
+ def human_activity_config_class(self):
931
+ """Register a configuration class for a use case."""
932
+ try:
933
+ from ..usecases.human_activity import HumanActivityRecognitionConfig
934
+ return HumanActivityRecognitionConfig
935
+ except ImportError:
936
+ return None
937
+
929
938
  #put all image based usecases here::
930
939
  def blood_cancer_detection_config_class(self):
931
940
  """Register a configuration class for a use case."""
@@ -1910,7 +1919,27 @@ class ConfigManager:
1910
1919
  alert_config=alert_config,
1911
1920
  **kwargs
1912
1921
  )
1922
+
1923
+ elif usecase == "human_activity":
1924
+ # Import here to avoid circular import
1925
+ from ..usecases.human_activity import HumanActivityRecognitionConfig
1926
+
1927
+ # Handle nested configurations
1928
+ zone_config = kwargs.pop("zone_config", None)
1929
+ if zone_config and isinstance(zone_config, dict):
1930
+ zone_config = ZoneConfig(**zone_config)
1931
+
1932
+ alert_config = kwargs.pop("alert_config", None)
1933
+ if alert_config and isinstance(alert_config, dict):
1934
+ alert_config = AlertConfig(**alert_config)
1913
1935
 
1936
+ config = HumanActivityRecognitionConfig(
1937
+ category=category or "general",
1938
+ usecase=usecase,
1939
+ zone_config=zone_config,
1940
+ alert_config=alert_config,
1941
+ **kwargs
1942
+ )
1914
1943
 
1915
1944
  #Add IMAGE based usecases here::
1916
1945
  elif usecase == "blood_cancer_detection_img":
@@ -62,6 +62,7 @@ from .usecases import (
62
62
  LaneDetectionUseCase,
63
63
  LitterDetectionUseCase,
64
64
  LeakDetectionUseCase,
65
+ HumanActivityRecognitionUseCase,
65
66
 
66
67
 
67
68
  AgeDetectionUseCase,
@@ -224,6 +225,7 @@ class PostProcessor:
224
225
  registry.register_use_case("litter_detection", "litter_detection", LitterDetectionUseCase)
225
226
  registry.register_use_case("general", "human_activity_recognition", HumanActivityUseCase)
226
227
  registry.register_use_case("oil_gas", "leak_detection", LeakDetectionUseCase)
228
+ registry.register_use_case("general", "human_activity", HumanActivityRecognitionUseCase)
227
229
 
228
230
  #Put all IMAGE based usecases here
229
231
  registry.register_use_case("healthcare", "bloodcancer_img_detection", BloodCancerDetectionUseCase)
@@ -398,6 +400,8 @@ class PostProcessor:
398
400
  result = use_case.process(data, parsed_config, context, stream_info)
399
401
  elif isinstance(use_case, LeakDetectionUseCase):
400
402
  result = use_case.process(data, parsed_config, context, stream_info)
403
+ elif isinstance(use_case, HumanActivityRecognitionUseCase):
404
+ result = use_case.process(data, parsed_config, context, stream_info)
401
405
 
402
406
  #Put all IMAGE based usecases here
403
407
  elif isinstance(use_case, BloodCancerDetectionUseCase):
@@ -70,6 +70,7 @@ from .drowsy_driver_detection import DrowsyDriverUseCase, DrowsyDriverUseCase
70
70
  from .waterbody_segmentation import WaterBodyConfig, WaterBodyUseCase
71
71
  from .litter_monitoring import LitterDetectionConfig,LitterDetectionUseCase
72
72
  from .leak_detection import LeakDetectionConfig, LeakDetectionUseCase
73
+ from .human_activity import HumanActivityRecognitionConfig, HumanActivityRecognitionUseCase
73
74
 
74
75
  #Put all IMAGE based usecases here
75
76
  from .blood_cancer_detection_img import BloodCancerDetectionConfig, BloodCancerDetectionUseCase
@@ -137,6 +138,7 @@ __all__ = [
137
138
  'WaterBodyUseCase',
138
139
  'LitterDetectionUseCase',
139
140
  'LeakDetectionUseCase',
141
+ 'HumanActivityRecognitionUseCase',
140
142
 
141
143
  #Put all IMAGE based usecases here
142
144
  'BloodCancerDetectionUseCase',
@@ -204,6 +206,7 @@ __all__ = [
204
206
  'WaterBodyConfig',
205
207
  'LitterDetectionConfig',
206
208
  'LeakDetectionConfig',
209
+ 'HumanActivityRecognitionConfig',
207
210
 
208
211
 
209
212
  #Put all IMAGE based usecase CONFIGS here
@@ -97,7 +97,9 @@ class FireSmokeUseCase(BaseProcessor):
97
97
 
98
98
  self._ascending_alert_list: List[str] = []
99
99
  self.current_incident_end_timestamp: str = "N/A"
100
- #self.fire_smoke_stack:List[int] = []
100
+ self.id_hit_list = ["low","medium","significant","critical","low"]
101
+ self.id_hit_counter = 0
102
+ self.latest_stack:str = None
101
103
 
102
104
  def process(
103
105
  self,
@@ -254,7 +256,7 @@ class FireSmokeUseCase(BaseProcessor):
254
256
  if len(data) < lookback:
255
257
  return True
256
258
  post=lookback-prior-1
257
- levels_list = ["low","medium","significant","critical"]
259
+ levels_list = ["low","medium","significant","critical","low"]
258
260
 
259
261
  current_dominant_incident = Counter(data[-lookback:][:-prior]).most_common(1)[0][0] #from LAST 23 elements fetch FIRST 15 elements
260
262
  potential_dominant_incident = Counter(data[-post:]).most_common(1)[0][0] #fetch LAST 8 elements
@@ -276,16 +278,16 @@ class FireSmokeUseCase(BaseProcessor):
276
278
  return []
277
279
  if not config.alert_config:
278
280
  return alerts
279
-
280
281
 
281
282
  if hasattr(config.alert_config, 'count_thresholds') and config.alert_config.count_thresholds:
283
+ alert_id = self._get_alert_incident_ids(self._ascending_alert_list[-1:])
282
284
 
283
285
  for category, threshold in config.alert_config.count_thresholds.items():
284
286
  if category == "all" and total > threshold:
285
287
 
286
288
  alerts.append({
287
289
  "alert_type": getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default'],
288
- "alert_id": "alert_"+category+'_'+frame_key,
290
+ "alert_id": "alert_"+category+'_'+str(alert_id),
289
291
  "incident_category": self.CASE_TYPE,
290
292
  "threshold_level": threshold,
291
293
  "ascending": get_trend(self._ascending_alert_list, lookback=23, prior=14),
@@ -299,7 +301,7 @@ class FireSmokeUseCase(BaseProcessor):
299
301
  if count > threshold: # Fixed logic: alert when EXCEEDING threshold
300
302
  alerts.append({
301
303
  "alert_type": getattr(config.alert_config, 'alert_type', ['Default']) if hasattr(config.alert_config, 'alert_type') else ['Default'],
302
- "alert_id": "alert_"+category+'_'+frame_key,
304
+ "alert_id": "alert_"+category+'_'+str(alert_id),
303
305
  "incident_category": self.CASE_TYPE,
304
306
  "threshold_level": threshold,
305
307
  "ascending": get_trend(self._ascending_alert_list, lookback=23, prior=14),
@@ -358,7 +360,7 @@ class FireSmokeUseCase(BaseProcessor):
358
360
  if total > 0:
359
361
  # Calculate total bbox area
360
362
  total_area = 0.0
361
-
363
+
362
364
  for category, threshold in config.alert_config.count_thresholds.items():
363
365
  if category in summary.get("per_category_count", {}):
364
366
 
@@ -428,6 +430,8 @@ class FireSmokeUseCase(BaseProcessor):
428
430
  human_text_lines.append(f"\tSeverity Level: {(self.CASE_TYPE,level)}")
429
431
  human_text = "\n".join(human_text_lines)
430
432
 
433
+ incident_id = self._get_alert_incident_ids(self._ascending_alert_list[-1:])
434
+
431
435
  alert_settings=[]
432
436
  if config.alert_config and hasattr(config.alert_config, 'alert_type'):
433
437
  alert_settings.append({
@@ -440,7 +444,7 @@ class FireSmokeUseCase(BaseProcessor):
440
444
  }
441
445
  })
442
446
 
443
- event= self.create_incident(incident_id=self.CASE_TYPE+'_'+str(frame_number), incident_type=self.CASE_TYPE,
447
+ event= self.create_incident(incident_id=self.CASE_TYPE+'_'+str(incident_id), incident_type=self.CASE_TYPE,
444
448
  severity_level=level, human_text=human_text, camera_info=camera_info, alerts=alerts, alert_settings=alert_settings,
445
449
  start_time=start_timestamp, end_time=self.current_incident_end_timestamp,
446
450
  level_settings= {"low": 3, "medium": 5, "significant":15, "critical": 30})
@@ -923,5 +927,41 @@ class FireSmokeUseCase(BaseProcessor):
923
927
 
924
928
  return delta.total_seconds()
925
929
 
930
+ def _get_alert_incident_ids(self, sev_level):
931
+
932
+ if sev_level!="":
933
+ if sev_level==self.id_hit_list[0] and len(self.id_hit_list)>=2:
934
+ self.id_hit_counter+=1
935
+ if self.id_hit_counter>7:
936
+ self.latest_stack = self.id_hit_list[0]
937
+ self.id_hit_list.pop(0)
938
+ self.id_hit_counter=0
939
+ return int(5-len(self.id_hit_list))
940
+
941
+ elif self.id_hit_counter>0:
942
+ self.id_hit_counter-=1
943
+ elif self.id_hit_counter<0:
944
+ self.id_hit_counter=0
945
+
946
+ if len(self.id_hit_list) > 1:
947
+ if sev_level==self.latest_stack:
948
+ return int(5-len(self.id_hit_list))
949
+ else:
950
+ return 0
951
+ else:
952
+ if len(self.id_hit_list)==1:
953
+ self.id_hit_counter+=1
954
+ if self.id_hit_counter>120:
955
+ return int(5)
956
+ if sev_level==self.latest_stack:
957
+ return int(5-len(self.id_hit_list))
958
+ else:
959
+ return 0
960
+ elif self.id_hit_counter>0:
961
+ self.id_hit_counter-=1
962
+ elif self.id_hit_counter<0:
963
+ self.id_hit_counter=0
964
+ return ""
965
+
926
966
 
927
967