Target Speed Estimation using a webcam
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi,can anybody tell me how to detect the distance of a moving target using a webcam(in real time). I want the distance to change relatively according to the motion of the target.We mark a particular object as a target and should calculate the distance of the moving target .Is there any possible solution for this? Any sample codes would be helpful .
Regards, Niranjan
0 Commenti
Risposta accettata
  Walter Roberson
      
      
 il 3 Feb 2011
        You need a bound on the size of the object in order to estimate the distance to the object. Unless you have information about the size of the object, you cannot tell the difference between a small object that is near-by and a large object that is further away.
If you have an estimate of the size of the object, then you can estimate the area of the object. Then measure the area of the object in the image, and use some trigonometry to estimate the distance.
Note: if the object is sufficiently close to the webcam lens, you may also have to do some correction for off-axis optical distortion.
0 Commenti
Più risposte (1)
  annna
 il 12 Mar 2011
        Will you please explain how can i find the distance when I know the original dimensions of the object. The trigonometry, what should it be?
0 Commenti
Vedere anche
Categorie
				Scopri di più su Computer Vision Toolbox in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


