<p>If you are looking for some quick code which runs in CPU, take a look at Drew-NF. This is a python implementation of the neural network discussed in the paper <a href="https://arxiv.org/pdf/1604.02532.pdf" rel="nofollow noreferrer">Tubelets with
Convolutional Neural Networks for Object Detection from Videos</a>.
To Run the script you need:</p>

<ol>
<li><p>Tensorflow</p></li>
<li><p>OpenCV</p></li>
</ol>

<p><a href="https://github.com/DrewNF/Tensorflow_Object_Tracking_Video" rel="nofollow noreferrer">DrewNF Github Repo</a> </p>
Object tracking in video
<p>I'm trying to tracking people in the video. But I can not find a suitable algorithm that would behave similarly to <a href="https://www.youtube.com/watch?v=Qjr3RYecv3U" rel="nofollow">https://www.youtube.com/watch?v=Qjr3RYecv3U</a>.</p>

<p>I tried template matching in combination with optical flow, but always lose the tracked object if it overlaps another object. Could someone recommend a suitable method for tracking?</p>

<p>I am using Python and OpenCV.</p>