Hi, I’ve been working on this for a while and still haven’t had a good solution.
I read the video frame by frame and use background subtraction in 'identify the area where there is movement, and use cvFindContours () to get the border of the rectangle of moving objects.
Assuming the program is kept simple, there can only be 2 people.
These objects move in such a way that they can overlap, rotate and go away at a certain interval.
How can I properly label these people x 2.
cvFindContour can return a border randomly. for Frame1, Frame2, Frame3 .... FrameN
I can initially compare a rectangular centroid to correctly identify a person. When a person overlaps and leaves, this approach will fail.
I tried to track the pixel color of the original obj (however, the person is quite similar, and some areas have similar colors, such as arm, leg, hair), therefore, not enough.
I considered using image statistics as:
CountNonZero (), SumPixels () I mean () Mean_StdDev () MinMaxLoc () Norm ()
to clearly distinguish between two objects. I think this will be the best approach.