title: Tracking of rotating objects using opencv
body: <p>I need to track cars on the road from top-view video.</p>
  
  <p>My application contain two main parts:</p>
  
  <ol>
  <li>Detecting cars on the frame (Tensorflow trained network)</li>
  <li>Tracking detected cars (opencv trackers)</li>
  </ol>
  
  <p>I have troubles with opencv trackers. Initially i tried to different trackers, but only MOSSE is fast enough. This tracker works almost perfect for case with straight road, but i faced problems with rotating cars. This situation appears on crossroads.</p>
  
  <p>As i understood, bounding box of rotated object is bigger that bbox of horizontal or vertical object. As result bbox contains big part of static background and the tracker lose target object.</p>
  
  <p>Are there any alternative trackers which can track contours (not bounding boxes)?
  Can i adjust quality of existing opencv trackers results by any settings or by adjusting picture? </p>
  
  <p><strong>Schema:</strong>
  <a href="https://i.stack.imgur.com/cjIjf.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/cjIjf.jpg" alt="Example"></a></p>
  
  <p><strong>Real image:</strong>
  <a href="https://i.stack.imgur.com/SSL9r.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SSL9r.jpg" alt="Real image"></a></p>