PCA (or Prime component analysis) is a wonderful tool which has many uses, especially in image processing. Here, we use it to track an objects direction and position over time in multiple image
This repo is the full code for the website https://nnnawi.github.io/PCA-image-tracking/, that explains the intuition behind PCA for image tracking with detailed and intuitive math descriptions, but also interactive visuals using the P5.js library.