nedo-vision-worker 1.3.0__py3-none-any.whl → 1.3.1__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.
- nedo_vision_worker/__init__.py +1 -1
- nedo_vision_worker/worker/PPEDetectionManager.py +5 -5
- nedo_vision_worker/worker/RestrictedAreaManager.py +5 -5
- {nedo_vision_worker-1.3.0.dist-info → nedo_vision_worker-1.3.1.dist-info}/METADATA +1 -1
- {nedo_vision_worker-1.3.0.dist-info → nedo_vision_worker-1.3.1.dist-info}/RECORD +8 -8
- {nedo_vision_worker-1.3.0.dist-info → nedo_vision_worker-1.3.1.dist-info}/WHEEL +0 -0
- {nedo_vision_worker-1.3.0.dist-info → nedo_vision_worker-1.3.1.dist-info}/entry_points.txt +0 -0
- {nedo_vision_worker-1.3.0.dist-info → nedo_vision_worker-1.3.1.dist-info}/top_level.txt +0 -0
nedo_vision_worker/__init__.py
CHANGED
|
@@ -53,22 +53,22 @@ class PPEDetectionManager:
|
|
|
53
53
|
def _calculate_batch_size(self, pending_count: int) -> int:
|
|
54
54
|
"""
|
|
55
55
|
Calculates optimal batch size based on pending items.
|
|
56
|
-
|
|
56
|
+
Limited to 50 to stay within 50MB gRPC message size limit.
|
|
57
57
|
|
|
58
58
|
Args:
|
|
59
59
|
pending_count (int): Number of pending detections
|
|
60
60
|
|
|
61
61
|
Returns:
|
|
62
|
-
int: Optimal batch size
|
|
62
|
+
int: Optimal batch size (max 50)
|
|
63
63
|
"""
|
|
64
64
|
if pending_count < 20:
|
|
65
65
|
return 10
|
|
66
66
|
elif pending_count < 100:
|
|
67
|
-
return
|
|
67
|
+
return 20
|
|
68
68
|
elif pending_count < 500:
|
|
69
|
-
return
|
|
69
|
+
return 30
|
|
70
70
|
else:
|
|
71
|
-
return
|
|
71
|
+
return 50
|
|
72
72
|
|
|
73
73
|
def send_ppe_detection_batch(self):
|
|
74
74
|
"""Sends a batch of collected PPE detection data to the server with dynamic batch sizing."""
|
|
@@ -53,22 +53,22 @@ class RestrictedAreaManager:
|
|
|
53
53
|
def _calculate_batch_size(self, pending_count: int) -> int:
|
|
54
54
|
"""
|
|
55
55
|
Calculates optimal batch size based on pending items.
|
|
56
|
-
|
|
56
|
+
Limited to 50 to stay within 50MB gRPC message size limit.
|
|
57
57
|
|
|
58
58
|
Args:
|
|
59
59
|
pending_count (int): Number of pending violations
|
|
60
60
|
|
|
61
61
|
Returns:
|
|
62
|
-
int: Optimal batch size
|
|
62
|
+
int: Optimal batch size (max 50)
|
|
63
63
|
"""
|
|
64
64
|
if pending_count < 20:
|
|
65
65
|
return 10
|
|
66
66
|
elif pending_count < 100:
|
|
67
|
-
return
|
|
67
|
+
return 20
|
|
68
68
|
elif pending_count < 500:
|
|
69
|
-
return
|
|
69
|
+
return 30
|
|
70
70
|
else:
|
|
71
|
-
return
|
|
71
|
+
return 50
|
|
72
72
|
|
|
73
73
|
def send_violation_batch(self):
|
|
74
74
|
"""Sends a batch of collected violation data to the server with dynamic batch sizing."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nedo-vision-worker
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: Nedo Vision Worker Service Library for AI Vision Processing
|
|
5
5
|
Author-email: Willy Achmat Fauzi <willy.achmat@gmail.com>
|
|
6
6
|
Maintainer-email: Willy Achmat Fauzi <willy.achmat@gmail.com>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
nedo_vision_worker/__init__.py,sha256=
|
|
1
|
+
nedo_vision_worker/__init__.py,sha256=ymUax1kADKc7nS9WyGBL5U3KmJaYaJsSNFXbaxeB5iY,203
|
|
2
2
|
nedo_vision_worker/cli.py,sha256=ddWspJmSgVkcUYvRdkvTtMNuMTDvNCqLLuMVU9KE3Ik,7457
|
|
3
3
|
nedo_vision_worker/doctor.py,sha256=wNkpe8gLVd76Y_ViyK2h1ZFdqeSl37MnzZN5frWKu30,48410
|
|
4
4
|
nedo_vision_worker/worker_service.py,sha256=9zz8hKwDwqwpfS0KPQfftGJtRci0uj_wiwcr_TGf-E0,11039
|
|
@@ -84,18 +84,18 @@ nedo_vision_worker/worker/DataSenderWorker.py,sha256=BNA5mL2guBVp0O5MKULEWd78dY3
|
|
|
84
84
|
nedo_vision_worker/worker/DataSyncWorker.py,sha256=LmDPt2J1frmXwuR46L6b0MjlFOHfgG-4_0MGQa78zF4,6288
|
|
85
85
|
nedo_vision_worker/worker/DatasetFrameSender.py,sha256=1SFYj8LJFNi-anBTapsbq8U_NGMM7mnoMKg9NeFAHys,8087
|
|
86
86
|
nedo_vision_worker/worker/DatasetFrameWorker.py,sha256=Hh_wZuMjwovxsEKFqXSuTRin9eYRBZCbcFKm3CKLMbE,19335
|
|
87
|
-
nedo_vision_worker/worker/PPEDetectionManager.py,sha256=
|
|
87
|
+
nedo_vision_worker/worker/PPEDetectionManager.py,sha256=FZbPuxY5dc4e919DJHXQSJHPF3btZMrC1xwD0jYYypU,4588
|
|
88
88
|
nedo_vision_worker/worker/PipelineActionWorker.py,sha256=xgvryjKtEsMj4BKqWzDIaK_lFny-DfMCj5Y2DxHnWww,5651
|
|
89
89
|
nedo_vision_worker/worker/PipelineImageWorker.py,sha256=J8VBUG0cwcH3qOJp2zTl30B-XhmPFyvJLjxitKJYq0E,5642
|
|
90
90
|
nedo_vision_worker/worker/PipelinePreviewWorker.py,sha256=owFiBbktcOZkdImQeykZSeBIR2-mpt6HNkmYIkLRKzE,6397
|
|
91
91
|
nedo_vision_worker/worker/RabbitMQListener.py,sha256=9gR49MDplgpyb-D5HOH0K77-DJQFvhS2E7biL92SjSU,6950
|
|
92
|
-
nedo_vision_worker/worker/RestrictedAreaManager.py,sha256=
|
|
92
|
+
nedo_vision_worker/worker/RestrictedAreaManager.py,sha256=IWuCqpE-IPSf5Mdo5NUnbRUnY9pSH2471EB2eS0XRWs,4482
|
|
93
93
|
nedo_vision_worker/worker/SystemUsageManager.py,sha256=mkh4sT-HkIEY1CJHMEG6LP9ATu39YXvLRLyf995OkoQ,5315
|
|
94
94
|
nedo_vision_worker/worker/VideoStreamWorker.py,sha256=5n6v1PNO7IB-jj_McALLkUP-cBjJoIEw4UiSAs3vTb0,7606
|
|
95
95
|
nedo_vision_worker/worker/WorkerManager.py,sha256=2bxXi19fp3p1qjYBStYRdVVgko8dnevXx1_M_sqH5og,5521
|
|
96
96
|
nedo_vision_worker/worker/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
97
|
-
nedo_vision_worker-1.3.
|
|
98
|
-
nedo_vision_worker-1.3.
|
|
99
|
-
nedo_vision_worker-1.3.
|
|
100
|
-
nedo_vision_worker-1.3.
|
|
101
|
-
nedo_vision_worker-1.3.
|
|
97
|
+
nedo_vision_worker-1.3.1.dist-info/METADATA,sha256=eZ2JS5SEBuZrrvpkJDNxc4svJHCVLzf4beEcTdRO4iA,14728
|
|
98
|
+
nedo_vision_worker-1.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
99
|
+
nedo_vision_worker-1.3.1.dist-info/entry_points.txt,sha256=LrglS-8nCi8C_PL_pa6uxdgCe879hBETHDVXAckvs-8,60
|
|
100
|
+
nedo_vision_worker-1.3.1.dist-info/top_level.txt,sha256=vgilhlkyD34YsEKkaBabmhIpcKSvF3XpzD2By68L-XI,19
|
|
101
|
+
nedo_vision_worker-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|