The document presents a novel real-time motion detection algorithm that addresses the challenges of existing methods in dynamic backgrounds. It integrates temporal differencing, optical flow, double background filtering, and morphological processing for enhanced accuracy without requiring a static background model. The proposed system aims to improve the efficiency of video surveillance applications by eliminating background interference and adapting to rapid environmental changes.