Liveness recognition and liveness threshold adjustment method, device, electronic device and storage medium
By dynamically adjusting the threshold of living body detection and adjusting the threshold according to the confidence of the living body detection operation, the problems of high misjudgment rate and low efficiency in the existing technology are solved, and more efficient and accurate living body recognition is achieved.
Patent Information
- Application Number
- CN202010562560.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-06-18
AI Technical Summary
The static threshold used in the existing technology for living body detection results in a high probability of misjudgment, poor efficiency, and lack of effective adjustment solutions.
By monitoring the comparison between the living body confidence level of the living body detection operation and the current threshold, the threshold is dynamically adjusted. If the confidence level is high, the threshold value is lowered. If the confidence level is low, the threshold value is raised. This ensures the accuracy and efficiency of living body recognition.
It reduces the probability of misjudgment in live body detection, improves the efficiency of live body recognition, and enhances the security and accuracy of the recognition system.
Smart Images

Figure CN111914626B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of liveness recognition, and in particular to a liveness recognition and liveness threshold adjustment method, device, electronic device and storage medium. Background Art
[0002] The purpose of liveness detection is to determine whether the captured face or fingerprint is a real live image or a forged attack image (for example: a face image printed on color paper, a digital image on an electronic device screen, a face mask, a forged fingerprint afterimage, etc.). In application scenarios such as financial payment and access control authentication, the liveness detection module is generally a module embedded in face recognition or fingerprint recognition to verify whether the user is the real person.
[0003] However, in the prior art, when performing liveness verification, the liveness threshold is fixed, that is, a static threshold. Each time a liveness detection operation is performed, the liveness confidence obtained by the liveness detection operation is compared with the static threshold, and then a binary classification judgment is made as to whether the person is alive or not. This method of setting a static threshold will result in a higher probability of misjudgment and efficiency cannot be guaranteed.
[0004] There is currently no effective technical solution to the above problems. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for liveness recognition and liveness threshold adjustment, which can reduce the probability of misjudgment and improve the liveness detection efficiency to a certain extent by dynamically adjusting the liveness threshold based on the result of the liveness detection operation.
[0006] In a first aspect, an embodiment of the present application provides a method for adjusting a living body threshold, comprising the following steps:
[0007] When a liveness detection operation is detected, obtaining a liveness confidence level obtained by the liveness detection operation;
[0008] Get the current liveness threshold;
[0009] Comparing the living body threshold with the living body confidence level to obtain a comparison result;
[0010] The living body threshold is adjusted according to the comparison result.
[0011] The embodiment of the present application adjusts the liveness threshold through comparison results, thereby achieving dynamic adjustment of the liveness threshold, which can improve the liveness recognition efficiency while ensuring the accuracy of liveness recognition judgment.
[0012] Optionally, in the method for adjusting the living body threshold described in the embodiment of the present application, adjusting the living body threshold according to the comparison result includes:
[0013] If the living body confidence is greater than or equal to the living body threshold, lowering the living body threshold by a first preset amplitude value;
[0014] If the living body confidence level is less than the living body threshold, the living body threshold is increased by a second preset amplitude value.
[0015] Optionally, in the method for adjusting the liveness threshold described in the embodiment of the present application, the lower limit value of the liveness threshold is a first preset threshold;
[0016] The adjusting the living body threshold according to the comparison result includes:
[0017] If the living body confidence level is greater than or equal to the living body threshold, the living body threshold is lowered by a first preset amplitude value to obtain a first living body threshold;
[0018] The larger value between the first living body threshold and the first preset threshold is used as the updated living body threshold.
[0019] Optionally, in the method for adjusting the liveness threshold described in the embodiment of the present application, the upper limit value of the liveness threshold is a second preset threshold;
[0020] The adjusting the living body threshold according to the comparison result includes:
[0021] If the living body confidence level is less than the living body threshold, the living body threshold is increased by a second preset amplitude value to obtain a second living body threshold;
[0022] The smaller value between the second living body threshold and the second preset threshold is used as the updated living body threshold.
[0023] Optionally, in the method for adjusting the liveness threshold described in the embodiment of the present application, the step of obtaining the current liveness threshold includes:
[0024] Determine the interval between the last liveness detection and the current liveness detection;
[0025] If the interval time is greater than or equal to the preset threshold, the current living body threshold is set as the first default threshold;
[0026] If the interval time is less than the preset threshold, the current liveness threshold is set to the liveness threshold obtained after being updated during the last liveness detection.
[0027] Optionally, in the liveness threshold adjustment method described in the embodiment of the present application, the lower limit value of the liveness threshold is a first preset threshold; and the step of adjusting the liveness threshold according to the comparison result includes:
[0028] If the liveness confidence is greater than the liveness threshold, and K consecutive liveness recognition operations starting from the last liveness recognition operation are all passed, the liveness judgment threshold is set to the first preset threshold.
[0029] Optionally, in the method for adjusting the liveness threshold described in the embodiment of the present application, the upper limit value of the liveness threshold is a second preset threshold;
[0030] The step of adjusting the living body threshold according to the comparison result comprises:
[0031] If the liveness confidence is less than the liveness threshold, and K consecutive liveness recognition operations starting from the last liveness recognition operation have not been passed, the liveness judgment threshold is set to a second preset threshold.
[0032] In a second aspect, the embodiment of the present application further provides a living body threshold adjustment device, comprising:
[0033] A first acquisition module, configured to acquire a liveness confidence level obtained by a liveness detection operation when a liveness detection operation is detected;
[0034] The second acquisition module is used to obtain the current liveness threshold;
[0035] A comparison module, used for comparing the liveness threshold with the liveness confidence level to obtain a comparison result;
[0036] An adjustment module is used to adjust the living body threshold according to the comparison result.
[0037] In a third aspect, the present application also provides a living body recognition method, including:
[0038] When a liveness detection operation is detected, obtaining a liveness confidence level obtained by the liveness detection operation;
[0039] Get the current liveness threshold;
[0040] Determining whether liveness recognition is passed according to the liveness threshold and the liveness confidence;
[0041] If the liveness confidence is greater than or equal to the liveness threshold, the liveness recognition is successful;
[0042] If the liveness confidence is less than the liveness threshold, the liveness recognition fails;
[0043] The liveness threshold is a dynamic threshold, and the liveness threshold is adjusted based on any of the methods described above.
[0044] In a fourth aspect, the present application also provides a living body recognition device, including:
[0045] A third acquisition module is used to acquire the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored;
[0046] A fourth acquisition module is used to obtain a current liveness threshold;
[0047] A first judgment module, used for judging whether the liveness recognition is passed according to the liveness threshold and the liveness confidence;
[0048] A second judgment module, configured to determine that the liveness recognition is successful if the liveness confidence is greater than or equal to the liveness threshold;
[0049] A third judgment module, configured to determine that the liveness recognition fails if the liveness confidence is less than the liveness threshold;
[0050] The liveness threshold is a dynamic threshold, and the liveness threshold is adjusted based on any of the methods described above.
[0051] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are executed.
[0052] In a sixth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.
[0053] As can be seen from the above, the embodiment of the present application obtains the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored; obtains the current liveness threshold; compares the liveness threshold with the liveness confidence to obtain a comparison result; adjusts the liveness threshold according to the comparison result; thereby realizing dynamic adjustment of the liveness threshold, which can improve the liveness recognition efficiency while ensuring the accuracy of liveness recognition judgment.
[0054] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flowchart of a method for adjusting a living body threshold provided in an embodiment of the present application.
[0057] Figure 2 A schematic diagram of the structure of a living body threshold adjustment device provided in an embodiment of the present application.
[0058] Figure 3 A flowchart of a living body recognition method provided in an embodiment of the present application.
[0059] Figure 4 A schematic diagram of the structure of a living body recognition device provided in an embodiment of the present application.
[0060] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0062] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0063] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for adjusting a liveness threshold in some embodiments of the present application. The method for adjusting a liveness threshold is mainly used in liveness recognition, that is, mainly used in liveness recognition operations of electronic devices. The method includes the following steps:
[0064] S101. When a liveness detection operation is detected, obtain a liveness confidence level obtained by the liveness detection operation.
[0065] S102: Obtain the current liveness threshold.
[0066] S103: Compare the liveness threshold with the liveness confidence level to obtain a comparison result.
[0067] S104: Adjust the living body threshold according to the comparison result.
[0068] In step S101, the liveness detection operation is usually performed in parallel or serially with operations such as face recognition or fingerprint recognition during the process of unlocking, paying, and logging into an account of an electronic device. Only when both face recognition or fingerprint recognition and liveness recognition are passed can the verification be considered passed. For example, during face recognition, in order to prevent the thief from using a 3D-printed mask or a real person's photo for face recognition, the electronic device needs to perform liveness recognition on the target part to be identified, thereby improving the information security of the device. Similarly, during fingerprint recognition, it is also necessary to perform liveness recognition on the finger to be identified. The liveness confidence is used to describe the credibility of the target part to be identified as a live body. When the liveness confidence is greater than or equal to a dynamic threshold, the liveness recognition is passed, and when the liveness confidence is less than a dynamic threshold, the liveness recognition is not passed. Of course, the liveness recognition does not mean the verification is passed. For example, for fingerprint recognition, both fingerprint recognition and liveness recognition need to be passed at the same time to be considered as the verification.
[0069] In step S102, the current liveness threshold is used as a reference standard for determining whether the target corresponding to the liveness detection operation is live. The liveness threshold is dynamically changing, and the current liveness threshold can be the liveness threshold updated after the last liveness detection operation, or it can be the default judgment threshold.
[0070] In some embodiments, step S102 includes: S1021, determining the interval time between the last liveness detection and the current liveness detection; S1022, if the interval time is greater than or equal to the preset time threshold, setting the current liveness threshold to the first default threshold; S1023, if the interval time is less than the preset threshold, setting the current liveness threshold to the liveness threshold obtained after updating during the last liveness detection. Among them, the preset time threshold can be set to 1 hour or 30 minutes. Of course, the preset time threshold can be set based on the user's operating habits. Among them, the first default threshold is a value between the upper limit and the lower limit of the liveness threshold, for example, it can be set to the average of the upper limit and the lower limit of the liveness threshold. Since the user has not operated the electronic device for a long time and liveness recognition, the liveness threshold obtained by the previous dynamic adjustment should be invalidated, and the liveness threshold is restored to the first default threshold, so as to reduce the possibility of misjudgment and improve the efficiency of liveness recognition to a certain extent.
[0071] In step S103, there are two comparison results: the living body confidence level may be greater than or equal to the living body threshold, or may be less than the living body threshold.
[0072] In step S104, when the liveness threshold is adjusted based on the comparison result, the main principle followed is that if the liveness confidence level is greater than the liveness threshold level, it means that the current operation is a legal liveness operation. Therefore, in order to facilitate easier identification of operations within a preset time period in the future, the liveness threshold level is lowered; if the liveness confidence level is less than the liveness threshold level, it means that the current operation is a non-liveness operation. Therefore, in order to facilitate higher security of operations within a preset time period in the future, the liveness threshold level is increased. Of course, the specific adjustment also needs to be considered based on the upper and lower limits of the liveness threshold level.
[0073] Specifically, in some embodiments, if the upper limit and lower limit of the liveness threshold are not considered, step S104 includes the following sub-steps: S1041, if the liveness confidence is greater than the liveness threshold, the liveness threshold is adjusted down by a first preset amplitude value; S1042, if the liveness confidence is less than the liveness threshold, the liveness threshold is adjusted up by a second preset amplitude value. The first preset amplitude value and the second preset amplitude value may be the same or different, for example, the first preset amplitude value and the second preset amplitude value may both be set to 0.05 or 0.1.
[0074] Specifically, in some embodiments, if the upper limit value and the lower limit value of the living body threshold are considered, where the lower limit value is the first preset threshold and the upper limit value is the second preset threshold, that is to say, no matter how the living body threshold is dynamically adjusted, it is between the first preset threshold and the second preset threshold, that is, the living body threshold is greater than or equal to the first preset threshold and less than or equal to the second preset threshold. Then step S104 includes the following sub-steps:
[0075] S1043. If the living body confidence level is greater than or equal to the living body threshold, then lower the living body threshold by a first preset amplitude value to obtain a first living body threshold; S1044. Take the larger value of the first living body threshold and the first preset threshold as the updated living body threshold. S1045. If the living body confidence level is less than the living body threshold, then raise the living body threshold by a second preset amplitude value to obtain a second living body threshold; S1046. Take the smaller value of the second living body threshold and the second preset threshold as the updated living body threshold.
[0076] Among them, for example, the first preset amplitude value is a, the second preset amplitude value is b, Tmin is the lower limit value, that is, the first preset threshold, Tmax is the upper limit value, that is, the second preset threshold, Sn is the living body confidence level obtained from this living body detection operation, Tn is the current living body threshold, and Tn+1 is the updated living body threshold. It can be obtained that when SN>Tn, Tn+1 = MAX(Tn - a, Tmin); when SN<Tn, Tn+1 = Min(Tn + b, Tmax). Among them, MAX(Tn - a, Tmin) means taking the larger value of Tn - a and Tmin, and Min(Tn + b, Tmax) means taking the smaller value of Tn + b and Tmax.
[0077] Among them, it can be understood that in some embodiments, in order to further improve the security and recognition efficiency of authentication, the speed at which the living body threshold reaches the lower limit value can be accelerated when the living body recognition passes continuously for multiple times, and the speed at which the living body threshold reaches the upper limit value can be accelerated when the living body recognition fails continuously for multiple times. Therefore, in some embodiments, step S104 includes the following sub-steps:
[0078] S1047. If the living body confidence level is greater than or equal to the living body threshold, and the continuous K living body recognition operations ending with the previous living body recognition operation all pass, then set the living body judgment threshold to the first preset threshold. S1048. If the living body confidence level is less than the living body threshold, and the continuous K living body recognition operations ending with the previous living body recognition operation all fail, then set the living body judgment threshold to the second preset threshold. Among them, K can be set to 3 times. Of course, it can also be set to 4 times, and it is not limited thereto.
[0079] As can be seen from the above, the embodiment of the present application obtains the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored; obtains the current liveness threshold; compares the liveness threshold with the liveness confidence to obtain a comparison result; adjusts the liveness threshold according to the comparison result; thereby realizing dynamic adjustment of the liveness threshold, which can improve the liveness recognition efficiency while ensuring the accuracy of liveness recognition judgment.
[0080] Please refer to Figure 2 , Figure 2 It is a structural schematic diagram of a liveness threshold adjustment device in some embodiments of the present application. The liveness threshold adjustment device includes: a first acquisition module 201, a second acquisition module 202, a comparison module 203, and an adjustment module 204.
[0081] Among them, the first acquisition module 201 is used to obtain the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored. The liveness detection operation is usually performed in parallel in operations such as face recognition and fingerprint recognition. For example, in face recognition, in order to prevent the thief from using a 3D printed mask or a real person photo for face recognition, the electronic device needs to perform liveness recognition on the target part to be identified, thereby improving the information security of the device. Similarly, in fingerprint recognition, it is also necessary to perform liveness recognition on the finger to be identified. The liveness confidence is used to describe the credibility of the target part to be identified as a live body. When the liveness confidence is greater than or equal to a dynamic threshold, the liveness recognition passes, and when the liveness confidence is less than a dynamic threshold, the liveness recognition fails. Of course, the liveness recognition does not mean the verification passes. For example, for fingerprint recognition, both fingerprint recognition and liveness recognition need to pass at the same time to be considered as verification.
[0082] The second acquisition module 202 is used to obtain the current liveness threshold. The current liveness threshold is used as a reference standard for determining whether the target corresponding to the liveness detection operation is live. The liveness threshold changes dynamically, and the current liveness threshold can be the liveness threshold updated after the last liveness detection operation, or it can be the default judgment threshold.
[0083] The comparison module 203 is used to compare the liveness threshold with the liveness confidence to obtain a comparison result. There are two comparison results: the liveness confidence can be greater than or equal to the liveness threshold, or less than the liveness threshold.
[0084] Among them, the adjustment module 204 is used to adjust the liveness threshold according to the comparison result. When adjusting the liveness threshold based on the comparison result, the main principle followed is that if the liveness confidence is greater than or equal to the liveness threshold, it indicates that the current operation is a legal liveness operation. Therefore, in order to make it easier to recognize and pass the operation within a preset time period in the future, the liveness threshold is lowered; if the liveness confidence is less than the liveness threshold, it indicates that the current operation is a non-liveness operation. Therefore, in order to make the operation within a preset time period in the future safer, the liveness threshold is raised. Of course, when making specific adjustments, the upper limit value and the lower limit value of the liveness threshold also need to be considered.
[0085] Specifically, in some embodiments, if the upper limit value and the lower limit value of the liveness threshold are not considered, the adjustment module 204 is used to: if the liveness confidence is greater than the liveness threshold, lower the liveness threshold by a first preset amplitude value; if the liveness confidence is less than the liveness threshold, raise the liveness threshold by a second preset amplitude value. Among them, the first preset amplitude value and the second preset amplitude value may be the same or different. For example, both the first preset amplitude value and the second preset amplitude value can be set to 0.05 or 0.1.
[0086] Specifically, in some embodiments, if the upper limit value and the lower limit value of the liveness threshold are considered, where the lower limit value is a first preset threshold and the upper limit value is a second preset threshold, that is to say, no matter how the liveness threshold is dynamically adjusted, it is between the first preset threshold and the second preset threshold, that is, the liveness threshold is greater than or equal to the first preset threshold and less than or equal to the second preset threshold. Then the adjustment module 204 is used to: if the liveness confidence is greater than the liveness threshold, lower the liveness threshold by a first preset amplitude value to obtain a first liveness threshold; take the larger value between the first liveness threshold and the first preset threshold as the updated liveness threshold; if the liveness confidence is less than the liveness threshold, raise the liveness threshold by a second preset amplitude value to obtain a second liveness threshold; take the smaller value between the second liveness threshold and the second preset threshold as the updated liveness threshold. Among them, for example, the first preset amplitude value is a, the second preset amplitude value is b, Tmin is the lower limit value, that is, the first preset threshold, Tmax is the upper limit value, that is, the second preset threshold, Sn is the liveness confidence obtained from this liveness detection operation, Tn is the current liveness threshold, and Tn+1 is the updated liveness threshold. It can be obtained that when SN>Tn, Tn+1 = MAX(Tn - a, Tmin); when Sn<Tn, Tn+1 = Min(Tn + b, Tmax). Among them, MAX(Tn - a, Tmin) means taking the larger value between Tn - a and Tmin, and Min(Tn + b, Tmax) means taking the smaller value between Tn + b and Tmax.
[0087] Among them, it can be understood that in some embodiments, in order to further improve the security and recognition efficiency of authentication, the speed at which the liveness threshold reaches the lower limit value can be accelerated when multiple liveness recognitions are passed in succession, and the speed at which the liveness threshold reaches the upper limit value can be accelerated when multiple liveness recognitions are not passed in succession. Therefore, in some embodiments, the adjustment module 204 is used to: if the liveness confidence is greater than or equal to the liveness threshold, and the K consecutive liveness recognition operations with the last liveness recognition operation as the end point are all passed, then the liveness judgment threshold is set to the first preset threshold; if the liveness confidence is less than the liveness threshold, and the K consecutive liveness recognition operations with the last liveness recognition operation as the end point are not passed, then the liveness judgment threshold is set to the second preset threshold. Among them, K can be set to 3 times, of course, it can also be set to 4 times, and it is not limited to this.
[0088] As can be seen from the above, the embodiment of the present application obtains the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored; obtains the current liveness threshold; compares the liveness threshold with the liveness confidence to obtain a comparison result; adjusts the liveness threshold according to the comparison result; thereby realizing dynamic adjustment of the liveness threshold, which can improve the liveness recognition efficiency while ensuring the accuracy of liveness recognition judgment.
[0089] Please refer to Figure 3 , Figure 3 is a flow chart of a liveness recognition method in some embodiments of the present application, the liveness recognition method comprising the following steps:
[0090] S301, when a liveness detection operation is monitored, obtaining a liveness confidence level obtained by the liveness detection operation;
[0091] S302, obtaining the current liveness threshold;
[0092] S303, judging whether the liveness recognition is passed according to the liveness threshold and the liveness confidence;
[0093] S304: If the liveness confidence is greater than or equal to the liveness threshold, the liveness recognition is successful.
[0094] S305: If the liveness confidence is less than the liveness threshold, the liveness recognition fails;
[0095] The liveness threshold in each step is a dynamic threshold, and the liveness threshold is adjusted based on the liveness threshold adjustment method described in any of the above embodiments.
[0096] Please refer to Figure 4 , Figure 44 is a structural diagram of a living body recognition device in some embodiments of the present application. The living body recognition device includes: a third acquisition module 401, a fourth acquisition module 402, a first judgment module 403, a second judgment module 404, and a third judgment module 405.
[0097] The third acquisition module 401 is used to acquire the liveness confidence level obtained by the liveness detection operation when a liveness detection operation is detected;
[0098] The fourth acquisition module 402 is used to acquire the current living body threshold.
[0099] The first judgment module 403 is used to judge whether the liveness recognition is passed according to the liveness threshold and the liveness confidence.
[0100] The second judgment module 404 is configured to determine that the liveness recognition is successful if the liveness confidence is greater than or equal to the liveness threshold.
[0101] The third judgment module 405 is configured to determine that the liveness recognition fails if the liveness confidence level is less than the liveness threshold.
[0102] The liveness threshold is a dynamic threshold, and the liveness threshold is adjusted based on the method described in any one of the above embodiments.
[0103] Please refer to Figure 5 , Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present application. The present application provides an electronic device 5, including: a processor 501 and a memory 502. The processor 501 and the memory 502 are interconnected and communicate with each other via a communication bus 503 and / or other forms of connection mechanisms (not shown). The memory 502 stores a computer program executable by the processor 501. When the computing device is running, the processor 501 executes the computer program to execute the method in any optional implementation of the above-mentioned embodiment.
[0104] The embodiment of the present application provides a storage medium, and when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk.
[0105] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0106] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0108] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0109] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting a living body threshold, characterized in that: The following steps are involved: When a liveness detection operation is detected, obtaining a liveness confidence level obtained by the liveness detection operation; Get the current liveness threshold; Compare the living body threshold with the living body confidence level to obtain a comparison result; Adjusting the living body threshold according to the comparison result; The adjusting the living body threshold according to the comparison result includes: If the liveness confidence is greater than or equal to the liveness threshold, lowering the liveness threshold; If the liveness confidence is less than the liveness threshold, increasing the liveness threshold; The obtaining of the current living body threshold comprises: Determine the interval between the last liveness detection and the current liveness detection; If the interval time is greater than a preset time threshold, the current liveness threshold is set as a first default threshold; the preset time threshold is set based on the user's operating habits; If the interval time is less than the preset time threshold, the current liveness threshold is set to the liveness threshold obtained after being updated during the last liveness detection.
2. The method for adjusting the threshold of a living body according to claim 1, characterized in that: The adjusting the living body threshold according to the comparison result includes: If the living body confidence is greater than or equal to the living body threshold, lowering the living body threshold by a first preset amplitude value; If the living body confidence level is less than the living body threshold, the living body threshold is increased by a second preset amplitude value.
3. The method for adjusting the threshold of a living body according to claim 1, characterized in that: The lower limit value of the living body threshold is a first preset threshold; The adjusting the living body threshold according to the comparison result includes: If the living body confidence level is greater than or equal to the living body threshold, the living body threshold is lowered by a first preset amplitude value to obtain a first living body threshold; The larger value between the first living body threshold and the first preset threshold is used as the updated living body threshold.
4. The method for adjusting the threshold of a living body according to claim 1 or 3, characterized in that: The upper limit of the living body threshold is a second preset threshold; The adjusting the living body threshold according to the comparison result includes: If the living body confidence level is less than the living body threshold, the living body threshold is increased by a second preset amplitude value to obtain a second living body threshold; The smaller value between the second living body threshold and the second preset threshold is used as the updated living body threshold.
5. The method for adjusting the threshold of a living body according to claim 1, characterized in that: The lower limit value of the living body threshold is a first preset threshold; and the step of adjusting the living body threshold according to the comparison result comprises: If the liveness confidence is greater than the liveness threshold, and K consecutive liveness recognition operations starting from the last liveness recognition operation are all passed, the liveness judgment threshold is set to the first preset threshold.
6. The method for adjusting the threshold of a living body according to claim 1 or 5, characterized in that: The upper limit of the living body threshold is a second preset threshold; The step of adjusting the living body threshold according to the comparison result comprises: If the liveness confidence is less than the liveness threshold, and K consecutive liveness recognition operations starting from the last liveness recognition operation have not been passed, the liveness judgment threshold is set to a second preset threshold.
7. A living body recognition method, characterized in that: include: When a liveness detection operation is detected, obtaining a liveness confidence level obtained by the liveness detection operation; Get the current liveness threshold; The obtaining of the current liveness threshold comprises: determining the interval time between the last liveness detection and the current liveness detection; if the interval time is greater than a preset time threshold, setting the current liveness threshold to a first default threshold; the preset time threshold is set based on the user's operation habits; if the interval time is less than the preset time threshold, setting the current liveness threshold to the liveness threshold obtained after being updated during the last liveness detection; Determining whether liveness recognition is passed according to the liveness threshold and the liveness confidence; If the liveness confidence is greater than or equal to the liveness threshold, the liveness recognition is successful; If the liveness confidence is less than the liveness threshold, the liveness recognition fails; The liveness threshold is a dynamic threshold, and the liveness threshold is adjusted based on the method according to any one of claims 1 to 6.
8. A living body threshold adjustment device, characterized in that: include: A first acquisition module, configured to acquire a liveness confidence level obtained by a liveness detection operation when a liveness detection operation is detected; The second acquisition module is used to obtain the current liveness threshold; The obtaining of the current liveness threshold comprises: determining the interval time between the last liveness detection and the current liveness detection; if the interval time is greater than a preset time threshold, setting the current liveness threshold to a first default threshold; the preset time threshold is set based on the user's operation habits; if the interval time is less than the preset time threshold, setting the current liveness threshold to the liveness threshold obtained after being updated during the last liveness detection; A comparison module, used to compare the liveness threshold with the liveness confidence level to obtain a comparison result; An adjustment module is used to adjust the liveness threshold according to the comparison result; the adjustment of the liveness threshold according to the comparison result includes: if the liveness confidence is greater than or equal to the liveness threshold, lowering the liveness threshold; if the liveness confidence is less than the liveness threshold, raising the liveness threshold.
9. A living body recognition device, characterized in that: include: A third acquisition module is used to acquire the liveness confidence obtained by the liveness detection operation when a liveness detection operation is monitored; A fourth acquisition module is used to obtain a current liveness threshold; The obtaining of the current liveness threshold comprises: determining the interval time between the last liveness detection and the current liveness detection; if the interval time is greater than a preset time threshold, setting the current liveness threshold to a first default threshold; the preset time threshold is set based on the user's operation habits; if the interval time is less than the preset time threshold, setting the current liveness threshold to the liveness threshold obtained after being updated during the last liveness detection; A first judgment module, used for judging whether the liveness recognition is passed according to the liveness threshold and the liveness confidence; A second judgment module, configured to determine that the liveness recognition is successful if the liveness confidence is greater than or equal to the liveness threshold; A third judgment module, configured to determine that the liveness recognition fails if the liveness confidence is less than the liveness threshold; The liveness threshold is a dynamic threshold, and the liveness threshold is adjusted based on the method described in any one of claims 1 to 6.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is executed.
11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Fingerprint identification method and device, terminal and storage medium
CN110119727A
Cited By
Aquatic animal activity detection method fusing time sequence behaviors and posture characteristics
CN122618657A
