v0.8.1: Cross-platform face detection
What's Changed
Fix: Face detection now works cross-platform
Replaced face_recognition (dlib) with OpenCV's built-in YuNet face detector + SFace recognizer.
Before: Face detection depended on dlib, which requires C++ compilation and frequently fails to install on macOS, Windows, and ARM platforms. When it failed, face detection silently returned zero results.
After: Face detection uses ONNX models that ship with opencv-python-headless (already a core dependency). No extra build tools, no C++ compiler, no platform-specific issues. Models (~37 MB total) are auto-downloaded on first use and cached locally.
Changes
- Rewrote
recognize.pyto usecv2.FaceDetectorYN(YuNet) +cv2.FaceRecognizerSF(SFace) - Updated
blur.pyvideo frame processing to use the new detector - Updated
ai.count_faces()to use YuNet with Haar cascade as fallback - Removed optional
face_recognition/dlibdependency frompyproject.toml - Bumped scan cache version to force re-scan with new detector
- Updated docs (CLAUDE.md, ARCHITECTURE.md)