In an university project, we are currently working on an iOS-App, that has to compute the velocity of an vehicle using the information provided by the camera of an iOS-device. The front camera of it should "look" on the street.
We want to solve the task by using optical flow. We already implemented the computation of the optical flow computation on the iOS-device using the OpenCV-Library. So now we have some (reliable) optical flow vectors and want to estimate the current velocity.
Does anyone know, where we can find a simple formula for that estimation?
We can make several assumptions, if necessary (vehicle is moving just forwards without an angle speed, road is flat, focal length and hight over ground is known, we can provide calibration data using GPS means).
There are some papers about the estimation of the velocity in the internet, like this one: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.117.6207&rep=rep1&type=pdf
But we can't find out, how to match the formulas
Vx = (V * x * y) / (h*f)
Vy = (V * y^2) / (h*f)
to the information, that are provided by our optical flow vectors (dx and dy) except for the obvious values of h and f.
Any help would be appreciated!