matrice-inference 0.1.0__tar.gz → 0.1.1__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.

Potentially problematic release.


This version of matrice-inference might be problematic. Click here for more details.

Files changed (96) hide show
  1. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/PKG-INFO +1 -1
  2. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference.egg-info/PKG-INFO +1 -1
  3. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference.egg-info/SOURCES.txt +10 -0
  4. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_internal.cpython-312-x86_64-linux-gnu.so +0 -0
  5. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_internal.pyi +114 -0
  6. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.cpython-312-x86_64-linux-gnu.so +0 -0
  7. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.pyi +194 -0
  8. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/example_usage.cpython-312-x86_64-linux-gnu.so +0 -0
  9. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/example_usage.pyi +35 -0
  10. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/boundary_drawer_launcher.cpython-312-x86_64-linux-gnu.so +0 -0
  11. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/boundary_drawer_launcher.pyi +18 -0
  12. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/simple_boundary_launcher.cpython-312-x86_64-linux-gnu.so +0 -0
  13. matrice_inference-0.1.1/matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/simple_boundary_launcher.pyi +22 -0
  14. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/pyproject.toml +1 -1
  15. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/setup.py +2 -2
  16. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/LICENSE.txt +0 -0
  17. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/README.md +0 -0
  18. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference.egg-info/dependency_links.txt +0 -0
  19. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference.egg-info/not-zip-safe +0 -0
  20. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference.egg-info/top_level.txt +0 -0
  21. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/aggregator.cpython-312-x86_64-linux-gnu.so +0 -0
  22. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/aggregator.pyi +0 -0
  23. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/analytics.cpython-312-x86_64-linux-gnu.so +0 -0
  24. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/analytics.pyi +0 -0
  25. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/ingestor.cpython-312-x86_64-linux-gnu.so +0 -0
  26. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/ingestor.pyi +0 -0
  27. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/pipeline.cpython-312-x86_64-linux-gnu.so +0 -0
  28. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/pipeline.pyi +0 -0
  29. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/publisher.cpython-312-x86_64-linux-gnu.so +0 -0
  30. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/publisher.pyi +0 -0
  31. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/synchronizer.cpython-312-x86_64-linux-gnu.so +0 -0
  32. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/aggregator/synchronizer.pyi +0 -0
  33. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/auto_streaming/auto_streaming.cpython-312-x86_64-linux-gnu.so +0 -0
  34. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/auto_streaming/auto_streaming.pyi +0 -0
  35. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/auto_streaming/auto_streaming_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  36. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/auto_streaming/auto_streaming_utils.pyi +0 -0
  37. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client.cpython-312-x86_64-linux-gnu.so +0 -0
  38. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client.pyi +0 -0
  39. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client_stream_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  40. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client_stream_utils.pyi +0 -0
  41. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  42. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/client_utils.pyi +0 -0
  43. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_gateway.cpython-312-x86_64-linux-gnu.so +0 -0
  44. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_gateway.pyi +0 -0
  45. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_gateway_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  46. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_gateway_utils.pyi +0 -0
  47. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_results_handler.cpython-312-x86_64-linux-gnu.so +0 -0
  48. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/client/streaming_gateway/streaming_results_handler.pyi +0 -0
  49. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/cache_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  50. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/cache_manager.pyi +0 -0
  51. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/frame_comparators.cpython-312-x86_64-linux-gnu.so +0 -0
  52. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/frame_comparators.pyi +0 -0
  53. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/frame_difference.cpython-312-x86_64-linux-gnu.so +0 -0
  54. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/frame_difference.pyi +0 -0
  55. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/transmission.cpython-312-x86_64-linux-gnu.so +0 -0
  56. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/optimize/transmission.pyi +0 -0
  57. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/batch_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  58. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/batch_manager.pyi +0 -0
  59. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/inference_interface.cpython-312-x86_64-linux-gnu.so +0 -0
  60. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/inference_interface.pyi +0 -0
  61. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/model_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  62. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/model_manager.pyi +0 -0
  63. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/triton_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  64. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/inference/triton_utils.pyi +0 -0
  65. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/proxy/proxy_interface.cpython-312-x86_64-linux-gnu.so +0 -0
  66. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/proxy/proxy_interface.pyi +0 -0
  67. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/proxy/proxy_utils.cpython-312-x86_64-linux-gnu.so +0 -0
  68. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/proxy/proxy_utils.pyi +0 -0
  69. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/server.cpython-312-x86_64-linux-gnu.so +0 -0
  70. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/server.pyi +0 -0
  71. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/inference_worker.cpython-312-x86_64-linux-gnu.so +0 -0
  72. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/inference_worker.pyi +0 -0
  73. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/kafka_consumer_worker.cpython-312-x86_64-linux-gnu.so +0 -0
  74. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/kafka_consumer_worker.pyi +0 -0
  75. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/kafka_producer_worker.cpython-312-x86_64-linux-gnu.so +0 -0
  76. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/kafka_producer_worker.pyi +0 -0
  77. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/stream_debug_logger.cpython-312-x86_64-linux-gnu.so +0 -0
  78. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/stream_debug_logger.pyi +0 -0
  79. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/stream_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  80. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/stream_manager.pyi +0 -0
  81. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/video_buffer.cpython-312-x86_64-linux-gnu.so +0 -0
  82. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/server/stream/video_buffer.pyi +0 -0
  83. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/stream/kafka_stream.cpython-312-x86_64-linux-gnu.so +0 -0
  84. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/stream/kafka_stream.pyi +0 -0
  85. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/stream/redis_stream.cpython-312-x86_64-linux-gnu.so +0 -0
  86. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deploy/stream/redis_stream.pyi +0 -0
  87. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/camera_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  88. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/camera_manager.pyi +0 -0
  89. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/deployment.cpython-312-x86_64-linux-gnu.so +0 -0
  90. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/deployment.pyi +0 -0
  91. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/inference_pipeline.cpython-312-x86_64-linux-gnu.so +0 -0
  92. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/inference_pipeline.pyi +0 -0
  93. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/streaming_gateway_manager.cpython-312-x86_64-linux-gnu.so +0 -0
  94. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/deployment/streaming_gateway_manager.pyi +0 -0
  95. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/matrice_inference_compiled/matrice_inference/py.typed +0 -0
  96. {matrice_inference-0.1.0 → matrice_inference-0.1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_inference
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Common utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_inference
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Common utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -74,6 +74,16 @@ matrice_inference_compiled/matrice_inference/deploy/stream/kafka_stream.cpython-
74
74
  matrice_inference_compiled/matrice_inference/deploy/stream/kafka_stream.pyi
75
75
  matrice_inference_compiled/matrice_inference/deploy/stream/redis_stream.cpython-312-x86_64-linux-gnu.so
76
76
  matrice_inference_compiled/matrice_inference/deploy/stream/redis_stream.pyi
77
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_internal.cpython-312-x86_64-linux-gnu.so
78
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_internal.pyi
79
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.cpython-312-x86_64-linux-gnu.so
80
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.pyi
81
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/example_usage.cpython-312-x86_64-linux-gnu.so
82
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/example_usage.pyi
83
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/boundary_drawer_launcher.cpython-312-x86_64-linux-gnu.so
84
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/boundary_drawer_launcher.pyi
85
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/simple_boundary_launcher.cpython-312-x86_64-linux-gnu.so
86
+ matrice_inference_compiled/matrice_inference/deploy/utils/boundary_drawing_internal/usage/simple_boundary_launcher.pyi
77
87
  matrice_inference_compiled/matrice_inference/deployment/camera_manager.cpython-312-x86_64-linux-gnu.so
78
88
  matrice_inference_compiled/matrice_inference/deployment/camera_manager.pyi
79
89
  matrice_inference_compiled/matrice_inference/deployment/deployment.cpython-312-x86_64-linux-gnu.so
@@ -0,0 +1,114 @@
1
+ """Auto-generated stub for module: boundary_drawing_internal."""
2
+ from typing import Any, Dict, List, Tuple
3
+
4
+ from pathlib import Path
5
+ import argparse
6
+ import base64
7
+ import cv2
8
+ import json
9
+ import numpy as np
10
+ import os
11
+ import sys
12
+ import webbrowser
13
+
14
+ # Functions
15
+ def main() -> Any: ...
16
+ """
17
+ Main function for command line usage.
18
+ """
19
+
20
+ # Classes
21
+ class BoundaryDrawingTool:
22
+ """
23
+ A comprehensive tool for drawing boundaries, polygons, and lines on video frames or images.
24
+ Supports multiple zones with custom tags like queue, staff, entry, exit, restricted zone, etc.
25
+ """
26
+
27
+ def __init__(self: Any) -> None: ...
28
+ """
29
+ Initialize the boundary drawing tool.
30
+ """
31
+
32
+ def create_grid_reference_image(self: Any, frame_path: str, output_path: str = None, grid_step: int = 50) -> str: ...
33
+ """
34
+ Create a grid reference image to help users define coordinates.
35
+
36
+ Args:
37
+ frame_path (str): Path to the input frame/image
38
+ output_path (str): Path to save the grid reference image
39
+ grid_step (int): Grid line spacing in pixels
40
+
41
+ Returns:
42
+ str: Path to the grid reference image
43
+ """
44
+
45
+ def create_interactive_html(self: Any, image_path: str, output_html: str = None, embed_image: bool = True) -> str: ...
46
+ """
47
+ Create an interactive HTML page for drawing boundaries with custom tags.
48
+
49
+ Args:
50
+ image_path (str): Path to the reference image
51
+ output_html (str): Path to save the HTML file
52
+ embed_image (bool): Whether to embed image as base64 or use file path
53
+
54
+ Returns:
55
+ str: Path to the HTML file
56
+ """
57
+
58
+ def extract_first_frame(self: Any, video_path: str, output_path: str = None) -> str: ...
59
+ """
60
+ Extract the first frame from a video file.
61
+
62
+ Args:
63
+ video_path (str): Path to the video file
64
+ output_path (str): Path to save the extracted frame
65
+
66
+ Returns:
67
+ str: Path to the extracted frame
68
+ """
69
+
70
+ def get_file_type(self: Any, file_path: str) -> str: ...
71
+ """
72
+ Determine if the file is a video or image.
73
+
74
+ Args:
75
+ file_path (str): Path to the file
76
+
77
+ Returns:
78
+ str: 'video', 'image', or 'unknown'
79
+ """
80
+
81
+ def image_to_base64(self: Any, image_path: str) -> str: ...
82
+ """
83
+ Convert image to base64 for embedding in HTML.
84
+
85
+ Args:
86
+ image_path (str): Path to the image file
87
+
88
+ Returns:
89
+ str: Base64 encoded image data
90
+ """
91
+
92
+ def open_in_browser(self: Any, html_path: str) -> Any: ...
93
+ """
94
+ Open the HTML file in the default web browser.
95
+
96
+ Args:
97
+ html_path (str): Path to the HTML file
98
+ """
99
+
100
+ def process_input_file(self: Any, input_path: str, output_dir: str = None, grid_step: int = 50, open_browser: bool = True, embed_image: bool = True) -> Dict[str, str]: ...
101
+ """
102
+ Process an input video or image file and create the boundary drawing tool.
103
+
104
+ Args:
105
+ input_path (str): Path to input video or image file
106
+ output_dir (str): Directory to save output files
107
+ grid_step (int): Grid line spacing for reference image
108
+ open_browser (bool): Whether to open the tool in browser
109
+ embed_image (bool): Whether to embed image as base64 in HTML
110
+
111
+ Returns:
112
+ Dict[str, str]: Dictionary with paths to created files
113
+ """
114
+
@@ -0,0 +1,194 @@
1
+ """Auto-generated stub for module: boundary_drawing_tool."""
2
+ from typing import Any, Dict, List, Optional, Union
3
+
4
+ from boundary_drawing_internal import BoundaryDrawingTool
5
+ from pathlib import Path
6
+ import base64
7
+ import cv2
8
+ import datetime
9
+ import numpy as np
10
+ import os
11
+ import shutil
12
+ import uuid
13
+ import webbrowser
14
+
15
+ # Functions
16
+ def create_standalone_tool(output_path: str = 'boundary_tool.html', auto_open: bool = True) -> str: ...
17
+ """
18
+ One-line function to create a standalone boundary drawing tool.
19
+
20
+ Args:
21
+ output_path (str): Where to save the HTML tool
22
+ auto_open (bool): Whether to automatically open in browser
23
+
24
+ Returns:
25
+ str: Path to the created HTML tool
26
+
27
+ Example:
28
+ from matrice_inference.deploy.utils.boundary_drawing_internal import create_standalone_tool
29
+
30
+ # Create a standalone tool
31
+ create_standalone_tool("my_tool.html")
32
+ """
33
+ def get_usage_template(zone_types: list = None) -> str: ...
34
+ """
35
+ Get template code for using generated zones.
36
+
37
+ Args:
38
+ zone_types (list, optional): Zone types to include in template
39
+
40
+ Returns:
41
+ str: Template Python code
42
+
43
+ Example:
44
+ from matrice_inference.deploy.utils.boundary_drawing_internal import get_usage_template
45
+
46
+ template = get_usage_template(["queue", "staff"])
47
+ print(template)
48
+ """
49
+ def quick_boundary_tool(file_path: str, zones_needed: list = None, auto_open: bool = True) -> str: ...
50
+ """
51
+ One-line function to create a boundary drawing tool from any file.
52
+
53
+ Args:
54
+ file_path (str): Path to video or image file
55
+ zones_needed (list, optional): List of zone types you plan to create
56
+ auto_open (bool): Whether to automatically open in browser
57
+
58
+ Returns:
59
+ str: Path to the HTML boundary drawing tool
60
+
61
+ Example:
62
+ from matrice_inference.deploy.utils.boundary_drawing_internal import quick_boundary_tool
63
+
64
+ # One line to create and open the tool
65
+ quick_boundary_tool("my_video.mp4", ["queue", "staff", "exit"])
66
+ """
67
+
68
+ # Classes
69
+ class EasyBoundaryTool:
70
+ """
71
+ A simplified, easy-to-use boundary drawing tool that can be imported and used
72
+ with minimal code. Perfect for quickly creating zone definitions from videos or images.
73
+
74
+ Example:
75
+ from matrice_inference.deploy.utils.boundary_drawing_internal import EasyBoundaryTool
76
+
77
+ # Create tool and open interactive interface
78
+ tool = EasyBoundaryTool()
79
+ zones = tool.create_from_video("my_video.mp4")
80
+
81
+ # Or from an image
82
+ zones = tool.create_from_image("frame.jpg")
83
+ """
84
+
85
+ def __init__(self: Any, auto_open_browser: bool = True, grid_step: int = 50) -> None: ...
86
+ """
87
+ Initialize the easy boundary drawing tool.
88
+
89
+ Args:
90
+ auto_open_browser (bool): Whether to automatically open the tool in browser
91
+ grid_step (int): Grid line spacing in pixels for reference
92
+ """
93
+
94
+ def cleanup(self: Any) -> None: ...
95
+ """
96
+ Optionally clean up data files created by the tool.
97
+ Note: Files are now saved permanently in boundary_drawing_internal/data/
98
+ """
99
+
100
+ def create_from_image(self: Any, image_path: str, output_dir: Optional[str] = None) -> str: ...
101
+ """
102
+ Create an interactive boundary drawing tool from an image file.
103
+
104
+ Args:
105
+ image_path (str): Path to the image file
106
+ output_dir (str, optional): Directory to save output files.
107
+ If None, creates a unique directory in boundary_drawing_internal/data.
108
+
109
+ Returns:
110
+ str: Path to the HTML boundary drawing tool
111
+
112
+ Example:
113
+ tool = EasyBoundaryTool()
114
+ html_path = tool.create_from_image("frame.jpg")
115
+ # Interactive tool opens in browser
116
+ """
117
+
118
+ def create_from_video(self: Any, video_path: str, output_dir: Optional[str] = None) -> str: ...
119
+ """
120
+ Create an interactive boundary drawing tool from a video file.
121
+ Extracts the first frame and opens the drawing interface.
122
+
123
+ Args:
124
+ video_path (str): Path to the video file
125
+ output_dir (str, optional): Directory to save output files.
126
+ If None, creates a unique directory in boundary_drawing_internal/data.
127
+
128
+ Returns:
129
+ str: Path to the HTML boundary drawing tool
130
+
131
+ Example:
132
+ tool = EasyBoundaryTool()
133
+ html_path = tool.create_from_video("security_camera.mp4")
134
+ # Interactive tool opens in browser
135
+ """
136
+
137
+ def create_standalone_tool(self: Any, output_path: str = 'boundary_tool.html') -> str: ...
138
+ """
139
+ Create a standalone HTML tool that can accept file uploads.
140
+ This creates a self-contained tool that doesn't need a specific input file.
141
+
142
+ Args:
143
+ output_path (str): Path where to save the standalone HTML tool
144
+
145
+ Returns:
146
+ str: Path to the created HTML tool
147
+
148
+ Example:
149
+ tool = EasyBoundaryTool()
150
+ html_path = tool.create_standalone_tool("my_boundary_tool.html")
151
+ # Opens a tool where you can drag & drop any video/image
152
+ """
153
+
154
+ def get_data_directory(self: Any) -> Optional[str]: ...
155
+ """
156
+ Get the data directory where files are saved.
157
+
158
+ Returns:
159
+ str: Path to the data directory, or None if not created yet
160
+ """
161
+
162
+ def get_template_code(self: Any, zone_types: list = None) -> str: ...
163
+ """
164
+ Get template Python code showing how to use the generated zones.
165
+
166
+ Args:
167
+ zone_types (list, optional): List of zone types to include in template
168
+
169
+ Returns:
170
+ str: Template Python code
171
+
172
+ Example:
173
+ tool = EasyBoundaryTool()
174
+ template = tool.get_template_code(["queue", "staff", "service"])
175
+ print(template)
176
+ """
177
+
178
+ def quick_setup(self: Any, file_path: str, zones_needed: list = None) -> str: ...
179
+ """
180
+ Quick setup method that auto-detects file type and creates the tool.
181
+
182
+ Args:
183
+ file_path (str): Path to video or image file
184
+ zones_needed (list, optional): List of zone types you plan to create.
185
+ Used for informational purposes.
186
+
187
+ Returns:
188
+ str: Path to the HTML boundary drawing tool
189
+
190
+ Example:
191
+ tool = EasyBoundaryTool()
192
+ tool.quick_setup("video.mp4", zones_needed=["queue", "staff", "entry"])
193
+ """
194
+
@@ -0,0 +1,35 @@
1
+ """Auto-generated stub for module: example_usage."""
2
+ from typing import Any
3
+
4
+ from matrice_inference.deploy.utils.boundary_drawing_internal import EasyBoundaryTool, quick_boundary_tool, create_standalone_tool, get_usage_template
5
+ import os
6
+
7
+ # Functions
8
+ def example_1_quick_video_tool() -> Any: ...
9
+ """
10
+ Example 1: Create a boundary tool from a video file with one line.
11
+ """
12
+ def example_2_image_tool() -> Any: ...
13
+ """
14
+ Example 2: Create a boundary tool from an image file.
15
+ """
16
+ def example_3_class_usage() -> Any: ...
17
+ """
18
+ Example 3: Using the class for more control.
19
+ """
20
+ def example_4_standalone_tool() -> Any: ...
21
+ """
22
+ Example 4: Create a standalone tool for drag & drop.
23
+ """
24
+ def example_5_integration_code() -> Any: ...
25
+ """
26
+ Example 5: Show how to integrate generated zones with post-processing.
27
+ """
28
+ def example_6_workflow() -> Any: ...
29
+ """
30
+ Example 6: Complete workflow example.
31
+ """
32
+ def main() -> Any: ...
33
+ """
34
+ Run all examples.
35
+ """
@@ -0,0 +1,18 @@
1
+ """Auto-generated stub for module: boundary_drawer_launcher."""
2
+ from typing import Any
3
+
4
+ from matrice_inference.deploy.utils.boundary_drawing_internal import EasyBoundaryTool, quick_boundary_tool
5
+ from pathlib import Path
6
+ import os
7
+ import sys
8
+
9
+ # Constants
10
+ current_dir: Any
11
+ matrice_path: Any
12
+ src_path: Any
13
+
14
+ # Functions
15
+ def main() -> Any: ...
16
+ """
17
+ Launch the boundary drawing tool for the airport security video.
18
+ """
@@ -0,0 +1,22 @@
1
+ """Auto-generated stub for module: simple_boundary_launcher."""
2
+ from typing import Any, List
3
+
4
+ from matrice_inference.deploy.utils.boundary_drawing_internal import EasyBoundaryTool
5
+ from pathlib import Path
6
+ import os
7
+ import sys
8
+
9
+ # Constants
10
+ current_dir: Any
11
+ matrice_path: Any
12
+ src_path: Any
13
+
14
+ # Functions
15
+ def launch_boundary_tool(video_path: Any, custom_zones: Any = None) -> Any: ...
16
+ """
17
+ Launch the boundary drawing tool for any video file.
18
+
19
+ Args:
20
+ video_path (str): Path to the video file
21
+ custom_zones (list): List of zone names to use
22
+ """
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "matrice_inference"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Common utilities for Matrice.ai services"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Matrice.ai", email = "dipendra@matrice.ai" }]
@@ -9,7 +9,7 @@ from Cython.Build import cythonize
9
9
 
10
10
  # Configuration
11
11
  PACKAGE_NAME = "matrice_inference"
12
- VERSION = "0.1.0"
12
+ VERSION = "0.1.1"
13
13
  SOURCE_DIR = f"src/{PACKAGE_NAME}"
14
14
  STAGING_DIR = f"{PACKAGE_NAME}_compiled/{PACKAGE_NAME}"
15
15
  BUILD_DIR = "build"
@@ -154,7 +154,7 @@ elif not os.path.exists(os.path.join(SOURCE_DIR, "py.typed")):
154
154
 
155
155
  setup(
156
156
  name=PACKAGE_NAME,
157
- version="0.1.3",
157
+ version=VERSION,
158
158
  packages=[PACKAGE_NAME],
159
159
  package_dir={PACKAGE_NAME: STAGING_DIR},
160
160
  include_package_data=True,