A self-tuning system for real-time Optical Flow detection