The invention discloses a
river water surface two-dimensional flow field
reconstruction method based on effective tracer detection and tracking, and the method comprises the steps: carrying out the
distortion correction of an original
video image sequence, and setting an ROI region according to the
water level detection
river water surface range; the method comprises the following steps: collecting a multi-scene floating object
data set, screening floating objects with high relative brightness and clear outlines in different scenes, and training a YOLO model to detect the floating objects on the surface of a river; using an OCSORT matching tracking method to track adjacent frames of targets to obtain a trajectory, and filtering according to the length, angle and variance of the trajectory to obtain a stable trajectory; according to the method, object information obtained through target detection is utilized, according to the area, the
area change rate and the length-
width ratio of a floating object on an image, the following performance and stability of the floating object are evaluated, a track fusion weight is calculated, and the influence of unreliable floating objects is reduced; and gridding the river surface area after orthographic correction, and for a grid with a plurality of tracks, calculating the average flow velocity of the grid according to the confidence coefficient of each track to obtain a gridding two-dimensional flow
velocity vector field. The method can accurately identify the floating object which meets the requirements of
visibility, following performance and stability on the river surface as an effective
water flow tracer, and is suitable for measuring the flow velocity of the river surface in complex scenes such as night,
storm,
flare, shadow and the like.