Hello, I have a video of moving persons and I get the contours of them by background substraction.
At the moment with every new frame a contour gets, depending on the new position, another position in the contours vector.
How can I achieve that eyery contour can be identified with an unique id while mowing?
My idea is to use moments to calculate the size and center of every contour and then to identify the contours in the new frame fitting best togehter with size and center position.
Is there any better approach? Thank you very much :-)