The invention provides an unmanned ship charging cable control method based on
visual identification, and relates to the technical field of
data processing, and the method comprises the steps: collecting continuous image frames of an unmanned ship charging area, identifying the
spatial displacement and inclination angle change of an unmanned ship, analyzing the attitude offset of the unmanned ship caused by
sea waves, calculating a water surface disturbance factor, and calculating the water surface disturbance factor. The method comprises the following steps: identifying the position of a charging interface, obtaining an initial positioning coordinate, carrying out prediction analysis on a disturbance trend in a preset time window, predicting a position change range of the charging interface, obtaining prediction coordinate data, planning a
butt joint path of a cable and the charging interface, obtaining a compensation path sequence, and generating a cable propulsion instruction. And collecting an area image of the charging interface to obtain
path tracking image data, judging whether the
butt joint of the charging interface is successful or not, and if not, dynamically correcting the compensation path sequence. According to the invention, the cable is controlled through
visual identification to charge the unmanned ship.