Train movement analysis. Movement direction detecion.
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.
I think this will help you.
for that kind of 'global motion' you could try the phase_corr.cpp from opencv's c++ samples
(it's pretty easy, too !)
could the camera film behind the train?