I am making a sentry turret with servos and a paintball gun and need to implement real time motion tracing to make the gun shoot anything that moves. how can I code this(any good algorithms, books, tutorials)? I want to make it myself and not use premade solutions.
Lucas-Kanade with Kalman filtering is the bread and butter motion tracking algorithm. However, it's a bit outdated.