Blob ID tagging for OpenCV python
<p>I am currently making a python code for people headcounting with direction. I have used 'moments'method to gather the coordinates and eventually when it crosses a certain line then the counter increments.But, this method is proving to be very inefficient. My question regarding the blob detection are:</p>

<ol>
<li>Is there any blob detection technique for python opencv? Or it could be done with cv2.findContours?
I'm working on raspberry pi so could anyone suggest how to get blob library on debian linux?</li>
<li>Even if there is, how could i get a unique ID for each blob? Is there any algorithm to provide tagging of UNIQUE ID's?</li>
<li>If there's any better method to do this, kindly suggest an algorithm.</li>
</ol>

<p>Thanks in advance.</p>