How arhadnane/movementdetection works
Project type and purpose
• This is a Windows-based, full-stack desktop application written in C# (.NET 8.0) with a clean Windows Forms GUI.
• Its purpose is real-time motion detection, on-the-fly video recording and event logging using OpenCvSharp.
File structure
• Top level:
• Source files: MainForm.cs, MotionDetector.cs, VideoRecorder.cs, MotionEventLogger.cs, AppConfig.cs, Program.cs
• Configuration: MovementDetection.csproj, config.json, .gitignore
• Output dirs: Recordings/, Logs/
• Scripts: demo.ps1, run.bat
• Patterns:
• UI layer (MainForm)
• Core services (motion detection, recording, logging, configuration)
• File-system persistence (video and log storage)
• Single process with modular components
README for additional insights
• The modules and their responsibilities (live feed, overlay, auto/manual recording, logging) are documented in “📋 Project Structure.”
• Dependencies: OpenCvSharp4, System.Text.Json
• Configuration-driven—config.json defines thresholds, camera settings, recording preferences