This study proposes a method that effectively tracks trocar tool and peg positions in real time to allow real time assessment of the peg transfer task of the Fundamentals of Laparoscopic Surgery (FLS). By utilizing custom code along with OpenCV libraries, tool and peg positions can be accurately tracked without altering the original setup conditions of the FLS trainer box. This is achieved via a series of image filtration sequences, thresholding functions, and Haar training methods.