If you know the length of the object, and it is quite slow-moving, this should be possible, but bear in mind that you may be only able to perform around 20 measurements per second, so there may be a large margin of error.
If you want code written, I can move this to "Gigs and collaborations" for you.