Personal fingerling fish tracking and counting project, using kalman filter and global nearest neighbour assigning. Python implementation sample: Not perfect, performs poorer as fishes overlap more and more. Smoother MATLAB implementation: