title: What is the best way to be sure that the detected object is a vehicle?
body: <p>I'm working on a project in which I need to detect moving vehicles. I'm using background subtraction method to extract them and it works pretty good. After applying some morphological transforms, I am able to detect moving vehicles (you can see the output in the rightmost image).</p>
  
  <p>How can I be sure that the moving object is a vehicle and not a non-vehicle moving object?</p>
  
  <p>Training, pattern recognition, etc., I'm looking for the best solution with the lowest possible computational cost for a real-time system.</p>
  
  <p><a href="https://i.stack.imgur.com/ygjgo.jpg" rel="nofollow noreferrer">detected moving vehicles</a></p>