It is necessary to create a function that detects all moving objects in the video. A frame is fed into the function and we must identify the object if it was in the frames before. If the moving object was not previously found, then we assign it an identifier and save it for future tracking.
They decided to implement this function so that in the future the function for recognizing objects would not perform unnecessary work. If it works, it will only be able to recognize new objects.
Has anyone encountered a similar problem? Or does anyone have articles or useful links? Thanks for your helping!
I think the result of this should be a dictionary with the object identifier and its position on the current frame. If this needed to be visualized, it would look something like this:
Expected result
I know there is background subtraction, but this method does not allow tracking of previously appearing objects. Unfortunately, I just can’t find an algorithm that can specifically identify a moving object using opencv or another library.
Rinat Kuchaev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.