Hi i have been working on this for a while and yet to have no good solution.
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.
Assuming the program is kept simple there can be only 2 human.
These objects and move in a manner they can overlapped, make turn and move away at certain interval.
How can i label this humans x 2 correctly.
cvFindContour can return the boundary in a random manner. for Frame1,Frame2,Frame3....FrameN
I can initially compare rect boundary centroid to label the human correctly. Once the human overlapped and move away this approach will fail.
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.
I was considering using Image Statistic like :
CountNonZero(), SumPixels() Mean() Mean_StdDev () MinMaxLoc () Norm ()
to uniquely distinguish the two objects. I believe that would be a better approach.
Any suggestions/comment ?? Thank you.