As the main force of naval warfare, helicopters also require rapid identification and targeting of targets in addition to the detection of ship targets. From the current public information, it is known that helicopters mostly use optical targeting systems for target search, and pilots need to manually adjust the optical targeting video screen to confirm the targeting. In the complex background weather environment, the pilot confirms the target for a long time, which affects the combat efficiency. In recent years, the world pattern has changed, and various modern technologies have been applied to all aspects of the battlefield. Among them, automatic target recognition technology based on deep learning has become the most efficient application in the battlefield. In terms of business applications, Google, Facebook AI, and Tesla are all developing deep learning technologies. In this paper, the deep recognition model YOLO-V5 is used to train and learn the ship target set to meet the purpose of automatic aiming of helicopters for sea targets, and its accuracy and recall rate meet the requirements.