We start off by checking, do we have the background model ready?
If we don't, then we extract the background model from the.
This is the model initialization step.
Then for the next site relations, we now have the background model.
So we localize the robot as that is the only foreground object.
Finally, we use the centroid to get the precise location of the robot at any given moment.