matrice 1.0.99155__py3-none-any.whl → 1.0.99157__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/utils/post_processing/processor.py +1 -1
- matrice/deploy/utils/post_processing/usecases/age_detection.py +18 -18
- {matrice-1.0.99155.dist-info → matrice-1.0.99157.dist-info}/METADATA +1 -1
- {matrice-1.0.99155.dist-info → matrice-1.0.99157.dist-info}/RECORD +7 -7
- {matrice-1.0.99155.dist-info → matrice-1.0.99157.dist-info}/WHEEL +0 -0
- {matrice-1.0.99155.dist-info → matrice-1.0.99157.dist-info}/licenses/LICENSE.txt +0 -0
- {matrice-1.0.99155.dist-info → matrice-1.0.99157.dist-info}/top_level.txt +0 -0
@@ -320,7 +320,7 @@ class PostProcessor:
|
|
320
320
|
result = use_case.process(data, parsed_config, context, stream_info)
|
321
321
|
elif isinstance(use_case, PriceTagUseCase):
|
322
322
|
result = use_case.process(data, parsed_config, context, stream_info)
|
323
|
-
elif isinstance(use_case,
|
323
|
+
elif isinstance(use_case, AgeDetectionUseCase):
|
324
324
|
result = use_case.process(data, parsed_config, context, stream_info)
|
325
325
|
elif isinstance(use_case, GenderDetectionUseCase):
|
326
326
|
result = use_case.process(data, parsed_config, context, stream_info)
|
@@ -34,25 +34,25 @@ class AgeDetectionConfig(BaseConfig):
|
|
34
34
|
confidence_threshold: float = 0.5
|
35
35
|
|
36
36
|
usecase_categories: List[str] = field(
|
37
|
-
default_factory=lambda: ['
|
37
|
+
default_factory=lambda: ['AGE- 0-20 FEMALE', 'AGE- 0-20 MALE', 'AGE- 20-30 FEMALE', 'AGE- 20-30 MALE', 'AGE- 30-50 FEMALE', 'AGE- 30-50 MALE', 'AGE- 50- FEMALE', 'AGE- 50- MALE']
|
38
38
|
)
|
39
39
|
|
40
40
|
target_categories: List[str] = field(
|
41
|
-
default_factory=lambda: ['
|
41
|
+
default_factory=lambda: ['AGE- 0-20 FEMALE', 'AGE- 0-20 MALE', 'AGE- 20-30 FEMALE', 'AGE- 20-30 MALE', 'AGE- 30-50 FEMALE', 'AGE- 30-50 MALE', 'AGE- 50- FEMALE', 'AGE- 50- MALE']
|
42
42
|
)
|
43
43
|
|
44
44
|
alert_config: Optional[AlertConfig] = None
|
45
45
|
|
46
46
|
index_to_category: Optional[Dict[int, str]] = field(
|
47
47
|
default_factory=lambda: {
|
48
|
-
0: '
|
49
|
-
1: '
|
50
|
-
2: '
|
51
|
-
3: '
|
52
|
-
4: '
|
53
|
-
5: '
|
54
|
-
6: '
|
55
|
-
7: '
|
48
|
+
0: 'AGE- 0-20 FEMALE',
|
49
|
+
1: 'AGE- 0-20 MALE',
|
50
|
+
2: 'AGE- 20-30 FEMALE',
|
51
|
+
3: 'AGE- 20-30 MALE',
|
52
|
+
4: 'AGE- 30-50 FEMALE',
|
53
|
+
5: 'AGE- 30-50 MALE',
|
54
|
+
6: 'AGE- 50- FEMALE',
|
55
|
+
7: 'AGE- 50- MALE'
|
56
56
|
}
|
57
57
|
)
|
58
58
|
|
@@ -60,14 +60,14 @@ class AgeDetectionConfig(BaseConfig):
|
|
60
60
|
class AgeDetectionUseCase(BaseProcessor):
|
61
61
|
# Human-friendly display names for categories
|
62
62
|
CATEGORY_DISPLAY = {
|
63
|
-
'
|
64
|
-
'
|
65
|
-
'
|
66
|
-
'
|
67
|
-
'
|
68
|
-
'
|
69
|
-
'
|
70
|
-
'
|
63
|
+
'AGE- 0-20 FEMALE': 'AGE- 0-20 FEMALE',
|
64
|
+
'AGE- 0-20 MALE': 'AGE- 0-20 MALE',
|
65
|
+
'AGE- 20-30 FEMALE': 'AGE- 20-30 FEMALE',
|
66
|
+
'AGE- 20-30 MALE': 'AGE- 20-30 MALE',
|
67
|
+
'AGE- 30-50 FEMALE': 'AGE- 30-50 FEMALE',
|
68
|
+
'AGE- 30-50 MALE': 'AGE- 30-50 MALE',
|
69
|
+
'AGE- 50- FEMALE': 'AGE- 50- FEMALE',
|
70
|
+
'AGE- 50- MALE': 'AGE- 50- MALE'
|
71
71
|
}
|
72
72
|
|
73
73
|
|
@@ -128,7 +128,7 @@ matrice/deploy/utils/boundary_drawing_internal/boundary_drawing_tool.py,sha256=e
|
|
128
128
|
matrice/deploy/utils/boundary_drawing_internal/example_usage.py,sha256=cUBhxxsVdTQWIPvIOjCUGrhqon7ZBr5N6qNewjrTIuk,6434
|
129
129
|
matrice/deploy/utils/post_processing/__init__.py,sha256=9wVjSGmFCVYWsgfe2__sXGGSNtnZFKy_DIzeLVzlrwI,23471
|
130
130
|
matrice/deploy/utils/post_processing/config.py,sha256=anKXcN8mD16bNOrErre1gzi17lbKiAAeYc7TEu7ttbk,3476
|
131
|
-
matrice/deploy/utils/post_processing/processor.py,sha256=
|
131
|
+
matrice/deploy/utils/post_processing/processor.py,sha256=tWtZ59d2aSpk8Nzda-lX39iiV43J5m3PN84Vz5PXNqA,30945
|
132
132
|
matrice/deploy/utils/post_processing/advanced_tracker/__init__.py,sha256=tAPFzI_Yep5TLX60FDwKqBqppc-EbxSr0wNsQ9DGI1o,423
|
133
133
|
matrice/deploy/utils/post_processing/advanced_tracker/base.py,sha256=VqWy4dd5th5LK-JfueTt2_GSEoOi5QQfQxjTNhmQoLc,3580
|
134
134
|
matrice/deploy/utils/post_processing/advanced_tracker/config.py,sha256=hEVJVbh4uUrbIynmoq4OhuxF2IZA5AMCBLpixScp5FI,2865
|
@@ -154,7 +154,7 @@ matrice/deploy/utils/post_processing/test_cases/test_utilities.py,sha256=lmT5bp5
|
|
154
154
|
matrice/deploy/utils/post_processing/test_cases/test_utils.py,sha256=bfmOT1rr9asv3jpr-p_UrjnnSZ1qEWM2LEqNKkyvJZ8,29370
|
155
155
|
matrice/deploy/utils/post_processing/usecases/__init__.py,sha256=gHx_u97JrJ0GPZJhhKaeWOys4ZvidSbvBB8hWBcqx8g,7540
|
156
156
|
matrice/deploy/utils/post_processing/usecases/advanced_customer_service.py,sha256=ELt5euxr6P4X2s8-YGngmj27QscOHefjOsx3774sNFk,75914
|
157
|
-
matrice/deploy/utils/post_processing/usecases/age_detection.py,sha256=
|
157
|
+
matrice/deploy/utils/post_processing/usecases/age_detection.py,sha256=4EZ__lIRlczVk6LIv6pPhDGyLv_7bi-jmyXoMoA2UlU,41260
|
158
158
|
matrice/deploy/utils/post_processing/usecases/anti_spoofing_detection.py,sha256=XdtDdXGzZMLQdWcoOoiE5t4LPYHhgOtJ7tZCNlq1A2E,31329
|
159
159
|
matrice/deploy/utils/post_processing/usecases/assembly_line_detection.py,sha256=I_oeuec84KJnGMg_A8Wgs9U6h_IiopkDz9FbM1JG110,40410
|
160
160
|
matrice/deploy/utils/post_processing/usecases/banana_defect_detection.py,sha256=uKvB550Xve3iWfdWeOU3VhgORxD-M_UzsQDQKkYcFBc,30338
|
@@ -227,8 +227,8 @@ matrice/deployment/camera_manager.py,sha256=ReBZqm1CNXRImKcbcZ4uWAT3TUWkof1D28oB
|
|
227
227
|
matrice/deployment/deployment.py,sha256=PLIUD-PxTaC2Zxb3Y12wUddsryV-OJetjCjLoSUh7S4,48103
|
228
228
|
matrice/deployment/inference_pipeline.py,sha256=bXLgd29ViA7o0c7YWLFJl1otBUQfTPb61jS6VawQB0Y,37918
|
229
229
|
matrice/deployment/streaming_gateway_manager.py,sha256=w5swGsuFVfZIdOm2ZuBHRHlRdYYJMLopLsf2gb91lQ8,20946
|
230
|
-
matrice-1.0.
|
231
|
-
matrice-1.0.
|
232
|
-
matrice-1.0.
|
233
|
-
matrice-1.0.
|
234
|
-
matrice-1.0.
|
230
|
+
matrice-1.0.99157.dist-info/licenses/LICENSE.txt,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
231
|
+
matrice-1.0.99157.dist-info/METADATA,sha256=c-iL1khgTHINoN1xxhe_E79H_iFZiz01fqdaHw0UFsU,14624
|
232
|
+
matrice-1.0.99157.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
233
|
+
matrice-1.0.99157.dist-info/top_level.txt,sha256=P97js8ur6o5ClRqMH3Cjoab_NqbJ6sOQ3rJmVzKBvMc,8
|
234
|
+
matrice-1.0.99157.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|