how to determine the positions of object boxes after using background difference and LK optical flow

asked 2017-08-09 02:15:44 -0600

huge gravatar image

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.

edit retag flag offensive close merge delete

Comments

can you show, what you tried so far ?

berak gravatar imageberak ( 2017-08-09 02:18:20 -0600 )edit

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 gravatar imageberak ( 2017-08-09 02:22:26 -0600 )edit

@berak Thank you very much,I think I have worked it out,your answer really help me a lot.

huge gravatar imagehuge ( 2017-08-10 01:29:35 -0600 )edit

@huge, if you could show, how you solved it - that would make a perfect answer !

berak gravatar imageberak ( 2017-08-10 01:35:43 -0600 )edit

@berak yeah,I will try to show the solution after implementing it.

huge gravatar imagehuge ( 2017-08-10 04:16:25 -0600 )edit