The application relates to the technical field of marine
orientation sensing of ships, and discloses a ship marine target sensing method and
system based on
machine vision, which comprises the following steps: using an AD-YOLOv9
algorithm to process incoming image information, obtaining position information and category information of a target image; establishing a coordinate
system according to the position information of the target image, marking a target on the target image by using a target prediction box, determining the center point coordinates of the target prediction box based on a
deep learning network to determine the center point coordinates of the target, and associating the bow of the ship to determine the
absolute orientation and the relative orientation of the target; determining the position of the target relative to the reference point of the ship to determine the
direction angle of the target; determining a straight line where the center point of the target and the reference point of the ship are located according to the
direction angle of the target, and recording the straight line as a target direction line; calculating and formatting the angle
label of the target according to the target direction line, and selecting a position on the target direction line to draw angle
label information; and displaying the processed target image.