Commit Graph

3 Commits (d79355d86a0e6e0dd48fe2311bc527cccb7a83f5)

Author SHA1 Message Date
souvik03-136 532c8e57db Refactor: Address Sourcery Bot and reviewer feedback for stability and testability
- Fixed frame index calculation in capturer.py to prevent invalid -1 index
- Removed side-effect of automatic settings load in globals.py; added explicit init()
- Refactored functions to accept config params directly, reducing global settings reliance:
  - find_cluster_centroids() now takes max_k and kmeans_init
  - NSFW prediction functions now accept threshold
- Updated documentation for all affected functions
- Verified all changes against existing test suite — all tests pass
2025-04-29 19:45:04 +05:30
souvik03-136 1d6d72b8bc feat: Improve color handling, cluster analysis and add error resilience
- Enhanced color space handling in capturer.py with explicit controls
- Improved cluster analysis with silhouette scoring for better face matching
- Added caching for NSFW model to improve performance
- Implemented proper error handling and logging across all modules
- Added configurable settings system in globals.py
- Created comprehensive unit tests
- Added detailed documentation with docstrings
2025-04-29 19:35:54 +05:30
pereiraroland26@gmail.com 53fc65ca7c Added ability to map faces 2024-09-10 05:40:55 +05:30