| CPC G06F 21/32 (2013.01) [G06T 7/194 (2017.01); G06T 7/20 (2013.01); G06V 10/22 (2022.01); G06V 40/161 (2022.01); G06T 2207/30201 (2013.01); G06T 2207/30232 (2013.01)] | 22 Claims | 

| 
               1. A processor-implemented method, comprising: 
            determining between a locked state and an unlocked state of a terminal; and 
                when a result of the determining between the locked state and the unlocked state of the terminal is that the terminal is in the unlocked state: 
                tracking, in a current frame, a face detected in a previous frame; 
                detecting for a background region change between the previous frame and the current frame based on a background region, of the current frame, distinguished from a region of the tracked face in the current frame; 
                when a result of the detecting for the background region change is that the background region change is not detected, determining whether a state maintenance time of the unlocked state fails to meet an unlocked state maintenance preset time, where the state maintenance time of the unlocked state is a time for which the unlocked state of the terminal has been maintained for one or more previous frames; and 
                in response to the state maintenance time of the unlocked state failing to meet the unlocked state maintenance preset time, 
                determining an operation mode to be a first operation mode for determining whether recognition succeeds for the current frame, 
                performing the first operation mode, including performing face detection with respect to the current frame, and 
                maintaining the unlocked state of the terminal for the current frame when the face is detected as a result of the performing of the face detection, representing that the recognition succeeded for the current frame. 
               |