This document presents a study on the design and development of an optical flow-based system for moving object detection and tracking, utilizing the Lucas-Kanade algorithm along with various smoothing techniques. It discusses the implementation of image processing methods in MATLAB to enhance object segmentation and tracking accuracy while addressing challenges such as computation time and noise. The findings emphasize the benefits of using image pyramids to improve accuracy and reduce computational load in real-time applications.