how to determine the positions of object boxes after using background difference and LK optical flow
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.
can you show, what you tried so far ?
also, LK optical flow does not have a dense "flow image", more like movement for a vector of keypoints.
do you have a bounding box before the optical flow ? (it should be easy then, to average the movement of points inside that box, and apply the resp. motion to the boundingbox)
@berak Thank you very much,I think I have worked it out,your answer really help me a lot.
@huge, if you could show, how you solved it - that would make a perfect answer !
@berak yeah,I will try to show the solution after implementing it.