I get a 22x22 image every 100ms and applied a threshold to isolate the target. I tracked the center of the object/shape/blob. I now want to detect a motion.
My first thought was to keep track of the past 2 seconds (20 frames) and compare the center of the frames to see if there is a constant delta.
Or even simpler compare the center to the center 2 seconds ago.
This approach seems too simple, sub-optimal, and prone to issues.
Do you have links to how to detect motion "from scratch" to keep it lightweight?