In this part, BackgroundSubstracker(BS) is used to detect moving objects in a frame. To initialize the process, one ought to select two ROI mannually, one is thought to be the entry of the conveyor while the other one is the exit. After that, as illustrated in the fiugres below, a white conveyor model is made.