Recently, I have been working for a project which using object detection,and I try to ues the methods of background difference and LK optical flow.However,given the optical flow image,I am not able to determine the position of boxes,in other words,I do not know how to draw the rectangles that contain objects.Hence I am hoping to get the answers from here.Thanks.