Ask Your Question

Train movement analysis. Movement direction detecion.

asked 2015-01-07 09:48:45 -0500

paulpl gravatar image

Hi, i have found many materials in web about tracking an objects while camera is steady and the objects are moving but it didnt help me. I need to do a project with a camera attached to the front of train and detect a movement direction of it based on video analysis. Can someone help me what methods are best to use in it. I heard something about optical flow but im really not good at it and dont know what will be best.

edit retag flag offensive close merge delete


I think this will help you.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-07 10:03:51 -0500 )edit

for that kind of 'global motion' you could try the phase_corr.cpp from opencv's c++ samples

(it's pretty easy, too !)

berak gravatar imageberak ( 2015-01-07 10:12:36 -0500 )edit

could the camera film behind the train?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-08 02:25:09 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-07 16:07:24 -0500

If "camera attached to the front of train" and looks ahead phase correlation will not give appropriate result, thus optical flow is better (but not the only method). If it looks to the side -- phase correlation should be enough.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-07 09:48:45 -0500

Seen: 206 times

Last updated: Jan 07 '15