In modern society, people’s life rhythm is getting faster and faster. Ankle injury would significantly reduce the frequency of people’s activities, which has a great impact on people’s normal work and life. As a new medical method, the bionic ankle rehabilitation training system is used to assist rehabilitation doctors to help patients complete joint flexibility and recovery training. In the research method of ankle biomechanical characteristics, the detection of ankle joint patient’s motion is particularly important. The purpose of this paper is to study how to design a bionic ankle assisted rehabilitation training system based on image processing. Therefore, this paper proposes an image-based moving target detection method, which has the advantages of high reliability and simple operation, and can improve the recognition rate of the ankle joint movement. The experimental results of this paper showed that the system can realize the predetermined trajectory movement and run the system stably. In terms of patient following error, it was kept within 0.03cm. The following error of the ankle joint trajectory was up to 0.03cm and the lowest was 0.01cm, which was almost negligible. In terms of accuracy, the accuracy of the system was also very high, and it can respond and determine the patient’s actions quickly, thereby helping patients to better perform rehabilitation training.