Living body detection method, device, storage medium and electronic device

By guiding the user to gaze at the reference point in the face recognition system and collecting head posture and gaze point information, and combining this information for live detection, the problem in the existing technology that the face recognition system is difficult to distinguish disguised users is solved, and detection is improved. security and accuracy.

CN114613018BActive Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210289159.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-08-23
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Existing face recognition systems are difficult to effectively differentiate between real users and disguised users when faced with attacks by disguised users' faces, resulting in insufficient security.

Method used

By displaying a reference point on the terminal device, the user to be detected is guided to gaze at the point and perform preset actions, collect multiple images to determine head posture and gaze point information, and combine this information for live detection.

Benefits of technology

It improves the accuracy and security of live body detection, effectively resists photo or video attacks, and ensures the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114613018B
    Figure CN114613018B
Patent Text Reader

Abstract

The present disclosure provides a liveness detection method, a liveness detection device, a computer-readable storage medium and an electronic device, and relates to the field of computer vision technology. The liveness detection method includes: displaying a reference point; guiding the user to be detected to gaze at the reference point through prompt information, and collecting multiple images during the process of performing a preset action; determining the head posture information and gaze point information of the user to be detected in each of the images; determining that the gaze point information of the user to be detected in the multiple images meets a first preset condition, and the head posture information of the user to be detected meets a second preset condition, then the user to be detected passes the liveness detection. The present disclosure improves the security of liveness detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision technology, and in particular to a living body detection method, a living body detection device, a computer-readable storage medium, and an electronic device. Background Art

[0002] Biometric technology, especially face recognition, has made great progress in recent years, such as unlocking mobile phones or paying by face. However, face recognition systems face the risk of being attacked by disguising the user's face. If the user's face image is stolen, the system is very vulnerable to photo or video attacks.

[0003] Liveness detection can judge the face image captured by the camera and determine whether the face is the real user's face information or a disguised user's face, such as a face taken with a mobile phone, a face printed on paper, or a 3D silicone face mask. Therefore, research on liveness detection is becoming an increasingly important research task in face recognition, and there are also higher requirements for the security of liveness detection. Summary of the invention

[0004] The present disclosure provides a liveness detection method, a liveness detection device, a computer-readable storage medium, and an electronic device, thereby improving the security of liveness detection at least to a certain extent.

[0005] According to a first aspect of the present disclosure, a liveness detection method is provided, comprising: displaying a reference point; guiding a user to be detected to gaze at the reference point through prompt information, and collecting multiple images during the process of performing preset actions; determining head posture information and gaze point information of the user to be detected in each of the images; determining that the gaze point information of the user to be detected in the multiple images meets a first preset condition, and the head posture information of the user to be detected meets a second preset condition, then the user to be detected passes the liveness detection.

[0006] According to a second aspect of the present disclosure, a liveness detection device is provided, the device comprising: a display module, used to display a reference point; an image acquisition module, used to guide a user to be detected to gaze at the reference point through prompt information, and to capture multiple images during the process of executing a preset action; an information determination module, used to determine the head posture information and gaze point information of the user to be detected in each of the images; and a detection module, used to determine that the gaze point information of the user to be detected in the multiple images meets a first preset condition, and the head posture information of the user to be detected meets a second preset condition, then the user to be detected passes the liveness detection.

[0007] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the liveness detection method of the first aspect and possible implementation methods thereof are implemented.

[0008] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the liveness detection method of the first aspect and its possible implementation methods by executing the executable instructions.

[0009] The technical solution disclosed in this disclosure has the following beneficial effects:

[0010] By providing a reference point and guiding the user to be detected to look at the reference point, the gaze point information of the user to be detected can be obtained; by guiding the user to be detected to perform preset actions, the head posture information of the user to be detected can be obtained. Since the user to be detected keeps looking at the reference point during the execution of the preset action, the collected image combines the head posture information and the gaze point information, which improves the precision and accuracy of liveness detection and makes liveness detection safer.

