title: Idea Needed for Positioning an objects in a Video - OpenCV and C++
body: <p>I am looking for some simple implementation ideas in order to develop an application.</p>
  <p>I have Thresholded certain colour from an video --&gt;<a href="https://i.stack.imgur.com/bFXDv.png" rel="nofollow noreferrer">Thresholded</a></p>
  <p>What I need is the Following :</p>
  <ol>
  <li><p>Now, I would like to create a template for a new co-ordinate system with in the thresholded region. Then I would introduce an object(shown blue colour) within those region as shown here--&gt; <a href="https://i.stack.imgur.com/n81ll.png" rel="nofollow noreferrer">Object Position</a></p>
  </li>
  <li><p>The Idea is to get the location co-ordiate of the object dynamically from the video based on my co-ordinate system which I mentioned above.</p>
  </li>
  </ol>
  <p>It would be really nice if you can tell me how to achieve it. Especially I need to know :</p>
  <ol>
  <li><p>How do I create such template ?</p>
  </li>
  <li><p>How can I manually position the co-ordinates ?</p>
  </li>
  <li><p>How to dynamically track the location ?</p>
  <p>Currently I am using OpenCV and C++.</p>
  </li>
  </ol>