In modern society, based on the aging of population and the rapid development of intelligent technology, the demand for intelligent service robots is increasing, and visual recognition is one of the key technologies of service robots. The rapid development of deep learning technology provides new solutions for visual recognition. Existing target recognition algorithms have the problem of complex model and slow inference speed. According to the above problems, this paper proposes a visual recognition algorithm based on YOLO series, which is used for the visual recognition design scheme of service robot. It can ensure the detection accuracy, reduce the speed of the model complexity, speed up the reasoning, and determine whether to meet the actual needs. Through randomly selected pictures, the results show that the design scheme can effectively improve the detection accuracy and real-time of the service robot on targets, and enhance its autonomous service ability in various complex environments.