[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0013] Figure 1 A schematic diagram showing a system architecture of an exemplary application environment of a living body detection method and device in this exemplary embodiment;

[0014] Figure 2 A schematic diagram showing the structure of a computer system of an electronic device in this exemplary embodiment;

[0015] Figure 3 A flow chart showing a method for detecting a living body in this exemplary embodiment is shown;

[0016] Figure 4 A schematic diagram showing a reference coordinate system in the living body detection method according to the present exemplary embodiment;

[0017] Figure 5A schematic diagram showing a flow chart of a living body detection process in this exemplary embodiment;

[0018] Figure 6 A schematic diagram showing the structure of a living body detection device according to this exemplary embodiment Figure 1 ;

[0019] Figure 7 A schematic diagram showing the structure of a living body detection device according to this exemplary embodiment Figure 2 . DETAILED DESCRIPTION

[0020] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0021] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0022] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation. In addition, all the terms "first" and "second" below are only for the purpose of distinction and should not be used as limitations of the present disclosure.

[0023] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which a method and apparatus for detecting a living body according to an embodiment of the present disclosure can be applied is shown.

[0024] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101 and 102, a network 103 and a server 104. The network 103 is used to provide a medium for a communication link between the terminal devices 101 and 102 and the server 104. The terminal devices 101 and 102 may be various electronic devices with display screens, and the image acquisition process may be presented on the display screens of the terminal devices 101 and 102. The terminal devices 101 and 102 also need to have cameras for acquiring images.

[0025] The terminal devices 101 and 102 include but are not limited to portable computers, smart phones, tablet computers, AR (Augmented Reality) glasses, AR helmets and other devices with image or video acquisition functions. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 104 may be a server cluster composed of multiple servers.

[0026] In the process of displaying the space decoration effect diagram, the terminal devices 101 and 102 can collect images for the server 104 to perform liveness detection.

[0027] The various steps of the liveness detection method described below can be applied to the server 104 or to the terminal devices 101 and 102 , and the terminal devices 101 and 102 can directly perform liveness detection on the user to be detected.

[0028] Figure 2 The schematic diagram of the structure of the computer system of the electronic device suitable for implementing the embodiment of the present disclosure is shown. In the exemplary embodiment of the present disclosure, at least the server 104 among the terminal devices 101, 102 and the server 104 can be configured as Figure 2 It should be noted that Figure 2 The computer system 200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0029] like Figure 2 As shown, the computer system 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 202 or the program loaded from the storage part 208 to the random access memory (RAM) 203. In the RAM 203, various programs and data required for system operation are also stored. The CPU 201, the ROM 202, and the RAM 203 are connected to each other through a bus 204. An input / output (I / O) interface 205 is also connected to the bus 204.

[0030] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 205 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed, so that a computer program read therefrom is installed into the storage section 208 as needed.

[0031] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 209, and / or installed from the removable medium 211. When the computer program is executed by the central processing unit (CPU) 201, the various functions defined in the method and apparatus of the present application are executed. In some embodiments, the computer system 200 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0032] As for the liveness detection scheme described in the present disclosure, after the terminal devices 101 and 102 obtain the image information of the user to be detected, they pass it to the central processing unit (CPU) 201 of the server 104. The central processing unit (CPU) 201 can use the facial information in the image and combine it with a pre-built model to determine whether the user to be detected captured by the terminal devices 101 and 102 is alive.

[0033] Existing liveness detection mainly verifies whether the user to be detected is a real live person by combining actions such as blinking, opening the mouth, shaking the head, and nodding, using technologies such as facial key point positioning and face tracking. However, relying solely on the above actions for liveness detection is not accurate and safe enough.

[0034] Based on this, the embodiment of the present disclosure provides a liveness detection method, and the technical solution of the embodiment of the present disclosure will be described in detail below:

