Autonomous Monocular Obstacle Detection for Avoidance in Quadrotor UAVs