Seeking help with measuring the speed of the object using fps
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!