[0035] The liveness detection method provided in this exemplary embodiment combines head posture information and sight line information to detect the user to be detected, so the detection accuracy and safety are higher.

[0036] Combine the following Figure 3 The living body detection method according to the exemplary embodiment of the present disclosure is specifically described. Figure 3 As shown, the living body detection method may include:

[0037] Step S310, displaying a reference point;

[0038] Step S320, guiding the user to be detected to gaze at the reference point through prompt information, and collecting multiple images during the process of performing a preset action;

[0039] Step S330, determining the head posture information and gaze point information of the user to be detected in each image;

[0040] Step S340: Determine that the gaze point information of the user to be detected in the multiple images meets the first preset condition, and the head posture information of the user to be detected meets the second preset condition, then the user to be detected passes the liveness detection.

[0041] The liveness detection method achieves the following technical effects: by providing a reference point and guiding the user to be detected to look at the reference point, the gaze point information of the user to be detected can be obtained; by guiding the user to be detected to perform a preset action, the head posture information of the user to be detected can be obtained. Since the user to be detected keeps looking at the reference point during the execution of the preset action, the collected image combines the head posture information and the gaze point information, thereby improving the precision and accuracy of liveness detection and making liveness detection safer.

[0042] The implementation process of each step is described in detail below:

[0043] In step S310, a reference point is displayed.

[0044] In the liveness detection method provided by the embodiment of the present disclosure, the image acquisition is realized by the detection devices such as the terminal devices 101 and 102. During the image acquisition process, a reference point is first randomly displayed on the detection device. For example, when the detection device has a screen, the reference point can be a point randomly appearing at any position on the screen. This reference point is a point whose position cannot be predicted in advance by the detected user, so as to prevent the user from performing video attacks.

[0045] In actual applications, liveness detection is usually performed together with face recognition, so the detection device may simply refer to a detection device used to implement the liveness detection method provided in the embodiment of the present disclosure, or it may refer to a detection device that can implement the liveness detection method and face detection provided in the embodiment of the present disclosure, such as a mobile phone, tablet, etc.

[0046] Reference Figure 4Taking a mobile phone as an example, the above reference point can be any point on the mobile phone screen. By establishing a coordinate system on the mobile phone screen, the coordinate position of the reference point can be determined. For example, a reference coordinate system is established with the location of the front camera of the mobile phone as the coordinate origin, and the coordinate position of the reference point (x0, y0) can be determined based on the reference coordinate system.

[0047] In step S320, the user to be detected is guided to gaze at the reference point through prompt information, and multiple images are collected during the process of performing a preset action;

[0048] For the user to be detected, since the purpose of liveness detection is to determine whether the user to be detected is alive, it cannot be determined whether the user to be detected is alive before the detection result is obtained. Therefore, in the embodiments of the present disclosure, the user to be detected does not specifically refer to a live user, but may also be a user's photo, a user's three-dimensional model and other objects. Among them, a live user refers to a real person who is undergoing liveness detection, and a user's photo and video do not belong to a live user.

[0049] In the exemplary embodiment of the present disclosure, in order to obtain the gaze point information of the user to be detected, it is necessary to guide the user to be detected to keep gazing at the reference point during the process of performing the preset action through prompt information.

[0050] In actual applications, the preset action can be determined according to actual conditions. For example, the preset action can be a head rotation action, that is, turning the head to the left, turning the head to the right, turning the head upward, or turning the head downward.

[0051] Based on the above-mentioned preset actions, the prompt information can be "look at the reference point and turn your head to the left", or "look at the reference point and turn your head to the right", or "look at the reference point and turn your head upward", or "look at the reference point and turn your head to the right", etc. The prompt information is determined according to the preset action, and the exemplary embodiment of the present disclosure does not make any special limitations on this.

[0052] It should be noted that when the user to be detected performs preset actions according to the prompt information, images can be collected through the front camera of the detection device. The images collected are mainly head information of the user to be detected, including facial information and head rotation information.

