I have been looking into object detection and tracking for a project that I am working on but I can't yet seem to find any techniques that I can make use of to utilise the information from object tracking to determine the direction of travel.
Ideally I'd want to find out whether the object is moving towards or away from a camera.
I could not find what methods exist out there or perhaps where and how to search for them, I am looking through OpenCV for any possible methods it offers.
Currently I could only think of two methods:
- Object size based, if the object gets smaller or bigger then it is either moving away or towards the object but this is very dependant on the cameras position.
- Object coordinates based, sounds a bit too simple to be true but can't think of why it won't work or what disadvantages it has.