**Object Detection:** The cornerstone of subsequent stages, object detection lays the groundwork. It facilitates the identification and categorization of objects' movements, often relying on background subtraction, optical flow, and frame differencing algorithms. Background subtraction pinpoints regions of motion by calculating pixel value changes over frames. Frame differe...