[0053] In practical applications, during the process of continuously acquiring multiple images, the acquisition can be performed at a preset rate. The size of the preset rate can be set according to actual conditions. For example, the preset rate can be to acquire one frame of image every 100 milliseconds, which is equivalent to continuously acquiring 10 images within 1 second. The preset rate can also be other sizes, and the exemplary embodiments of the present disclosure do not specifically limit this.

[0054] It should be noted that, in the exemplary embodiment of the present disclosure, in addition to collecting the above-mentioned continuous multiple images, before guiding the user to be detected to perform a preset action through prompt information, the reference point can be randomly displayed on the screen, and then the user to be detected can be guided to only look at the reference point. Before turning the head, the user to be detected can be instructed to face the plane where the reference coordinate system is located, that is, facing the screen. At this time, the gaze point in the initial image collected can be used as a preliminary judgment for liveness detection.

[0055] The specific judgment process is: when the distance L between the gaze point (x, y) and the reference point (x0, y0) is less than the preset threshold, the user to be detected is preliminarily judged to be alive. The above distance can be directly calculated by Euclidean distance, or other calculation methods, which are not limited here. It should be noted that only after the user to be detected is preliminarily judged to be alive, the user to be detected is guided to perform the preset action. If the preliminary judgment fails, it can be judged that the user to be detected is not alive, and no subsequent actions are performed.

[0056] In an exemplary embodiment of the present disclosure, determining the distance between the gaze point and the reference point may include: first selecting a reference coordinate system, then determining the coordinates of the gaze point and the reference point in the reference coordinate system, and finally, determining the distance between the gaze point and the reference point based on the above two coordinates.

[0057] In practical applications, the size of the preset threshold can be determined according to actual conditions. When the calculated distance is the Euclidean distance, the preset threshold can be any value between 1-2 cm, for example, 1.5 cm, etc. The exemplary embodiment of the present disclosure does not specifically limit the size of the preset threshold.

[0058] After the user to be detected completes the preset action according to the prompt information and collects multiple images, the process may proceed to step S330 to determine the head posture information and gaze point information of the user to be detected in each image.

[0059] In the process of determining the gaze point information, the image can be first input into the face detection network model, and the coordinate information of the face frame and the key points of the eyes can be obtained by training the face detection network model. The eye area image can be extracted according to the coordinate information. Among them, the face detection network model is a neural network model based on deep learning. The input of the model is a 480*480 resolution image, and the output is the coordinates of the upper left corner and the lower right corner of the face frame, the coordinates of the upper left corner and the lower right corner of the left eye frame, and the coordinates of the upper left corner and the lower right corner of the right eye frame, so that the face frame image, the left eye socket image and the right eye socket image can be taken out from the image, and the three images are used together as the eye area image.

[0060] In an exemplary embodiment of the present disclosure, after the above information is output through the face detection network model, the coordinates of the center point of the left eye socket and the coordinates of the center point of the right eye socket can be determined first, and then the face frame image, the left eye socket image, the right eye socket image, the coordinates of the center point of the left eye socket and the coordinates of the center point of the right eye socket can be input into a line of sight estimation model based on deep learning to obtain the gaze point coordinates (x, y) of the user to be detected.

[0061] In practical applications, the resolution of the face frame image, left eye socket image, and right eye socket image can also be adjusted according to the resolution requirements of the gaze estimation model, that is, the resolution of the eye region image can be adjusted. For example, the resolution can be reduced from 480*480 to 96*96. The required input image resolution is determined by the model to be input. For example, if the resolution required by the gaze estimation model is 96*96, the resolution of the face frame image input to the gaze estimation model needs to be 96*96.

[0062] In practical applications, the resolution of the face frame image may be adjusted by using methods such as bilinear interpolation, which will not be described in detail here.

