Drone with object recognition