title: OpenCv Blob/Contour labeling
body: <p>Hi i have been working on this for a while and yet to have no good solution.</p>
  
  <p>I am reading a video frame by frame and am using background subtraction to '
  identify the region where is there movement and use cvFindContours() to get the rectangle boundary of the moving objects.</p>
  
  <p>Assuming the program is kept simple there can be only 2 human. </p>
  
  <p>These objects and move in a manner they can overlapped, make turn and move away at certain interval.</p>
  
  <p>How can i label this humans x 2 correctly. </p>
  
  <p>cvFindContour can return the boundary in a random manner.  for Frame1,Frame2,Frame3....FrameN</p>
  
  <p>I can initially compare rect boundary centroid to label the human correctly. Once the human overlapped and move away this approach will fail.</p>
  
  <p>I tried to keep track of pixel color of the original obj (however the human are fairly similar and certain areas have similar colors like hand,leg,hair ) hence not good enough.</p>
  
  <p>I was considering using Image Statistic like :</p>
  
  <p>CountNonZero(),
  SumPixels()
  Mean()
  Mean_StdDev ()
  MinMaxLoc ()
  Norm ()</p>
  
  <p>to uniquely distinguish the two objects. I believe that would be a better approach.</p>