Aiming at the problem of low position accuracy and long calculation time in near-distance visual guidance of autonomous underwater vehicle during underwater docking,a high-precision visual detection algorithm based on Cascade RCNN neural network model is designed. Firstly,a hybrid data augmentation strategy is established based on heat-map guided poisson copy,so training samples are expanded at both instance-level and image-level. Secondly,the complete intersection of union loss function is used to improve the regression accuracy of the output boundary frame of the model. Then,the learning rate cosine annealing strategy is used to improve the final precision of the target detection by periodic thermal recovery strategy and the global attenuation strategy. Finally, mixed precision strategy is used to reduce the computation complexity of the model and to improve the real-time performance. Experiments on underwater docking images show that the average accuracy of the proposed algorithm is over 94% and the detection speed is over 20 frames per second.