Living body detection method and device, information acquisition device and safety control system
By randomly generating distance information and detecting the distance between the detected object and the living body detection device, collecting and detecting the face image, the problems of poor user experience and difficulty in attack defense in the prior art are solved, and efficient living body detection and Improve user experience.
Patent Information
- Application Number
- CN202411612368.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, the user experience of action live detection technology is poor, and the silent live detection technology is difficult to attack and needs to be used with action live detection. The colorful live detection technology lasts for a long time and light stimulates the user's eyes, making the user experience poor.
通过随机生成距离信息,控制距离检测装置检测被检测对象与活体检测装置之间的距离,在指定距离范围内采集被检测对象的脸部图像,利用图像检测是否为活体,包括边框和非活体特征 detection.
It effectively improves the attack prevention ability of live detection, and at the same time improves the user experience, avoiding the problem of users needing to cooperate in performing actions or being stimulated by light.
Smart Images

Figure CN119445681A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a living body detection method and device, an information collection device and a safety control system. Background Art
[0002] Face anti-counterfeiting technology is an indispensable part of the face recognition system. Face anti-counterfeiting technology includes: motion liveness detection technology, silent liveness detection technology, colorful liveness detection technology, etc. Motion liveness detection technology requires the user to cooperate with actions such as blinking and opening the mouth to determine whether the face system capture object is alive. Silent liveness detection technology does not require the user to cooperate to complete the action. Colorful liveness detection technology flashes multiple colors of light to the capture object and collects a sequence of face images for liveness judgment. Summary of the invention
[0003] The inventors noticed that in the prior art, motion liveness detection technology requires the user to cooperate in performing corresponding actions, which results in a poor user experience. Silent liveness detection technology does not require the user to cooperate in performing corresponding actions, which results in a better user experience, but increases the difficulty of attack defense and usually needs to be used in conjunction with motion liveness detection technology. Colorful liveness detection technology lasts for a long time, and the continuous flashing light will irritate the user's eyes, which results in a poor user experience.
[0004] Based on this, the present disclosure provides a liveness detection method that can effectively improve the anti-attack capability of liveness detection and effectively improve user experience.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a liveness detection method, which is performed by a liveness detection device, and includes: randomly generating distance information according to a liveness detection request; providing the distance information to a detected object; controlling a distance detection device to detect the distance between the detected object and the liveness detection device within a predetermined time period; controlling an image acquisition device to acquire a first facial image of the detected object when the distance between the detected object and the liveness detection device is within a distance range corresponding to the distance information; and detecting whether the detected object is alive using the first facial image.
[0006] In some embodiments, the detecting whether the detected object is a living body comprises: detecting whether the first facial image includes a frame; and determining that the detected object is a non-living body when the first facial image includes the frame.
[0007] In some embodiments, the detecting whether the detected object is a living body includes: if the first facial image does not include the border, detecting whether the first facial image includes a non-living feature; if the first facial image includes the non-living feature, determining that the detected object is a non-living body.
[0008] In some embodiments, the non-living feature includes at least one of blur, reflection, artifact, moiré and distortion; and detecting whether the detected object is alive includes: when the first facial image does not include the non-living feature, determining that the detected object is alive.
[0009] In some embodiments, a distance value is randomly selected in a predetermined distance interval to serve as the distance information.
[0010] In some embodiments, first reporting information is sent to a server, wherein the first reporting information includes the first facial image, a detection result of whether the detected object is alive, and first indication information for indicating that the distance between the detected object and the living body detection device is within the distance range.
[0011] In some embodiments, if after the predetermined time period, the distance between the detected object and the living body detection device is not within the distance range, the image acquisition device is controlled to acquire a second facial image of the detected object at the current position; and the second facial image is used to detect whether the detected object is alive.
[0012] In some embodiments, a second detection result is reported to a server, wherein the second detection result includes the second facial image, a detection result of whether the detected object is alive, and second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range.
[0013] According to a second aspect of an embodiment of the present disclosure, a liveness detection device is provided, comprising: a memory; and a processor, coupled to the memory, the processor being configured to execute a liveness detection method as described in any of the above embodiments based on instructions stored in the memory.
[0014] According to a third aspect of an embodiment of the present disclosure, there is provided an information collection device, comprising: a liveness detection device as described in any of the above embodiments; a distance detection device, configured to detect the distance between a detected object and the liveness detection device according to an instruction of the liveness detection device, and send distance information corresponding to the distance to the liveness detection device; an image collection device, configured to collect a facial image of the detected object according to an instruction of the liveness detection device, and send the facial image to the liveness detection device.
[0015] According to a fourth aspect of an embodiment of the present disclosure, a security control system is provided, comprising: an information collection device as described in any of the above embodiments; and a server, configured to receive reporting information sent by the information collection device, wherein the reporting information includes first indication information indicating that the distance between a detected object and a living body detection device is within the distance range, and a detection result indicating that the detected object is living, recognize the facial image included in the reporting information, and perform business operations based on the recognition result.
[0016] In some embodiments, the server is configured to delete the reporting information when the reporting information includes the first indication information and a detection result indicating that the detected object is non-living; and is also configured to delete the reporting information when the reporting information includes second indication information indicating that the distance between the detected object and the living body detection device is not within the distance range.
[0017] In some embodiments, the server is configured to delete the reported information if the reported information includes second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range, and is used to indicate the detection result that the detected object is non-living; and is also configured to determine whether to perform face recognition according to a predetermined strategy if the reported information includes second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range, and is used to indicate the detection result that the detected object is living, and delete the reported information if it is determined according to the predetermined strategy that face recognition is not to be performed.
[0018] In some embodiments, the server is configured to, when determining to perform face recognition according to the predetermined policy, recognize the facial image included in the reported information, and perform a service operation according to the recognition result.
[0019] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the method involved in any of the above embodiments is implemented.
[0020] According to a sixth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising computer instructions, wherein the computer instructions, when executed by a processor, implement the method involved in any of the above embodiments.
[0021] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 A schematic diagram of a liveness detection method according to an embodiment of the present disclosure;
[0024] Figure 2 A schematic diagram of a liveness detection method according to another embodiment of the present disclosure;
[0025] Figure 3 This is a schematic diagram of the structure of a living body detection device according to an embodiment of the present disclosure;
[0026] Figure 4 It is a structural schematic diagram of a living body detection device according to another embodiment of the present disclosure;
[0027] Figure 5 This is a schematic diagram of the structure of an information collection device according to an embodiment of the present disclosure;
[0028] Figure 6 The figure is a schematic diagram of the structure of a safety control system according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0030] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0031] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0032] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0033] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0034] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0035] Figure 1 The flowchart of a liveness detection method according to an embodiment of the present disclosure is shown in FIG. 1. In some embodiments, the liveness detection method is performed by a liveness detection device and includes steps 11-15.
[0036] In step 11, distance information is randomly generated according to the liveness detection request.
[0037] In some embodiments, a distance value is randomly selected in a predetermined distance interval as the distance information.
[0038] For example, the predetermined distance interval is a range from 20 centimeters to 1 meter.
[0039] In step 12, distance information is provided to the detected object.
[0040] For example, the distance information is played in a language manner, or the distance information is presented on a display device.
[0041] In step 13, within a predetermined time period, the distance detection device is controlled to detect the distance between the detected object and the living body detection device.
[0042] In some embodiments, the predetermined time period may also be selected randomly.
[0043] In step 14, when the distance between the detected object and the living body detection device is within the distance range corresponding to the distance information, the image acquisition device is controlled to acquire a first facial image of the detected object.
[0044] For example, when the randomly generated distance information is 50 centimeters, if the distance between the detected object and the living body detection device is between 45 centimeters and 55 centimeters, it can be considered that the current position of the detected object is within the specified distance range.
[0045] In step 15, the first facial image is used to detect whether the detected object is a living body.
[0046] In some embodiments, it is detected whether the first facial image includes a frame. If the first facial image includes a frame, it is determined that the detected object is a non-living object.
[0047] It should be noted here that if the detected object is a living body, no matter how far away the detected object is from the liveness detection device, there will be no border in the collected facial image. On the contrary, if the face of the detected object is actually a face image displayed on the mobile phone screen, the border of the mobile phone may appear in the collected facial image, and as the distance between the detected object and the liveness detection device increases, the probability of the border of the user terminal appearing in the collected facial image will also increase. Therefore, the border can be used as an attack clue, and whether the detected object is a living body can be effectively monitored based on whether there is a border in the collected facial image.
[0048] It should also be noted that, because a malicious user brings a mobile phone displaying a face image close to the image acquisition device, the face image acquired by the image acquisition device does not include the mobile phone frame. To solve this problem, the distance between the detected object and the liveness detection device is randomly set, which can effectively avoid this situation.
[0049] In some embodiments, when the first facial image does not include a frame, it is detected whether the first facial image includes a non-living feature. When the first facial image includes the non-living feature, it is determined that the detected object is a non-living object. When the first facial image does not include the non-living feature, it is determined that the detected object is a living object.
[0050] For example, the non-living feature includes at least one of blur, reflection, artifact, moiré, and distortion.
[0051] It should be noted that, when the collected facial image does not include a frame, it cannot be ruled out that the current detected object is a living body. In this case, it is necessary to detect whether the facial image includes non-living features to further improve the detection accuracy.
[0052] In some embodiments, first reporting information is sent to a server, wherein the first reporting information includes a first facial image, a detection result of whether the detected object is alive, and first indication information for indicating that the distance between the detected object and the liveness detection device is within a distance range, so that the server makes a security decision based on the first reporting information.
[0053] Figure 2 The following is a flow chart of a liveness detection method according to an embodiment of the present disclosure. In some embodiments, the following liveness detection method is performed by a liveness detection device, including steps 21-25.
[0054] In step 21, distance information is randomly generated according to a liveness detection request.
[0055] In some embodiments, a distance value is randomly selected in a predetermined distance interval as the distance information.
[0056] For example, the predetermined distance interval is a range from 20 centimeters to 1 meter.
[0057] In step 22, distance information is provided to the detected object.
[0058] For example, the distance information is played in a language manner, or the distance information is presented on a display device.
[0059] In step 23, within a predetermined time period, the distance detection device is controlled to detect the distance between the detected object and the living body detection device.
[0060] In some embodiments, the predetermined time period may also be selected randomly.
[0061] In step 24, if the distance between the detected object and the living body detection device is not within the distance range after a predetermined period of time, the image acquisition device is controlled to acquire a second facial image of the detected object at the current position.
[0062] It should be noted here that if the distance between the detected object and the liveness detection device is not within the distance range after a predetermined period of time, the facial image of the detected object is still collected. The purpose is to prevent the attacker from understanding the specific processing flow of the liveness detection device through attack means.
[0063] In step 25, the second facial image is used to detect whether the detected object is a living body.
[0064] In some embodiments, it is detected whether the second facial image includes a frame. If the second facial image includes a frame, it is determined that the detected object is a non-living object.
[0065] In some embodiments, when the second facial image does not include a frame, it is detected whether the second facial image includes a non-living feature. When the second facial image includes the non-living feature, it is determined that the detected object is a non-living object. When the second facial image does not include the non-living feature, it is determined that the detected object is a living object.
[0066] For example, the non-living feature includes at least one of blur, reflection, artifact, moiré, and distortion.
[0067] In some embodiments, the second detection result is reported to the server, wherein the second detection result includes a second facial image, a detection result of whether the detected object is alive, and second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range so that the server can make a security decision based on the second reported information.
[0068] Figure 3 FIG. 1 is a schematic diagram of the structure of a liveness detection device according to an embodiment of the present disclosure. Figure 3 As shown, the living body detection device includes a distance generation module 31, a distance detection module 32, an image acquisition module 33 and a living body detection module 34.
[0069] The distance generating module 31 is configured to randomly generate distance information according to a liveness detection request, and provide the distance information to the detected object.
[0070] In some embodiments, a distance value is randomly selected in a predetermined distance interval as the distance information.
[0071] For example, the predetermined distance interval is a range from 20 centimeters to 1 meter.
[0072] For example, the distance information is played in a language manner, or the distance information is presented on a display device.
[0073] The distance detection module 32 is configured to control the distance detection device to detect the distance between the detected object and the living body detection device within a predetermined time period.
[0074] In some embodiments, the predetermined time period may also be selected randomly.
[0075] The image acquisition module 33 is configured to control the image acquisition device to acquire a first facial image of the detected object when the distance between the detected object and the living body detection device is within the distance range corresponding to the distance information.
[0076] For example, when the randomly generated distance information is 50 centimeters, if the distance between the detected object and the living body detection device is between 45 centimeters and 55 centimeters, it can be considered that the current position of the detected object is within the specified distance range.
[0077] In some embodiments, the image acquisition module 33 is configured to control the image acquisition device to acquire a second facial image of the detected object at the current position if the distance between the detected object and the living body detection device is not within the distance range after a predetermined period of time.
[0078] It should be noted here that if the distance between the detected object and the liveness detection device is not within the distance range after a predetermined period of time, the facial image of the detected object is still collected. The purpose is to prevent the attacker from understanding the specific processing flow of the liveness detection device through attack means.
[0079] The living body detection module 34 is configured to detect whether the detected object is a living body by using the first facial image.
[0080] In some embodiments, the living body detection module 34 detects whether the first facial image includes a frame. If the first facial image includes a frame, it is determined that the detected object is a non-living body.
[0081] In some embodiments, when the first facial image does not include a frame, the liveness detection module 34 detects whether the first facial image includes a non-liveness feature. When the first facial image includes the non-liveness feature, the detected object is determined to be a non-liveness. When the first facial image does not include the non-liveness feature, the detected object is determined to be a liveness.
[0082] For example, the non-living feature includes at least one of blur, reflection, artifact, moiré, and distortion.
[0083] It should be noted that, when the collected facial image does not include a frame, it cannot be ruled out that the current detected object is a living body. In this case, it is necessary to detect whether the facial image includes non-living features to further improve the detection accuracy.
[0084] In some embodiments, the liveness detection module 34 sends first reporting information to the server, wherein the first reporting information includes a first facial image, a detection result of whether the detected object is alive, and first indication information for indicating that the distance between the detected object and the liveness detection device is within a distance range, so that the server makes a security decision based on the first reporting information.
[0085] In some embodiments, the living body detection module 34 uses the second facial image to detect whether the detected object is alive.
[0086] In some embodiments, it is detected whether the second facial image includes a frame. If the second facial image includes a frame, it is determined that the detected object is a non-living object.
[0087] In some embodiments, when the second facial image does not include a frame, it is detected whether the second facial image includes a non-living feature. When the second facial image includes the non-living feature, it is determined that the detected object is a non-living object. When the second facial image does not include the non-living feature, it is determined that the detected object is a living object.
[0088] For example, the non-living feature includes at least one of blur, reflection, artifact, moiré, and distortion.
[0089] In some embodiments, the second detection result is reported to the server, wherein the second detection result includes a second facial image, a detection result of whether the detected object is alive, and second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range so that the server can make a security decision based on the second reported information.
[0090] Figure 4 FIG. 4 is a schematic diagram of the structure of a living body detection device according to another embodiment of the present disclosure.
[0091] like Figure 4 As shown, the liveness detection device 40 is in the form of a general-purpose computing device. The liveness detection device 40 includes a memory 41, a processor 42, and a bus 43 connecting different system components.
[0092] The memory 41 may include, for example, a system memory, a non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions of a corresponding embodiment of at least one living body detection method being executed. The non-volatile storage medium includes, but is not limited to, a disk storage, an optical storage, a flash memory, etc.
[0093] The processor 42 may be implemented by a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors, and other discrete hardware components. Accordingly, each module such as an acquisition module, a calculation module, and an adjustment module may be implemented by a central processing unit (CPU) running instructions in a memory that execute corresponding steps, or may be implemented by a dedicated circuit that executes corresponding steps.
[0094] For example, the processor 42 is configured to execute instructions stored in the memory to implement the following Figure 1 and Figure 2 The method of any one of the embodiments.
[0095] The bus 43 may use any of a variety of bus structures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
[0096] The interfaces 44, 45, 46 of the liveness detection device 40, the memory 41, and the processor 42 can be connected via a bus 43. The input / output interface 44 can provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 45 can provide a connection interface for various networked devices. The storage interface 46 can provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.
[0097] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each frame of the flowchart and / or block diagram and the combination of frames can be implemented by computer-readable program instructions.
[0098] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0099] These computer-readable program instructions may also be stored in a computer-readable memory, which cause the computer to work in a specific manner to produce an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0100] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
[0101] The present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the following is implemented: Figure 1 and Figure 2 The method of any one of the embodiments.
[0102] The present disclosure also provides a computer program product, including computer instructions, wherein when the computer instructions are executed by a processor, the following is achieved: Figure 1 and Figure 2 The method of any one of the embodiments.
[0103] Figure 5 FIG. 1 is a schematic diagram of the structure of an information collection device according to an embodiment of the present disclosure. Figure 5 As shown, the information acquisition device includes a living body detection device 51, a distance detection device 52 and an image acquisition device 53. The living body detection device 51 is Figure 3 or Figure 4 A living body detection device according to any one of the embodiments.
[0104] The distance detection device 52 is configured to detect the distance between the detected object and the living body detection device according to the instruction of the living body detection device, and send distance information corresponding to the distance to the living body detection device 51.
[0105] The image acquisition device 53 is configured to acquire a facial image of the detected object according to the instruction of the liveness detection device, and send the facial image to the liveness detection device 51 .
[0106] Figure 6 FIG. 1 is a schematic diagram of the structure of a safety control system according to an embodiment of the present disclosure. Figure 6 As shown, the security control system includes an information collection device 61 and a server 62. The information collection device 61 is Figure 5 The information collection device involved in any one of the embodiments.
[0107] The server 62 is configured to receive the reporting information sent by the information collection device 61. When the reporting information includes first indication information indicating that the distance between the detected object and the living body detection device is within a distance range, and a detection result indicating that the detected object is a living body, the server 62 is configured to recognize the facial image included in the reporting information and perform business operations based on the recognition result.
[0108] In some embodiments, the server 62 is configured to delete the reporting information when the reporting information includes the first indication information and the detection result indicating that the detected object is non-living.
[0109] That is, if the distance between the detected object and the liveness detection device is within the distance range and the detected object is a live object, the server 62 recognizes the facial image of the detected object. If the distance between the detected object and the liveness detection device is within the distance range but the detected object is not a live object, the server 62 does not recognize the facial image of the detected object.
[0110] In some embodiments, the server 62 is configured to delete the reporting information when the reporting information includes second indication information indicating that the distance between the detected object and the living body detection device is not within the distance range.
[0111] That is to say, if the distance between the detected object and the living body detection device is not within the distance range, no matter whether the detected object is a non-living body or not, the reporting information is directly rejected.
[0112] In some embodiments, the server 62 is configured to delete the reported information when the reported information includes second indication information indicating that the distance between the detected object and the living body detection device is not within the distance range and a detection result indicating that the detected object is non-living.
[0113] That is to say, if the distance between the detected object and the living body detection device is not within the distance range and the detected object is not a living body, the reporting information is rejected.
[0114] In some embodiments, the server 62 is configured to determine whether to perform face recognition according to a predetermined strategy when the reported information includes second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range and a detection result for indicating that the detected object is alive, and to delete the reported information when it is determined according to the predetermined strategy that face recognition is not to be performed.
[0115] In some embodiments, the server 62 is configured to recognize the facial image included in the reported information when determining to perform facial recognition according to a predetermined policy, and perform a service operation according to the recognition result.
[0116] It should be noted here that if the distance between the detected object and the living body detection device is not within the distance range and the detected object is a living body, subsequent processing needs to be performed according to a predetermined strategy.
[0117] For example, if the detected objects are mainly elderly people with limited mobility, in this case, the facial images included in the reported information are recognized according to a predetermined strategy, and business operations are performed based on the recognition results.
[0118] For another example, if the predetermined policy mainly considers security issues, in this case, the reported information is deleted according to the predetermined policy.
[0119] In some embodiments, the functional modules described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components or any appropriate combination thereof for performing the functions described in the present disclosure.
[0120] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0121] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A liveness detection method, performed by a liveness detection device, comprising: Randomly generate distance information based on the liveness detection request; Providing the distance information to the detected object; Controlling the distance detection device to detect the distance between the detected object and the living body detection device within a predetermined time period; When the distance between the detected object and the living body detection device is within the distance range corresponding to the distance information, controlling the image acquisition device to acquire a first facial image of the detected object; Using the first facial image, it is detected whether the detected object is a living body.
2. The method for detecting a living body according to claim 1, wherein: The detecting whether the detected object is a living body comprises: detecting whether the first facial image includes a border; In the case where the first facial image includes the frame, it is determined that the detected object is a non-living body.
3. The method for detecting a living body according to claim 2, wherein: The detecting whether the detected object is a living body comprises: In a case where the first facial image does not include the frame, detecting whether the first facial image includes a non-living feature; In the case where the first facial image includes the non-living body feature, the detected object is determined to be a non-living body.
4. The method for detecting a living body according to claim 3, wherein: The non-living feature comprises at least one of blur, reflection, artifact, moiré and distortion; The detecting whether the detected object is a living body comprises: When the first facial image does not include the non-living body feature, it is determined that the detected object is a living body.
5. The method for detecting a living body according to claim 1, wherein: The randomly generated distance information includes: A distance value is randomly selected in a predetermined distance interval to serve as the distance information.
6. The liveness detection method according to claim 1, further comprising: Sending first reporting information to a server, wherein the first reporting information includes the first facial image, a detection result of whether the detected object is a living body, and first indication information for indicating that the distance between the detected object and the living body detection device is within the distance range.
7. The liveness detection method according to any one of claims 1 to 6, further comprising: If the distance between the detected object and the living body detection device is not within the distance range after the predetermined time period, controlling the image acquisition device to acquire a second facial image of the detected object at the current position; Using the second facial image, it is detected whether the detected object is a living body.
8. The liveness detection method according to claim 7, further comprising: The second detection result is reported to the server, wherein the second detection result includes the second facial image, a detection result of whether the detected object is alive, and second indication information indicating that the distance between the detected object and the living body detection device is not within the distance range.
9. A living body detection device, comprising: Memory; A processor is coupled to the memory, and the processor is configured to execute the liveness detection method according to any one of claims 1 to 8 based on the instructions stored in the memory.
10. An information collection device, comprising: The living body detection device as claimed in claim 9; a distance detection device configured to detect the distance between the detected object and the liveness detection device according to an instruction of the liveness detection device, and send distance information corresponding to the distance to the liveness detection device; The image acquisition device is configured to acquire the facial image of the detected object according to the instruction of the liveness detection device, and send the facial image to the liveness detection device.
11. A safety control system, comprising: The information collection device as claimed in claim 10; The server is configured to receive the reporting information sent by the information collection device, and when the reporting information includes first indication information indicating that the distance between the detected object and the living body detection device is within the distance range, and a detection result indicating that the detected object is a living body, recognize the facial image included in the reporting information, and perform business operations according to the recognition result.
12. The safety control system according to claim 11, wherein: The server is configured to delete the reporting information when the reporting information includes the first indication information and a detection result indicating that the detected object is non-living; and is also configured to delete the reporting information when the reporting information includes the second indication information indicating that the distance between the detected object and the living body detection device is not within the distance range.
13. The safety control system according to claim 11, wherein: The server is configured to delete the reported information if the reported information includes second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range and is used to indicate a detection result that the detected object is non-living; and is also configured to determine whether to perform face recognition according to a predetermined strategy if the reported information includes second indication information for indicating that the distance between the detected object and the liveness detection device is not within the distance range and is used to indicate a detection result that the detected object is living, and delete the reported information if it is determined according to the predetermined strategy that face recognition is not to be performed.
14. The safety control system according to claim 13, wherein: The server is configured to, when determining to perform face recognition according to the predetermined policy, recognize the face image included in the reported information, and execute a service operation according to the recognition result.
15. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the living body detection method according to any one of claims 1 to 8 is implemented.
16. A computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, the living body detection method according to any one of claims 1 to 8 is implemented.