[0063] In the exemplary embodiment of the present disclosure, the face frame image, the left eye socket image, the right eye socket image, the coordinates of the center point of the left eye socket, and the coordinates of the center point of the right eye socket are all input into the line of sight estimation model based on deep learning, and the line of sight estimation model will output the predicted gaze point coordinates (x, y) of the user to be detected. The gaze point coordinates (x, y) of the user to be detected need to be determined for each image.

[0064] In practical applications, the coordinates of the center point of the left eye socket are obtained by averaging the coordinates of the upper left corner and the lower right corner of the left eye socket; the coordinates of the center point of the right eye socket are obtained by averaging the coordinates of the upper left corner and the lower right corner of the right eye socket. It should be noted that the above center points can also be obtained in other ways, and the exemplary embodiments of the present disclosure are not limited thereto.

[0065] In practical applications, the sight estimation model can be obtained based on the mobilenet network structure. The loss function used for training the sight estimation model is |x-x0|+|y-y0|. The sight estimation model is trained by collecting a large amount of gaze data as samples. The specific training process is not described here.

[0066] In the exemplary embodiment of the present disclosure, in the process of determining the head posture, the image is input into the head posture detection network, and the head posture detection network can output the pitch angle and yaw angle of the head posture. Among them, the pitch angle corresponds to the user to be detected turning upward or downward, and the yaw angle corresponds to the user to be detected turning left or right.

[0067] In practical applications, the head posture detection network is a neural network model based on deep learning. The specific training process of the head posture detection network will not be described here.

[0068] In step S340, it is determined that the gaze point of the user to be detected in the multiple images meets the first preset condition, and the head posture of the user to be detected meets the second preset condition, then the user to be detected passes the liveness detection.

[0069] In the exemplary embodiment of the present disclosure, the first preset condition refers to that among the multiple images collected continuously, at least a first preset ratio of images have a distance between the gaze point and the reference point that is less than a preset threshold. The distance calculation method and the value of the preset threshold have been described in the above embodiment and will not be repeated here.

[0070] In practical applications, the first preset ratio can be determined according to actual conditions. For example, if the gaze point of the user to be detected in 7 out of 10 images meets the first preset condition, then the first preset ratio is 70%. In the exemplary embodiment of the present disclosure, the first preset ratio can be any value between 70% and 90%.

[0071] In an exemplary embodiment of the present disclosure, the second preset condition refers to that among the multiple images collected continuously, at least a second preset ratio of images have a head yaw angle or a head pitch angle that changes continuously. For example, for multiple images of the user to be detected turning to the left, the head yaw angle gradually increases; for multiple images of the user to be detected turning to the right, the head yaw angle gradually decreases; for multiple images of the user to be detected turning upward, the head pitch angle gradually increases; for multiple images of the user to be detected turning downward, the head pitch angle gradually decreases.

[0072] In actual applications, the second preset ratio can be determined according to actual conditions. For example, if the head yaw angle or head pitch angle of the user to be detected in 6 of the 10 images meets the second preset condition, then the second preset ratio is 60%. In the exemplary embodiment of the present disclosure, the second preset ratio can be any value between 60% and 80%.

[0073] In the multiple images, if the distance between the gaze point and the reference point in at least a first preset proportion of images is less than a preset threshold, and the head yaw angle or head pitch angle in at least a second preset proportion of images changes continuously, it means that the liveness detection has been passed. For example, if the distance between the gaze point and the reference point in at least 7 of the 10 images is less than 1.5 cm, and the head yaw angle in at least 6 of the images gradually increases, the user to be detected has passed the liveness detection.

[0074] In an exemplary embodiment of the present disclosure, before living body detection, that is, before displaying a reference point in step S310, the sight line estimation model is calibrated to improve the accuracy of gaze point prediction.

