Seeking help with measuring the speed of the object using fps

1 回表示 (過去 30 日間)
Naqi
Naqi 2014 年 2 月 26 日
コメント済み: Naqi 2014 年 2 月 27 日
Dear member(s), My university has assigned us some projects, and I am stuck in one phase of my project. The Description: Automatic Ticket Issuing System. The Problem: I am seeking help for calculating the speed of the car using frames of the video. The camera is going to be placed 90 degrees to the normal of the car that is to the either side of the car. Please guide me through this. Thanking you in advance.

回答 (1 件)

Shane
Shane 2014 年 2 月 26 日
Are you looking for someone to write the code? Or are you just looking for some brainstorming help?
In terms of helping you brainstorm. You will first need to know the distance the camera is from the car and what the linear width of the viewable frame is at the street lane. In other words, how far is it from the left side of the viewable screen to the right side (Note, you'll want to involve trig in your code to get an accurate measurement of speed. If you are lucky enough to have a clear background you could easily do an image recognition on the frame to locate the bumper of the car and track it across the screen. More likely you'll have to track the tires. Since all cars have circular tires, it will not be subjective based upon car type. You will have to write the code to track the center of the tire (or any traceable point on the cars) across the screen. By logging its location (left to right) on the screen for one frame and comparing it to the location a frame or two later (and combined with knowing what the overall distance is in the viewable screen) you can figure out how far the car has travelled. Take that distance, divide by the time between frames. And viola, you have the speed of the car.
  1 件のコメント
Naqi
Naqi 2014 年 2 月 27 日
Thank you so much for the brain storming, but I am not so good at using Matlab, so I don't know how to implement this theory into MATLAB. So yes I am looking for the code too. But thanks for this much of stuff too.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by