title: Error while detecting cars on video TypeError: integer argument expected, got float
body: <p>I am new to Python, working on vehicles detection, and I am getting this error.</p>
  
  <p>I do not know why I am getting this error and what the solution is to solve the problem.</p>
  
  <p>I am getting an error on the following line.</p>
  
  <p>I have tried the solution, and I found but have not solved the problem:</p>
  
  <pre><code>frame = cv2.resize(frame,(frameWidth/2, frameHeight/2)) 
  frameHeight, frameWidth, fdepth = frame.shape
  </code></pre>