matrice 1.0.99391__py3-none-any.whl → 1.0.99392__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.
- matrice/deploy/optimize/transmission.py +18 -18
- {matrice-1.0.99391.dist-info → matrice-1.0.99392.dist-info}/METADATA +1 -1
- {matrice-1.0.99391.dist-info → matrice-1.0.99392.dist-info}/RECORD +6 -6
- {matrice-1.0.99391.dist-info → matrice-1.0.99392.dist-info}/WHEEL +0 -0
- {matrice-1.0.99391.dist-info → matrice-1.0.99392.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99391.dist-info → matrice-1.0.99392.dist-info}/top_level.txt +0 -0
@@ -64,24 +64,24 @@ class ClientTransmissionHandler:
|
|
64
64
|
return "full", {"reason": "first_frame", "similarity_score": 0.0}
|
65
65
|
|
66
66
|
ref = self.frame_cache[stream_key]
|
67
|
-
is_similar, score = self.ssim_comparator.compare(ref, frame, stream_key)
|
68
|
-
|
69
|
-
if score >= self.threshold_a:
|
70
|
-
|
71
|
-
elif score >= self.threshold_b:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
else:
|
82
|
-
|
83
|
-
|
84
|
-
|
67
|
+
# is_similar, score = self.ssim_comparator.compare(ref, frame, stream_key)
|
68
|
+
|
69
|
+
# if score >= self.threshold_a:
|
70
|
+
# return "skip", {"similarity_score": float(score), "reason": "high_similarity"}
|
71
|
+
# elif score >= self.threshold_b:
|
72
|
+
# diff_data, diff_meta = self.difference_processor.calculate_frame_difference(ref, frame)
|
73
|
+
# if diff_meta.get("has_changes", False):
|
74
|
+
# return "difference", {
|
75
|
+
# "similarity_score": float(score),
|
76
|
+
# "difference_data": diff_data,
|
77
|
+
# "difference_metadata": diff_meta,
|
78
|
+
# "reason": "medium_similarity",
|
79
|
+
# }
|
80
|
+
# return "skip", {"similarity_score": float(score), "reason": "no_changes"}
|
81
|
+
# else:
|
82
|
+
# # Low similarity, update cache immediately
|
83
|
+
self.frame_cache[stream_key] = frame.copy()
|
84
|
+
return "full", {"similarity_score": 0, "reason": "low_similarity"}
|
85
85
|
except Exception as exc:
|
86
86
|
logger.warning("Transmission decision error: %s", str(exc))
|
87
87
|
# Fallback to full frame to keep pipeline robust
|
@@ -114,7 +114,7 @@ matrice/deploy/optimize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
114
114
|
matrice/deploy/optimize/cache_manager.py,sha256=ebQ1Y3vGNW3--TCPnWijDK3ix5HuZ_zH7wjs8iHKkbU,1610
|
115
115
|
matrice/deploy/optimize/frame_comparators.py,sha256=JEn4g599yN6Sodoo_0xVSu0wliWQyvYOiTrdp0XNCgk,20431
|
116
116
|
matrice/deploy/optimize/frame_difference.py,sha256=2QNY6LCwEklXXNN2zAb-hYsX-pbr70IV5vXW70xXQNI,14153
|
117
|
-
matrice/deploy/optimize/transmission.py,sha256=
|
117
|
+
matrice/deploy/optimize/transmission.py,sha256=mbflX2UK-pckmS-THaBJkTjuwK0kgwGh1xWpGvVkZ9Q,18956
|
118
118
|
matrice/deploy/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
119
119
|
matrice/deploy/server/server.py,sha256=mvQqicAPPsWWPe_kau8wUJSBV_KpDDCdrWSfBpZyFeo,38789
|
120
120
|
matrice/deploy/server/inference/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
@@ -261,8 +261,8 @@ matrice/deployment/camera_manager.py,sha256=e1Lc81RJP5wUWRdTgHO6tMWF9BkBdHOSVyx3
|
|
261
261
|
matrice/deployment/deployment.py,sha256=HFt151eWq6iqIAMsQvurpV2WNxW6Cx_gIUVfnVy5SWE,48093
|
262
262
|
matrice/deployment/inference_pipeline.py,sha256=6b4Mm3-qt-Zy0BeiJfFQdImOn3FzdNCY-7ET7Rp8PMk,37911
|
263
263
|
matrice/deployment/streaming_gateway_manager.py,sha256=ifYGl3g25wyU39HwhPQyI2OgF3M6oIqKMWt8RXtMxY8,21401
|
264
|
-
matrice-1.0.
|
265
|
-
matrice-1.0.
|
266
|
-
matrice-1.0.
|
267
|
-
matrice-1.0.
|
268
|
-
matrice-1.0.
|
264
|
+
matrice-1.0.99392.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
265
|
+
matrice-1.0.99392.dist-info/METADATA,sha256=AF8yhoOaoOlO1d-jbJEqkzUkyJnFu-RGdOr4S9_vJQc,14624
|
266
|
+
matrice-1.0.99392.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
267
|
+
matrice-1.0.99392.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
268
|
+
matrice-1.0.99392.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|