ravishankar chavare
ravishankar chavare

Reputation: 503

How to Calculate Speed Of moving Object

Problem I have a simple program that extract the interested ROI that will detect continues movement of an object (getting x,y coordinates ) at every frames.So I want to calculate speed of object in km/hour

What I Have Tried

  1. Extract The Object
  2. get the x and y coordinate at every frames

Can any one give me solution or steps to find-out speed into km/Hour

Note:I found this Video on YouTube But Don't know how they are Calculating https://www.youtube.com/watch?v=VZHdZG3LNhE Like This Example

Upvotes: 2

Views: 4896

Answers (1)

Bahramdun Adil
Bahramdun Adil

Reputation: 6079

As J. Taylor in the comment mentioned, it depends on how far an object is from the camera. So first you need to know, for example, 1 meter in the current scene (from point A to point B) equals to 100 pixels in the image of the scene, then if an object moved 100 pixels, then it means the object moved for 1m. Then you will be able to calculate the speed of the object movement in the scene.

Update: You need to track the blob and get its center point and then calculate the distance of the current center point with the previous one and check how many pixels the object was moved, for example in every 100px=1m.

Hope it helped and gives you some idea!

Upvotes: 1

Related Questions