Given optical flow, we can detect moving objects, detect how far the objects are, and detect independent moving objects.
To overcome this problem, there are two solutions provided.