Decision 1
SSIM instead of pixel difference for scene change
- Problem
- Naive pixel subtraction flags minor lighting changes and JPEG artifacts as a new scene.
- Options
- Pixel diff
- Structural Similarity (SSIM)
- Decision
- An SSIM gate against a persisted reference frame. The threshold follows the battery mode: 0.90 (Aggressive), 0.80 (Balanced, default), 0.65 (Power save).
- Result
- Robust to small lighting and compression noise, and integrators can tune sensitivity against battery savings.
- Trade-off
- A sudden flash drops SSIM to ~0.4 with no semantic change, so the threshold needs tuning per environment.