Commit Graph

7 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
underlines c91ab8bbd2 add toggle button for blueish cam fix (Force OpenCV2 BGR2RGB) 2024-08-30 22:02:23 +02:00
underlines 79c6615a68 use mjpeg and convert bgr to rgb 2024-08-30 21:49:01 +02:00
Vic P 6d28a52869 Update codes following the comments of @sourcery-ai.
Signed-off-by: Vic P <vic4key@gmail.com>
2024-08-21 02:16:06 +07:00
Vic P 7313a332c8 Re-enabled the NSFW function (turn-off by default).
@refer to the PR #237 in the `experimental` branch.

Signed-off-by: Vic P <vic4key@gmail.com>
2024-08-21 02:02:00 +07:00
Kenneth Estanislao e616245e3d initial commit
rebranding everything
2023-09-24 21:36:57 +08:00