US 12,168,172 B2
Lag detection method and apparatus, device, and readable storage medium
Shenglong Zhang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed on Apr. 13, 2022, as Appl. No. 17/719,753.
Application 17/719,753 is a continuation of application No. PCT/CN2021/092621, filed on May 10, 2021.
Claims priority of application No. 202010494870.4 (CN), filed on Jun. 3, 2020.
Prior Publication US 2022/0233957 A1, Jul. 28, 2022
Int. Cl. G06T 7/00 (2017.01); A63F 13/52 (2014.01); G06K 9/46 (2006.01); G06T 7/254 (2017.01); H04N 21/433 (2011.01); H04N 21/478 (2011.01)
CPC A63F 13/52 (2014.09) [G06T 7/254 (2017.01); H04N 21/4334 (2013.01); H04N 21/4781 (2013.01); A63F 2300/203 (2013.01); G06T 2207/20224 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A lag detection method, performed by a computing device, the method comprising:
obtaining a process video in a running process of an application;
creating a first array associated with the process video, the first array comprising a plurality of first elements, wherein each first element corresponds to an image frame of the process video and is configured to record a lag situation of the corresponding image frame;
determining lag situations corresponding to a plurality of first image frames from the process video and assigning values to the first elements that correspond to the first image frames in the first array, comprising: for a first image frame:
obtaining the first image frame and a second image frame from the process video;
obtaining a difference image between the first image frame and the second image frame, the difference image representing difference degrees between corresponding pixels in the first image frame and the second image frame;
converting the difference image into a grayscale image, the grayscale image comprising a plurality of pixels;
determining, according to grayscale values of the pixels in the grayscale image, whether a lag occurs within display duration from the first image frame to the second image frame in the running process of the application; and
assigning a value to a first element corresponding to the first image frame in the first array according to a determination of whether the lag occurs between the first image frame and the second image frame; and
determining a lag situation in the running process of the application based on a sum of k elements in the first array.