[0075] The specific calibration process may include: displaying at least two calibration points in sequence at different preset positions, which is equivalent to displaying two calibration points on the screen in sequence; then guiding the user to be detected to sequentially gaze at the at least two calibration points to obtain the gaze point corresponding to each calibration point; and determining the calibration distance according to the distance between the calibration point and the corresponding gaze point. In the subsequent process of determining the gaze point information, the calibration distance may be used to calibrate the distance between the reference point and the gaze point. This may improve the accuracy of the line of sight estimation model prediction.

[0076] Reference Figure 5 , which shows a schematic flow chart of a living body detection process according to this exemplary embodiment; Figure 5 As shown, step S510, displaying a reference point; step S520, guiding the user to look directly at the reference point; step S530, collecting an initial image; step S540, entering judgment condition 1, judging whether the distance between the gaze point and the reference point is less than a preset threshold; if not, ending; if yes, entering step S550, guiding the user to perform a preset action; step S560, collecting multiple images; step S570, obtaining gaze point information; entering step S580, i.e., judgment condition 2, judging whether the gaze point information meets the first preset condition; if yes, entering step S590, i.e., judgment condition 3, judging whether the head posture information meets the second preset condition; if yes, passing the liveness detection; if no, ending.

[0077] In summary, the liveness detection method provided by this exemplary embodiment performs liveness detection by combining head posture information and gaze point information, which can effectively resist attacks from photos or videos and improve the accuracy and security of liveness detection.

[0078] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0079] The exemplary embodiment of the present disclosure also provides a living body detection device. Figure 6 As shown, the living body detection device 600 may include:

[0080] Display module 610, used to display a reference point;

[0081] The image acquisition module 620 is used to collect multiple images during the process of guiding the user to be detected to gaze at the reference point through prompt information and perform a preset action;

[0082] An information determination module 630 is used to determine the head posture information and gaze point information of the user to be detected in each image;

[0083] The detection module 640 is used to determine that if the gaze point information of the user to be detected in the multiple images meets the first preset condition and the head posture information of the user to be detected meets the second preset condition, then the user to be detected passes the liveness detection.

[0084] In an exemplary embodiment of the present disclosure, the detection module 640 is configured to: in at least a first preset proportion of the image, the distance between the gaze point and the reference point is less than a preset threshold.

[0085] In an exemplary embodiment of the present disclosure, the detection module 640 is configured to select a reference coordinate system; determine the coordinates of the gaze point and the reference point in the reference coordinate system; and determine the distance based on the coordinates.

[0086] In an exemplary embodiment of the present disclosure, the image acquisition module 620 is configured to indicate that the user to be detected is facing the plane where the reference coordinate system is located.

[0087] In an exemplary embodiment of the present disclosure, the image acquisition module 620 is configured to, before the user to be detected performs the preset action, capture an initial image of the user to be detected looking directly at the reference point; determine that the distance between the gaze point of the user to be detected in the initial image and the reference point is less than a preset threshold, and then guide the user to be detected to perform the preset action.

[0088] In an exemplary embodiment of the present disclosure, the detection module 640 is configured to detect that the head yaw angle or the head pitch angle in at least a second preset proportion of the image changes continuously.

[0089] In an exemplary embodiment of the present disclosure, the information determination module 630 is configured to input the image into a face detection network model, determine the face frame image, the left eye socket image, the right eye socket image, the coordinates of the left eye socket center point and the coordinates of the right eye socket center point; input the face frame image, the left eye socket image, the right eye socket image, the coordinates of the left eye socket center point and the coordinates of the right eye socket center point into a line of sight estimation model, and output the coordinates of the gaze point.

[0090] In an exemplary embodiment of the present disclosure, the information determination module 630 is configured to input the image into a head posture detection network and output the pitch angle and yaw angle of the head posture.

[0091] Reference Figure 7 In an exemplary embodiment of the present disclosure, it also includes: a correction module 650, which is used to display at least two correction points in sequence at different preset positions; guide the user to be detected to gaze at at least two of the correction points in sequence, and obtain the gaze point corresponding to each of the correction points; determine the correction distance according to the distance between the correction point and the corresponding gaze point.

