Patent ID: 11900614
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A video data processing method, comprising:
obtaining a first video frame and a second video frame adjacent to the first video frame from a target video;
determining an average displacement matrix corresponding to the first video frame based on an optical flow tracking rule corresponding to the target video, pixels in the first video frame, and pixels in the second video frame, comprising:
obtaining the optical flow tracking rule corresponding to the target video, determining the location information of the pixels in the first video frame as first location information, and determining location information of the pixels in the second video frame as second location information,
obtaining a forward displacement matrix corresponding to the first video frame and a backward displacement matrix corresponding to the second video frame based on the optical flow tracking rule, the first location information of the pixels in the first video frame, and the second location information of the pixels in the second video frame,
determining pixels meeting a target screening condition in the pixels as valid pixels based on the first location information of the pixels in the first video frame, the forward displacement matrix, and the backward displacement matrix,
correcting, based on the valid pixels, an initial state matrix corresponding to the first video frame and the forward displacement matrix, to obtain a target state matrix and a target displacement matrix that correspond to the first video frame, and
determining the average displacement matrix corresponding to the first video frame based on the target state matrix and the target displacement matrix,

tracking location information of the pixels in the first video frame based on the average displacement matrix, and determining location information of pixels being tracked in the second video frame; and
generating, based on the location information of the pixels in the first video frame and the location information of the pixels being tracked in the second video frame, trajectory information associated with the target video.