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.