[0092] The specific details of each part of the above device have been described in detail in the implementation method part, so they will not be repeated here.

[0093] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0094] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0095] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0097] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0098] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for detecting a living body, characterized in that: include: Display a reference point; The user to be detected is guided to gaze at the reference point through prompt information, and multiple images are collected during the process of performing a preset action; the reference point is a point randomly appearing at any position on the screen; Determining head posture information and gaze point information of the user to be detected in each of the images; Determining that the gaze point information of the to-be-detected user in the plurality of images satisfies a first preset condition, and the head posture information of the to-be-detected user satisfies a second preset condition, then the to-be-detected user passes the liveness detection; The gaze point information of the to-be-detected user in the plurality of images satisfies a first preset condition, including: In at least a first preset proportion of the images, the distance between the gaze point and the reference point is less than a preset threshold; The head posture of the user to be detected in the plurality of images satisfies a second preset condition, including: The head yaw angle or the head pitch angle in at least a second preset proportion of the images changes continuously.

2. The method for detecting living body according to claim 1, characterized in that: Determining the distance between the gaze point and the reference point includes: Select the reference coordinate system; Determining coordinates of the gaze point and the reference point in the reference coordinate system; According to the coordinates, the distance is determined.

3. The method for detecting living body according to claim 1, characterized in that: The method further comprises: Before the user to be detected performs the preset action, an initial image of the user to be detected looking directly at the reference point is captured; It is determined that the distance between the gaze point of the to-be-detected user in the initial image and the reference point is less than a preset threshold, and then the to-be-detected user is guided to perform the preset action.

4. The method for detecting living body according to claim 1, characterized in that: Determining gaze point information of the user to be detected in each of the images includes: Input the image into a face detection network model to determine a face frame image, a left eye socket image, a right eye socket image, coordinates of a left eye socket center point, and coordinates of a right eye socket center point; The face frame image, the left eye socket image, the right eye socket image, the coordinates of the left eye socket center point and the coordinates of the right eye socket center point are input into a sight line estimation model, and the coordinates of the gaze point are output.

5. The method for detecting living body according to any one of claims 1 to 4, characterized in that: Before displaying a reference point, the method further includes: Displaying at least two calibration points in sequence at different preset positions; Guiding the user to be detected to sequentially gaze at at least two of the calibration points, and obtaining a gaze point corresponding to each of the calibration points; A correction distance is determined according to the distance between the correction point and the corresponding gaze point.

6. A living body detection device, characterized in that: include: A display module, used for displaying a reference point; An image acquisition module is used to collect multiple images during the process of guiding the user to be detected to gaze at the reference point through prompt information and perform a preset action; the reference point is a point randomly appearing at any position on the screen; An information determination module, used to determine the head posture information and gaze point information of the user to be detected in each of the images; A detection module, used to determine that if the gaze point information of the user to be detected in the plurality of images meets a first preset condition and the head posture information of the user to be detected meets a second preset condition, then the user to be detected passes the liveness detection; The gaze point information of the user to be detected in the plurality of images satisfies the first preset condition and is configured as follows: In at least a first preset proportion of the images, the distance between the gaze point and the reference point is less than a preset threshold; The head posture of the user to be detected in the plurality of images satisfies the second preset condition, which is configured as follows: The head yaw angle or the head pitch angle in at least a second preset proportion of the images changes continuously.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the living body detection method according to any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the liveness detection method according to any one of claims 1 to 5 by executing the executable instructions.

Citation Information

Patent Citations

  • In vivo detection method and device

    CN105512632A

  • Living body verification method, device and system and storage medium

    CN108875473A

  • Living body detection method and device based on fixation information and detection equipment

    CN112784655A

  • Identity authentication method and apparatus, and storage medium

    WO2018192406A1