US 12,445,724 B2
Method and apparatus for detecting jitter in video, electronic device, and storage medium
Xiangyang Wang, Beijing (CN); and Huaifei Xing, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Sep. 16, 2022, as Appl. No. 17/932,831.
Claims priority of application No. 202111112132.X (CN), filed on Sep. 18, 2021.
Prior Publication US 2023/0013170 A1, Jan. 19, 2023
Int. Cl. H04N 23/68 (2023.01)
CPC H04N 23/6811 (2023.01) 17 Claims
OG exemplary drawing
 
1. A method for detecting a jitter in a video, comprising:
acquiring video frames of a video, wherein the video frames comprise a target video frame and a plurality of historical video frames before the target video frame;
determining a first moving distance of each of the video frames relative to a previous video frame in a preset direction;
determining an amplitude and a period of the target video frame in the preset direction based on the first moving distances of the video frames;
determining that the target video frame has a jitter in response to the amplitude of the target video frame in the preset direction being greater than a amplitude threshold and the period of the target video frame in the preset direction being less than a period threshold; and
determining that there is a jitter in the video in response to determining that the target video frame has a jitter;
wherein determining the amplitude and the period of the target video frame in the preset direction comprises:
generating a moving distance list in a preset order based on the first moving distances; wherein the preset order is configured to indicate a generation order in which the video frames are generated;
determining a first number of consecutive video frames based on the moving distance list, wherein each of absolute values of respective first moving distances of the first number of consecutive video frames is greater than a first distance threshold;
determining from the first number of consecutive video frames, a second number of candidate video frames, in which each of the absolute values of respective first moving distances of the second number of candidate video frames is an extreme value, and the second number is less than the first number; and
determining the amplitude and the period of the target video frame in the preset direction based on the respective first moving distances of the second number of candidate video frames.