I would like to detect and track the motion of the objects as shown below,
My question is as follow
Is it possible to implement the method as shown below?
The purpose is to continuously calculate the motion of each white block (center of mass).
Any suggestions would be grateful.