Aimed at the environment recognition problem of pipeline robot in bent pipes this paper constructs the characteristic rotating vector description of images and uses RBF neural network to recognize the direction of turn. Experiments prove that the speed and accuracy of the algorithms can meet the requirement of visual servo control in pipeline robot.