A vision-based approach to uav detection and tracking in cooperative applications