matrice-analytics 0.1.59__py3-none-any.whl → 0.1.578__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.

Potentially problematic release.


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

@@ -448,29 +448,14 @@ class FacialRecognitionClient:
448
448
  )
449
449
 
450
450
  embeddings_count = 0
451
- if response:
452
- # Handle both list and dict responses
453
- if isinstance(response, list):
454
- # API returned list directly
455
- data = response
456
- embeddings_count = len(data)
457
- self.logger.info(f"API RESPONSE: Retrieved {embeddings_count} staff embeddings (list format)")
458
- # Return in standard format for consistency
459
- return {"success": True, "data": data}
460
- elif isinstance(response, dict):
461
- # API returned dict with 'data' key
462
- data = response.get('data', [])
463
- embeddings_count = len(data) if isinstance(data, list) else 0
464
- self.logger.info(f"API RESPONSE: Retrieved {embeddings_count} staff embeddings (dict format)")
465
- return self._handle_response(response)
466
- else:
467
- self.logger.error(f"Unexpected response type: {type(response)}")
468
- return {"success": False, "error": f"Unexpected response type: {type(response)}"}
451
+ if response: #.get('success', False):
452
+ data = response.get('data', [])
453
+ embeddings_count = len(data) if isinstance(data, list) else 0
454
+ self.logger.info(f"API RESPONSE: Retrieved {embeddings_count} staff embeddings")
469
455
  else:
470
- error_msg = response.get('error', 'Unknown error') if isinstance(response, dict) else 'Empty response'
471
- self.logger.warning(f"Failed to get staff embeddings: {error_msg}")
472
- return {"success": False, "error": error_msg}
456
+ self.logger.warning(f"Failed to get staff embeddings: {response.get('error', 'Unknown error')}")
473
457
 
458
+ return self._handle_response(response)
474
459
  except Exception as e:
475
460
  self.logger.error(f"API ERROR: Get all staff embeddings request failed - {e}", exc_info=True)
476
461
  return {"success": False, "error": str(e)}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_analytics
3
- Version: 0.1.59
3
+ Version: 0.1.578
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -30,7 +30,7 @@ matrice_analytics/post_processing/face_reg/__init__.py,sha256=yntaiGlW9vdjBpPZQX
30
30
  matrice_analytics/post_processing/face_reg/compare_similarity.py,sha256=NlFc8b2a74k0PqSFAbuM_fUbA1BT3pr3VUgvSqRpJzQ,23396
31
31
  matrice_analytics/post_processing/face_reg/embedding_manager.py,sha256=zd4KIqZijRssPzA7QJsg9-DCJ983aIyUPoo8WuRW2rs,44956
32
32
  matrice_analytics/post_processing/face_reg/face_recognition.py,sha256=qkFl7f3EkyK9V6nWVCCC61ODV8R2sRffp1OB-ZVPjSU,109247
33
- matrice_analytics/post_processing/face_reg/face_recognition_client.py,sha256=jAwJ74i4euQWidT7rKdWicHLSzS9RHx0JJEerTRw_KM,28544
33
+ matrice_analytics/post_processing/face_reg/face_recognition_client.py,sha256=eF2NYju1uWKXhILndI1rh4_VhWrKSGidui2jjbPQXgM,27596
34
34
  matrice_analytics/post_processing/face_reg/people_activity_logging.py,sha256=vZbIvkK1h3h58ROeF0_ygF3lqr19O2h5222bN8XyIis,13675
35
35
  matrice_analytics/post_processing/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  matrice_analytics/post_processing/ocr/easyocr_extractor.py,sha256=RMrRoGb2gMcJEGouQn8U9cCgCLXPT7qRa8liI4LNxFM,11555
@@ -189,8 +189,8 @@ matrice_analytics/post_processing/utils/format_utils.py,sha256=UTF7A5h9j0_S12xH9
189
189
  matrice_analytics/post_processing/utils/geometry_utils.py,sha256=BWfdM6RsdJTTLR1GqkWfdwpjMEjTCJyuBxA4zVGKdfk,9623
190
190
  matrice_analytics/post_processing/utils/smoothing_utils.py,sha256=78U-yucAcjUiZ0NIAc9NOUSIT0PWP1cqyIPA_Fdrjp0,14699
191
191
  matrice_analytics/post_processing/utils/tracking_utils.py,sha256=rWxuotnJ3VLMHIBOud2KLcu4yZfDp7hVPWUtNAq_2xw,8288
192
- matrice_analytics-0.1.59.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
193
- matrice_analytics-0.1.59.dist-info/METADATA,sha256=rXOxohEHOU53Y64VrA-B_nDs_xcSCxUAc72zmJngGnY,14378
194
- matrice_analytics-0.1.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
195
- matrice_analytics-0.1.59.dist-info/top_level.txt,sha256=STAPEU-e-rWTerXaspdi76T_eVRSrEfFpURSP7_Dt8E,18
196
- matrice_analytics-0.1.59.dist-info/RECORD,,
192
+ matrice_analytics-0.1.578.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
193
+ matrice_analytics-0.1.578.dist-info/METADATA,sha256=WU4UmcJk2F6CXKSzjpNHKiDAT1p-uYKsozH5f2F4wwQ,14379
194
+ matrice_analytics-0.1.578.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
195
+ matrice_analytics-0.1.578.dist-info/top_level.txt,sha256=STAPEU-e-rWTerXaspdi76T_eVRSrEfFpURSP7_Dt8E,18
196
+ matrice_analytics-0.1.578.dist-info/RECORD,,