Method and module for realizing multiple biological recognition based on single camera, and electronic equipment

By acquiring images under different shooting parameters with a single camera, detecting and adapting to different types of biometrics, it solves the problems of increased hardware costs and poor user experience of multiple cameras in the existing technology, and realizes the efficient implementation of multiple biometrics and user experience. Friendly design.

CN118762404APending Publication Date: 2024-10-11SHENZHEN FUSHI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410878245.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing electronic devices require two cameras to implement face recognition and palm vein recognition, resulting in increased hardware costs and poor user experience, and users need to differentiate and adapt to different recognition areas.

Method used

Use a single camera to acquire images through different shooting parameters, detect and adapt different types of biometrics, achieve multiple biometrics, reduce the number of cameras, and improve user experience.

Benefits of technology

It realizes the recognition of multiple types of biometric features with a single camera, reduces hardware costs, simplifies the process of users finding the recognition area, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762404A_ABST
    Figure CN118762404A_ABST
Patent Text Reader

Abstract

The invention provides a method for realizing multiple biological recognition based on a single camera. The method comprises the following steps: controlling a recognition camera to obtain a first image according to a first shooting parameter; controlling the identification camera to obtain a second image according to a second shooting parameter; detecting whether the first image is a first type of biological feature image; when the first image is the first type of biological feature image, performing first type of biological feature recognition on the first image to obtain a first recognition result; when the first image is not the first type of biological feature image, detecting whether the second image is a second type of biological feature image; when the second image is a second type of biological feature image, performing second type of biological feature recognition on the second image to obtain a second recognition result; and when the first recognition result is that the first type of biological feature recognition is passed or the second recognition result is that the second type of biological feature recognition is passed, judging that the biological recognition is passed. In addition, the invention also provides a module and electronic equipment for realizing multiple biological recognition based on the single camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of biometric identification technology, and in particular to a method, module and electronic device for realizing multiple biometric identification based on a single camera. Background Art

[0002] Biometrics are often used in electronic devices such as gates and smart door locks to allow specific groups of people to use them. Biometrics include but are not limited to face recognition, palm vein recognition, palm print recognition, etc. In order to meet the differentiated needs of various groups of people for different biometrics, electronic devices such as gates and smart door locks need to have multiple biometric functions to improve the applicability of the product.

[0003] Taking face recognition and palm vein recognition as examples, due to the large differences in the image acquisition scenarios required for different recognitions, existing electronic devices usually require two cameras for face recognition and palm vein recognition respectively, which increases the camera hardware cost. In addition, due to the different positions of the two cameras, users also need to distinguish between the face recognition area and the palm vein recognition area when actually using them, resulting in a poor user experience. Summary of the invention

[0004] The present application provides a method, module and electronic device for realizing multiple biometric identifications based on a single camera, which can realize multiple biometric identifications only through a single camera.

[0005] In a first aspect, an embodiment of the present application provides a method for implementing multiple biometric recognition based on a single camera, comprising the steps of: controlling an identification camera to acquire a first image with a first shooting parameter; controlling the identification camera to acquire a second image with a second shooting parameter; detecting whether the first image is a first-category biometric image; when the first image is a first-category biometric image, performing a first-category biometric recognition on the first image to obtain a first recognition result, and the first recognition result is that the first-category biometric recognition fails or the first-category biometric recognition passes; when the first image is not a first-category biometric image, detecting whether the second image is a second-category biometric image; when the second image is a second-category biometric image, performing a second-category biometric recognition on the second image to obtain a second recognition result, and the second recognition result is that the second-category biometric recognition fails or the second-category biometric recognition passes; when the first recognition result is that the first-category biometric recognition passes or when the second recognition result is that the second-category biometric recognition passes, it is judged that the biometric recognition passes.

[0006] In a second aspect, an embodiment of the present application provides a module for implementing multiple biometrics based on a single camera, including:

[0007] Identify the camera, used to obtain images according to the set shooting parameters;

[0008] A control module, used for controlling the recognition camera to acquire a first image with a first shooting parameter and to acquire a second image with a second shooting parameter;

[0009] A first detection module, used to detect whether the first image is a first type of biometric image;

[0010] A first recognition module, when the first image is a first type of biometric feature image, is used to perform first type of biometric feature recognition on the first image to obtain a first recognition result, wherein the first recognition result is a failure of the first type of biometric feature recognition or a passing of the first type of biometric feature recognition;

[0011] a second detection module, for detecting whether the second image is a second type of biometric image when the first image is not a first type of biometric image;

[0012] a second recognition module, when the second image is a second type of biometric feature image, for performing second type of biometric feature recognition on the second image to obtain a second recognition result, wherein the second recognition result is a failure in second type of biometric feature recognition or a pass in second type of biometric feature recognition; and

[0013] The judgment module is used to judge that the biometric recognition is passed when the first recognition result is that the first type of biometric recognition is passed or when the second recognition result is that the second type of biometric recognition is passed.

[0014] In a third aspect, an embodiment of the present application provides a module for realizing multiple biometric recognition based on a single camera, including a recognition camera and a processing device, the processing device including a memory and one or more processors, the memory is used to store computer programs; one or more processors are used to execute the computer program to realize the above-mentioned method for realizing multiple biometric recognition based on a single camera.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a main body, and the above-mentioned module for realizing multiple biometrics based on a single camera and arranged on the main body.

[0016] The above-mentioned method, module and electronic device for realizing multiple biometric identification based on a single camera only use one identification camera, and obtain images under different shooting parameters through one identification camera, and adapt different types of biometric identification according to image features, so as to realize the identification of multiple types of biometric features by one identification camera, thereby reducing the hardware cost of the camera. Moreover, one identification camera also makes it easier for users to find the identification area, which can improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0018] Figure 1 A flowchart of a method for implementing multiple biometrics based on a single camera provided in one embodiment of the present application.

[0019] Figure 2 A flowchart of a method for implementing multiple biometrics based on a single camera provided in another embodiment of the present application.

[0020] Figure 3 A flowchart of a method for implementing multiple biometrics based on a single camera provided in another embodiment of the present application.

[0021] Figure 4 A flowchart of a method for implementing multiple biometrics based on a single camera provided in yet another embodiment of the present application.

[0022] Figure 5 A first structural schematic diagram of a module for implementing multiple biometrics based on a single camera provided in an embodiment of the present application.

[0023] Figure 6 A second structural schematic diagram of a module for implementing multiple biometrics based on a single camera provided in another embodiment of the present application.

[0024] Figure 7 A schematic diagram of a module for implementing multiple biometrics based on a single camera provided in an embodiment of the present application.

[0025] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application.

[0026] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0028] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar planning objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate. In other words, the described embodiments are implemented according to an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations may also include other content. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to only those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0030] An embodiment of the present application provides a method for implementing multiple biometric identifications based on a single camera, comprising the steps of: controlling an identification camera to acquire a first image with a first shooting parameter; controlling the identification camera to acquire a second image with a second shooting parameter; detecting whether the first image is a first-category biometric image; when the first image is a first-category biometric image, performing a first-category biometric identification on the first image to obtain a first identification result, the first identification result being a failure in the first-category biometric identification or a pass in the first-category biometric identification; when the first image is not a first-category biometric image, detecting whether the second image is a second-category biometric image; when the second image is a second-category biometric image, performing a second-category biometric identification on the second image to obtain a second identification result, the second identification result being a failure in the second-category biometric identification or a pass in the second-category biometric identification; when the first identification result is a pass in the first-category biometric identification or when the second identification result is a pass in the second-category biometric identification, determining that the biometric identification is passed.

[0031] In some embodiments, the first shooting parameter is used to obtain a face image, the first type of biometric image is a face feature image, and the first type of biometric recognition is face recognition; the second shooting parameter is used to obtain a palm image, the second type of biometric image is a palm feature image, and the second type of biometric recognition is palm recognition.

[0032] In some embodiments, the first shooting parameter is used to obtain a palm image, the first type of biometric image is a palm feature image, and the first type of biometric recognition is palm recognition; the second shooting parameter is used to obtain a face image, the second type of biometric image is a face feature image, and the second type of biometric recognition is face recognition.

[0033] In some embodiments, controlling the recognition camera to acquire a first image using a first shooting parameter and controlling the recognition camera to acquire a second image using a second shooting parameter are performed serially.

[0034] In some embodiments, the first image is cached in a first cache space, and the second image is cached in a second cache space.

[0035] In some embodiments, the method further includes: when the first image is not a first type of biometric image and the second image is not a second type of biometric image, updating the first shooting parameter according to the first image and updating the second shooting parameter according to the second image.

[0036] In some embodiments, before performing the first type of biometric feature recognition on the first image to obtain a first recognition result, the method further includes:

[0037] performing a first type of biometric anti-counterfeiting detection on the first image; or,

[0038] Before performing the second type of biometric feature recognition on the second image to obtain a second recognition result, the method further includes:

[0039] A second type of biometric anti-counterfeiting detection is performed on the second image.

[0040] In some embodiments, it also includes:

[0041] When the first image fails the first type of biometric anti-counterfeiting detection, updating the first shooting parameter according to the first image; or,

[0042] When the second image fails the second type of biometric anti-counterfeiting detection, the second shooting parameter is updated according to the second image.

[0043] In some embodiments, it also includes:

[0044] When the first recognition result is that the first type of biometric recognition fails, updating the first shooting parameter according to the first image; or,

[0045] When the first recognition result is a failure of the first type of biometric recognition, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image.

[0046] In some embodiments, it also includes:

[0047] When the second recognition result is that the second type of biometric recognition fails, updating the second shooting parameter according to the second image; or,

[0048] When the second recognition result is a failure of second-type biometric recognition, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image.

[0049] In some embodiments, it also includes:

[0050] When the first image is a first type of biometric feature image, updating the first shooting parameter according to image data of a region where the first type of biometric feature is located in the first image;

[0051] When the first image is not a first type of biometric image, updating the first shooting parameter according to image data of the first image;

[0052] When the second image is a second type of biometric feature image, updating the second shooting parameter according to image data of a region where the second type of biometric feature is located in the second image; and

[0053] When the second image is not a second type of biometric image, the second shooting parameter is updated according to image data of the second image.

[0054] In some embodiments, before controlling the recognition camera to acquire the first image and the second image, the method further includes:

[0055] The light source is driven to turn on, and the light source is used to provide lighting for the recognition camera to acquire images.

[0056] In some embodiments, the light source emits infrared light when providing illumination.

[0057] In some embodiments, before controlling the recognition camera to acquire the first image and the second image, the method further includes:

[0058] Sense whether there is a target object within a preset detection range; and

[0059] When it is sensed that there is a target object within a preset detection range, the recognition camera is driven to power on.

[0060] In some embodiments, the recognition camera is an infrared camera, and the first image and the second image are infrared images.

[0061] The present application embodiment provides a module for realizing multiple biometric identification based on a single camera, including:

[0062] Identify the camera, used to obtain images according to the set shooting parameters;

[0063] A control module, used for controlling the recognition camera to acquire a first image with a first shooting parameter and to acquire a second image with a second shooting parameter;

[0064] A first detection module, used to detect whether the first image is a first type of biometric image;

[0065] A first recognition module, when the first image is a first type of biometric feature image, is used to perform first type of biometric feature recognition on the first image to obtain a first recognition result, wherein the first recognition result is a failure of the first type of biometric feature recognition or a passing of the first type of biometric feature recognition;

[0066] a second detection module, for detecting whether the second image is a second type of biometric image when the first image is not a first type of biometric image;

[0067] a second recognition module, when the second image is a second type of biometric feature image, for performing second type of biometric feature recognition on the second image to obtain a second recognition result, wherein the second recognition result is a failure in second type of biometric feature recognition or a pass in second type of biometric feature recognition; and

[0068] The judgment module is used to judge that the biometric recognition is passed when the first recognition result is that the first type of biometric recognition is passed or when the second recognition result is that the second type of biometric recognition is passed.

[0069] In some embodiments, the module for implementing multiple biometrics based on a single camera further includes:

[0070] A first cache space is configured to cache the first image; and

[0071] The second cache space is configured to cache the second image.

[0072] In some embodiments, the module for implementing multiple biometrics based on a single camera further includes:

[0073] a first anti-counterfeiting module, configured to perform a first type of biometric anti-counterfeiting detection on the first image; and

[0074] The second anti-counterfeiting module is used to perform a second type of biometric anti-counterfeiting detection on the second image.

[0075] In some embodiments, the module for implementing multiple biometrics based on a single camera further includes:

[0076] The shooting parameter updating module is used to update the first shooting parameter according to the first image and / or update the second shooting parameter according to the second image in various different situations where biometric recognition cannot be passed.

[0077] In some embodiments, the module for implementing multiple biometrics based on a single camera further includes:

[0078] A light source, used to provide lighting for the recognition camera to acquire images;

[0079] A driving module, used to drive the light source to turn on; and

[0080] The sensing module is used to sense whether there is a target object within a preset detection range; when the target object is sensed to exist within the preset detection range, the driving module is also used to drive the recognition camera to power on.

[0081] An embodiment of the present application provides a module for realizing multiple biometric recognition based on a single camera, including a recognition camera and a processing device, the processing device including a memory and one or more processors, the memory is used to store computer programs; the one or more processors are used to execute the computer program to realize the above-mentioned method for realizing multiple biometric recognition based on a single camera.

[0082] The embodiment of the present application provides an electronic device, which includes a main body and a module for realizing multiple biometrics based on a single camera and arranged on the main body. The electronic device may be, for example, a smart door lock, a subway gate, or other device that requires identification and verification of the user's identity. The electronic device includes a main body and a module for realizing multiple biometrics based on a single camera and arranged on the main body.

[0083] Hereinafter, a method for realizing multiple biometrics based on a single camera, a module and an embodiment of the same applied to an electronic device will be described in detail with reference to the accompanying drawings.

[0084] Please see Figure 1 , which is a flow chart of a method for realizing multiple biometrics based on a single camera provided in the first embodiment of the present application. The present application provides a method for realizing multiple biometrics based on a single camera, which can realize multiple types of biometrics of a target object only through a single camera, reduce the number of cameras involved in the recognition, and thus save recognition costs. Multiple types of biometrics include but are not limited to face recognition, palm recognition, ear recognition, iris recognition, etc. The following uses face recognition and palm recognition as examples to illustrate the above method. The method for realizing multiple biometrics based on a single camera includes the following steps.

[0085] Step S101, controlling a recognition camera to acquire a first image with a first shooting parameter.

[0086] In step S101, the recognition camera is used to obtain an image that can identify the target object. The types of recognition cameras include but are not limited to infrared cameras, visible light cameras, etc. The first shooting parameters are related parameters of components involved in obtaining images in the recognition camera. The first shooting parameters include but are not limited to automatic exposure parameters (AE) and exposure gain of the recognition camera. The initial value of the first shooting parameter can be preset, and the recognition camera is set according to the preset initial value of the first shooting parameter before the first image is obtained for the first time, so that the recognition camera obtains the first image with the initial value of the first shooting parameter. The first image is the corresponding image obtained by the recognition camera under the first shooting parameter, including the image area and its corresponding image data. After controlling the recognition camera to obtain the first image with the set first shooting parameter, the first image is cached to the first cache space so that the first image can be saved and quickly retrieved in subsequent steps. The first cache space can be a cache space in a device with a storage function in the recognition camera, such as a memory. The first cache space can also be a storage space in a recognition module or electronic device including the recognition camera.

[0087] In the first embodiment, the recognition camera is an infrared camera. Accordingly, the first image is an infrared image. When the recognition camera acquires an image with a shooting parameter, it is used to acquire a class of corresponding images. The number of first images can be determined according to the number of times the first image is acquired with the first shooting parameter, that is, each time the first image is acquired with the first shooting parameter, one first image is acquired. The number of first images can be one or more.

[0088] The shooting parameters of the recognition camera can be determined according to the type of biometric recognition to be performed. For example, when the first image obtained is used for face recognition, the first shooting parameters are configured as recognition camera parameters that are conducive to obtaining higher quality face images. For example: in a general face recognition scenario, the distance between the target object's face and the recognition camera is in the range of 40-120cm. The first shooting parameters can be set according to how to obtain a better quality image in this case, including but not limited to AE parameters, exposure gain, aperture, shutter speed, sensitivity value, etc. If the recognition camera can be zoomed, the first shooting parameters can also include focal length values. Similarly, when the first image obtained is used for palm recognition, the first shooting parameters can also be configured as recognition camera parameters that are conducive to obtaining higher quality palm images. For example: in a general palm recognition scenario, the distance between the target object's palm and the recognition camera is in the range of 10-30cm. The first shooting parameters can be set according to how to obtain a better quality image in this case, including but not limited to AE parameters, exposure gain, aperture, shutter speed, sensitivity value, etc. If the recognition camera can be zoomed, the first shooting parameters can also include focal length values.

[0089] Step S102: Control the recognition camera to acquire a second image with a second shooting parameter.

[0090] Similar to the first shooting parameter, the second shooting parameter is also a parameter related to the components involved in acquiring an image in the identification camera, and the second shooting parameter and the first shooting parameter are shooting parameters required for different types of biometrics. For example, if the first shooting parameter is used to acquire a face image, the second shooting parameter is used to acquire a palm image. If the first shooting parameter is used to acquire a palm image, the second shooting parameter is used to acquire a face image.

[0091] In the first embodiment, the second image is the corresponding image acquired by the recognition camera under the second shooting parameter, and also includes the image area and its corresponding image data. For the same recognition camera, when the first image is an infrared image, the second image is also an infrared image. After controlling the recognition camera to acquire the second image with the second shooting parameter, the second image is cached to the second cache space so that the second image can be saved and quickly retrieved in subsequent steps. The second cache space can be a cache space in a device with a storage function in the recognition camera, such as a memory. The second cache space can also be a storage space in an identification module or an electronic device including the recognition camera. In this embodiment, the first cache space and the second cache space can be different cache spaces in the same device, or they can be cache spaces in different devices.

[0092] Similarly, the initial value of the second shooting parameter can be preset, and the recognition camera can be set according to the preset initial value of the second shooting parameter before the second image is first acquired, so that the recognition camera acquires the second image with the initial value of the second shooting parameter. The number of second images can also be determined according to the number of times the second image is acquired with the second shooting parameter, that is, each time the second image is acquired with the second shooting parameter, one second image is acquired. The number of second images can be one or more.

[0093] Step S101 and step S102 are executed in series, and the first shooting parameter and the second shooting parameter are different shooting parameters, and images for different types of biometrics are obtained accordingly. Thus, images for different types of biometrics can be obtained in sequence in the same round of shooting by a single recognition camera, thereby saving the cost of the camera. It can be understood that the first shooting parameter, the second shooting parameter, the third shooting parameter, the fourth shooting parameter, ..., the Nth shooting parameter can also be set correspondingly for three, four or more different types of biometric scenes, so that a single recognition camera can be controlled in series to obtain the first image, the second image, the third image, the fourth image, ..., the Nth image respectively with the first shooting parameter, the second shooting parameter, the third shooting parameter, the fourth shooting parameter, ..., the Nth shooting parameter for subsequent multiple different types of biometrics. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, step S101 and step S102 can respectively correspond to the acquisition of any two of the multiple images for different types of biometrics with more than two different shooting parameters. That is, the technical solution of the present application is not limited to realizing two different types of biometrics using a single recognition camera. Using a single recognition camera to realize more than two different types of biometrics is also within the scope of protection of the present application.

[0094] Step S103: detecting whether the first image is a first type of biometric image.

[0095] In step S103, in order to detect the target object, after acquiring the first image and the second image, the first image is retrieved from the first cache space, and the detection algorithm corresponding to the first type of biometric image is called to perform the detection of the first type of image on the first image. The following uses examples of first images of different categories to specifically explain how to detect the images acquired by the recognition camera.

[0096] In the first embodiment, when the first type of biometric image includes a facial feature image, the corresponding detection algorithm is a facial feature detection algorithm. The first image is read from the first cache space, and the facial feature detection algorithm is used to detect whether the first image contains facial features. Among them, the facial feature detection algorithm includes but is not limited to the Eigenfaces algorithm, the HaarCascade algorithm, the face algorithm based on the convolutional neural network (CNN), the algorithm based on the facial recognition library (such as face_det), etc. The facial feature image is an image containing several preset facial features. Among them, the facial features include but are not limited to the shapes of facial organs, such as eyes, nose, mouth, chin, eyebrows, ears, hair, etc., the distance between facial organs, characteristics, etc. When the recognition camera is an infrared camera and the first image obtained is an infrared image, the facial features may also include veins on the face. In the present application, the facial feature detection algorithm is used to detect whether there is a face in the first image taken. If a face is detected in the first image, it means that there is a target object to be identified and the target object is willing to use facial recognition. If no face is detected in the first image, it means that there is no target object to be identified, or the target object is unwilling to use face for biometric recognition. At this time, it is necessary to switch to another type of biometric feature detection.

[0097] Similarly, when the first type of biometric image is a palm feature image, the corresponding detection algorithm is a palm feature detection algorithm. The first image is read from the first cache space, and the palm feature detection algorithm is used to detect whether the first image contains palm features. The palm feature detection algorithm can be a combination of an algorithm based on the palm_det database, a palm vein structure enhancement algorithm based on edge detection weighted guided filtering, and a fuzzy unsharp mask palm print enhancement algorithm based on a block model. The palm feature image is an image containing several preset palm features. Since the first image is an infrared image, the palm features include but are not limited to palm prints and their pattern features such as main lines, wrinkle textures, ridge ends, and bifurcation points, palm vein features such as subcutaneous vein patterns of the palm and their corresponding digital information, etc. In this application, the palm feature detection algorithm is used to detect whether there is a palm in the first image taken. If a palm is detected in the first image, it means that there is a target object to be identified at present, and the target object is willing to use palm recognition; if no palm is detected in the first image, it means that there is no target object to be identified at present, or the target object is unwilling to use palm for biometric recognition, and it is necessary to switch to another type of biometric detection.

[0098] When the first image is a first type of biometric image, step S104 is executed.

[0099] Step S104: performing a first type of biometric feature recognition on the first image to obtain a first recognition result.

[0100] In step S104, the first recognition result is that the first type of biometric recognition fails or the first type of biometric recognition passes. When the first image is a first type of biometric image, the biometric recognition of the first type of image is performed on the first image by calling the recognition algorithm corresponding to the first type of biometric recognition. The following will specifically describe how to perform biometric recognition on first images of different categories.

[0101] In the first embodiment, when the first image detects a face through a palm feature detection algorithm, the first type of biometric recognition is face recognition. The first recognition result corresponds to face recognition failure or face recognition pass. The present application uses a face recognition algorithm in combination with a preset biometric template to perform face recognition on the first image, and then obtains a first recognition result for determining whether the first image matches the preset biometric template. Among them, the face recognition algorithm includes but is not limited to using the Haar features of the image obtained by the Adaboost algorithm combined with the Haar Cascade algorithm to recognize faces, and obtaining a deep convolutional neural network model based on CNN training to recognize faces. Among them, the biometric template can be a facial information recognition template for several recognition objects, such as a facial template containing features such as the shape of facial organs, the distribution pattern of facial veins, the relative distance between organs, and the angle.

[0102] Similarly, when the palm is detected in the first image through the palm feature detection algorithm, the first type of biometric identification is palm identification. The first identification result corresponds to palm identification failure or palm identification pass. The present application uses a palm recognition algorithm in combination with a preset biometric template to perform palm identification on the first image, and then obtains a first identification result for determining whether the first image matches the preset biometric template. Among them, the palm recognition algorithm can be a fusion recognition algorithm. The biometric template can be a palm information identification template for several identification objects, such as palm prints with features such as main lines, wrinkle textures, ridge ends, bifurcation points, and subcutaneous venous blood vessel pattern features of the palm.

[0103] When the first recognition result is that the first type of biometric recognition is passed, it is determined that the biometric recognition of the target object is passed. When the first image is not a first type of biometric image, step S105 is executed.

[0104] Step S105, detecting whether the second image is a second type of biometric image.

[0105] Similar to the above-mentioned detection of the first image, in order to realize the detection of the target object, after detecting that the first image is not a first-class biometric image, the second image is read from the second cache space, and the detection of the second-class biometric image is performed on the second image by calling the detection algorithm corresponding to the second-class biometric image. The second-class biometric image and the first-class biometric image are biometric images required for different categories of biometric detection. For example, if the first-class biometric image is a facial feature image, the second-class biometric image is a palm feature image, and the corresponding detection algorithm is a palm feature detection algorithm. If the first-class biometric image is a palm feature image, the second-class biometric image is a facial feature image, and the corresponding detection algorithm is a facial feature detection algorithm.

[0106] It should be understood that a single recognition camera can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple types of biometrics in the same round, and sequentially detect whether the first image, the second image, the third image, the fourth image, ..., the Nth image, etc. are the corresponding first type of biometric image, the second type of biometric image, the third type of biometric image, the fourth type of biometric image, ..., the Nth type of biometric image, until one of the images is detected as a biometric image of the corresponding type, and then the corresponding type of biometric recognition is performed based on the image, so that the biometric detection can be switched to the biometric type that meets the requirements of the target object, so that a single recognition camera can be adapted to multiple different types of biometrics. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, step S103 and step S105 can respectively correspond to any two of the multiple biometric detections corresponding to the above multiple images. That is, the technical solution of the present application is not limited to realizing two different types of biometric detection using a single recognition camera. Using a single recognition camera to realize more than two different types of biometric detection is also within the scope of protection of the present application.

[0107] When the second image is a second type of biometric image, step S106 is executed.

[0108] Step S106: Perform a second type of biometric feature recognition on the second image to obtain a second recognition result.

[0109] In step S106, the second recognition result is that the second type of biometric recognition fails or the second type of biometric recognition passes. When the second image is a second type of biometric image, the biometric recognition of this type of image is performed on the second image by calling the recognition algorithm corresponding to the second type of biometric recognition. The second type of biometric recognition and the first type of biometric recognition are biometric recognitions of different categories. For example, if the first type of biometric recognition is face recognition, the second type of biometric recognition is palm recognition, and the corresponding recognition algorithm is a palm recognition algorithm. If the first type of biometric recognition is palm recognition, the second type of biometric recognition is face recognition, and the corresponding recognition algorithm is a face recognition algorithm. When the second recognition result is that the second type of biometric recognition passes, it is determined that the biometric recognition of the target object passes.

[0110] It should be understood that a single recognition camera can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple different types of biometrics in the same round, and after detecting that one of the first image, the second image, the third image, the fourth image, ..., the Nth image, etc. is a corresponding type of biometric image, switch to the corresponding type of biometric recognition for the image, thereby achieving adaptation to multiple different types of biometrics. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, step S103 and step S105 can correspond to any two of the multiple biometric detections corresponding to the above multiple images. Accordingly, step S104 and step S106 correspond to the corresponding type of biometric recognition implemented after the biometric detection of step S103 and step S105 passes, which can be any two of the multiple biometric recognitions corresponding to the above multiple images. That is, the technical solution of the present application is not limited to realizing two different types of biometric detection and biometric recognition using a single recognition camera. Using a single recognition camera to realize more than two different types of biometric detection and biometric recognition is also within the scope of protection of the present application.

[0111] Step S107: when the first recognition result is that the first type of biometric recognition is passed or when the second recognition result is that the second type of biometric recognition is passed, it is determined that the biometric recognition is passed.

[0112] It should be understood that the first type of biometric identification and the second type of biometric identification here are any two of two or more different types of biometric identification. That is, the technical solution of the present application should not be limited to the above-mentioned two different types of biometric identification, namely the first type of biometric identification and the second type of biometric identification, but can also be applied to the switching between two or more different types of biometric identification. As long as the corresponding identification scenario passes any one type of biometric identification, it can be considered to pass the final biometric identification.

[0113] In the first embodiment, face recognition and palm recognition are used as examples to illustrate that one recognition camera can be used to obtain images under different shooting parameters and adapt different types of biometrics according to image features, thereby realizing the adaptation of one recognition camera to multiple types of biometrics, and reducing the hardware cost of the biometric module that can adapt to multiple biometrics. Moreover, the use of one recognition camera also makes it easier for users to find the corresponding recognition area, which can improve the user experience.

[0114] Please see Figure 2 , which is a flow chart of a method for realizing multiple biometric identification based on a single camera provided by the second embodiment of the present application. The difference between the second embodiment and the first embodiment is that after the image acquired by the recognition camera passes the corresponding biometric detection, before the corresponding biometric identification is performed, it is also required to undergo the corresponding type of biometric anti-counterfeiting detection to prevent non-biological objects carrying the corresponding type of biometrics from performing identification attacks. The following will specifically explain how to perform biometric anti-counterfeiting detection on images that pass the biometric detection in conjunction with the second embodiment.

[0115] In the second embodiment, when step S103 is executed and it is detected that the first image is a first type of biometric feature image, step S108 is executed before step S104 is executed to perform the first type of biometric feature recognition on the first image.

[0116] Step S108: performing a first type of biometric anti-counterfeiting detection on the first image.

[0117] In step S108, before performing the first type of biometric identification on the first image to obtain the first identification result, it is also necessary to perform the first type of biometric anti-counterfeiting detection on the first image. The first type of biometric anti-counterfeiting detection is to perform biometric anti-counterfeiting detection on the first image by calling the anti-counterfeiting detection algorithm and obtain the first type of biometric anti-counterfeiting detection result. The first type of biometric anti-counterfeiting detection result is that the first type of biometric anti-counterfeiting detection fails or the first type of biometric anti-counterfeiting detection passes. The first type of biometric anti-counterfeiting detection result is used to determine whether the first image passes the first type of biometric anti-counterfeiting detection to determine whether the first image is an image taken by a real organism, thereby preventing identification attacks by non-biological objects carrying the first type of biometrics, such as photos, videos, models, etc., and improving the security of biometric identification. The following will specifically explain how to perform the first type of biometric anti-counterfeiting detection on first images of different categories.

[0118] In a second embodiment, when a face is detected in the first image through a facial feature detection algorithm, the first type of biometric anti-counterfeiting detection is a facial feature anti-counterfeiting detection. The corresponding anti-counterfeiting detection algorithm is a facial feature anti-counterfeiting detection algorithm. The first type of biometric anti-counterfeiting detection result corresponds to a facial feature anti-counterfeiting detection failure or a facial feature anti-counterfeiting detection pass. By calling the facial feature anti-counterfeiting detection algorithm to perform facial feature anti-counterfeiting detection on the first image and obtaining the first type of biometric anti-counterfeiting detection result, it is ensured that the acquired first image is not taken by a non-biological object disguised as a photo, video, mask, model, etc. with facial features, thereby improving the safety and reliability of subsequent recognition of the first image. The facial feature anti-counterfeiting detection algorithm includes but is not limited to algorithms based on stereo vision and optical flow, deep convolutional neural network models obtained based on CNN training to detect unnatural features in facial images, etc.

[0119] Similarly, when a palm is detected in the first image through a palm feature detection algorithm, the first type of biometric anti-counterfeiting detection is a palm feature anti-counterfeiting detection. The corresponding anti-counterfeiting detection algorithm is a palm feature anti-counterfeiting detection algorithm. The first type of biometric anti-counterfeiting detection result is a palm feature anti-counterfeiting detection failure or a palm feature anti-counterfeiting detection pass. By calling the palm feature anti-counterfeiting detection algorithm to perform palm feature anti-counterfeiting detection on the first image, it is ensured that the acquired first image is not taken by a non-biological object disguised as a photo, video, model, etc. carrying palm features, thereby improving the security and reliability of subsequent recognition of the first image. The palm feature anti-counterfeiting detection algorithm includes but is not limited to an image quality assessment algorithm, a deep learning model obtained based on CNN training, a feature extraction algorithm based on discrete cosine transform (DCT), local binary pattern (LBP), Gabor filtering, etc., and a feature fusion algorithm.

[0120] When the first image passes the first type of biometric anti-counterfeiting detection, step S104 is executed. When the first image fails the first type of biometric anti-counterfeiting detection, it indicates that the first image is a non-biological image, that is, step S104 is no longer executed to perform the first type of biometric recognition on the first image.

[0121] When step S105 is executed and it is detected that the second image is a second type of biometric feature image, step S109 is executed before step S106 is executed to perform second type of biometric feature recognition on the second image.

[0122] Step S109: performing a second type of biometric anti-counterfeiting detection on the second image.

[0123] In step S109, before performing the second type of biometric identification on the second image to obtain the second identification result, it is also necessary to perform the second type of biometric anti-counterfeiting detection on the second image. Similar to the first type of biometric anti-counterfeiting detection on the first image mentioned above, the second type of biometric anti-counterfeiting detection is to perform biometric anti-counterfeiting detection on the second image by calling the anti-counterfeiting detection algorithm and obtain the second type of biometric anti-counterfeiting detection result. The second type of biometric anti-counterfeiting detection result is that the second type of biometric anti-counterfeiting detection fails or the second type of biometric anti-counterfeiting detection passes. The second type of biometric anti-counterfeiting detection result is used to determine whether the second image passes the second type of biometric anti-counterfeiting detection to determine whether the second image is an image taken by a real organism, thereby preventing identification attacks by non-biological objects carrying second type biometrics, such as photos, videos, models, etc., and improving the security of biometric identification.

[0124] In the second embodiment, the second type of biometric anti-counterfeiting detection and the first type of biometric anti-counterfeiting detection are different types of biometric anti-counterfeiting detection corresponding to different categories of images that pass the biometric detection. For example, if the first image is detected as not a face feature image by the face feature detection algorithm, and the second image is detected as a palm by the palm feature detection algorithm, the second type of biometric anti-counterfeiting detection is a palm feature anti-counterfeiting detection, and the corresponding anti-counterfeiting detection algorithm is a palm feature detection algorithm. If the first image is detected as not a palm feature image by the palm feature detection algorithm, and the second image is detected as a face by the face feature detection algorithm, the second type of biometric anti-counterfeiting detection is a face feature anti-counterfeiting detection, and the corresponding anti-counterfeiting detection algorithm is a face feature detection algorithm. When the second image passes the second type of biometric anti-counterfeiting detection, step S106 is executed. When the second image fails to pass the second type of biometric anti-counterfeiting detection, it indicates that the second image is a non-biological image, that is, step S106 is no longer executed to perform the second type of biometric recognition on the second image.

[0125] It should be understood that a single recognition camera can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple types of biometric identification in the same round, and detect the biometric type of the above image, and before performing the corresponding type of biometric identification, the image is subjected to the corresponding first type of biometric anti-counterfeiting detection, the second type of biometric anti-counterfeiting detection, the third type of biometric anti-counterfeiting detection, the fourth type of biometric anti-counterfeiting detection, ..., or the Nth type of biometric anti-counterfeiting detection, etc. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, step S108 and step S109 are respectively any two of the multiple different types of biometric anti-counterfeiting detections corresponding to the multiple images detected by biometrics. That is, the technical solution of the present application is not limited to realizing two different types of biometric anti-counterfeiting detections using a single recognition camera, and realizing two or more types of biometric anti-counterfeiting detections using a single recognition camera is also within the scope of protection of the present application.

[0126] In the second embodiment described above, it is explained that before performing corresponding biometric identification on an image that passes biometric detection, corresponding biometric anti-counterfeiting detection needs to be performed to prevent non-biological objects carrying the corresponding type of biometrics from conducting identification attacks, thereby improving the security and reliability of biometric identification.

[0127] like Figure 3 As shown, in some embodiments, when the image acquired by the recognition camera fails to pass the steps such as biometric detection, biometric anti-counterfeiting detection and / or biometric recognition, the shooting parameters of the recognition camera used to acquire the image can be updated according to the acquired image, and the recognition camera can be controlled to acquire a new image with the updated shooting parameters to re-execute the steps such as biometric detection, biometric anti-counterfeiting detection and / or biometric recognition, so as to cyclically execute the method of realizing multiple biometric recognitions based on a single camera, and determine whether to terminate the cyclic execution of the method of realizing multiple biometric recognitions based on a single camera according to the corresponding number of cycles.

[0128] Since the initial values ​​of the first shooting parameter and the second shooting parameter are set based on the general scenario of obtaining the corresponding type of biometric image, however, the actual usage scenario may be different from the assumed general scenario, resulting in the first image or the second image being obtained because the image quality is not as good as expected rather than the biometrics being unable to pass the biometric detection, biometric anti-counterfeiting detection and / or biometric recognition. In this case, misjudgment may occur, resulting in a bad user experience. However, the difference between the actual scenario and the assumed scenario can be obtained by performing a quality analysis on the first and second images that have been obtained. Accordingly, updating the values ​​of the first and second shooting parameters can improve the quality of the re-acquired first and second images, thereby having the beneficial effect of reducing misjudgments.

[0129] Perform the following steps based on how the image performs at each step in the biometric identification process.

[0130] Step S110: updating a first shooting parameter according to the first image.

[0131] In step S110 , the method for updating the first shooting parameter may be determined based on the step in which the first image cannot be biometrically identified.

[0132] For example, if the first image is detected as a first-type biometric image, the first shooting parameter is updated according to the image data of the area where the first-type biometric is located in the first image. The fact that the first image can be detected as a first-type biometric image means that the first-type biometric is already in the first image. In this case, the failure to pass the corresponding first-type biometric anti-counterfeiting detection or first-type biometric recognition means that the image quality of the area where the first-type biometric is located in the image is insufficient. At this time, updating the first shooting parameter according to the image data of the area where the first-type biometric is located can more specifically improve the image quality of the first-type biometric in the first image obtained after the update.

[0133] For example, if the first image is not a first-class biometric image, the first shooting parameter is updated according to the image data of the first image. If the first image is not detected as a first-class biometric image, it means that there is no first-class biometric feature in the first image, or the first-class biometric feature is not clear enough. At this time, updating the first shooting parameter according to the image data of the entire first image can more specifically improve the overall image quality of the updated first image so that the first-class biometric feature, if present, can be detected, thereby reducing misjudgment caused by image quality.

[0134] Step S111: updating the second shooting parameter according to the second image.

[0135] Similarly, the second shooting parameter can be updated in a manner determined by the steps in which the second image cannot be biometrically identified. For example, if the second image is a second-type biometric feature image, the second shooting parameter is updated according to the image data of the area where the second-type biometric feature is located in the second image. If the second image is not a second-type biometric feature image, the second shooting parameter is updated according to the image data of the second image.

[0136] For example, the image may be analyzed by an image analysis algorithm to obtain possible quality problems of the image, such as underexposure, overexposure, out-of-focus blur, etc., and the corresponding values ​​of the first shooting parameter and the second shooting parameter may be updated accordingly.

[0137] As mentioned above, a single camera may also be used to sequentially acquire the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple types of biometrics in the same round. Correspondingly, the corresponding first shooting parameter, the second shooting parameter, the third shooting parameter, the fourth shooting parameter, ..., the Nth shooting parameter may be updated according to the reasons why the above-mentioned different images cannot complete the recognition. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, steps S110 and S111 perform updates on any two of the multiple shooting parameters corresponding to the multiple images for different types of biometrics. That is, the technical solution of the present application is not limited to realizing the update of two shooting parameters corresponding to different types of biometrics, and a single recognition camera is used to realize the update of more than two shooting parameters corresponding to different types of biometrics.

[0138] Specifically, in each step of the image in the biometric identification process, for the relevant steps of biometric detection, when it is detected that the first image is not a first-type biometric image and the second image is not a second-type biometric image, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image, that is, step S110 and step S111 are executed. It should be understood that the embodiment of the present application only takes the first image and the second image for different types of biometric identification as an example. As mentioned above, a single camera can also be used to sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., which are required for multiple different types of biometric identification in the same round. In this case, it is possible to sequentially detect whether N different images are biometric images of the corresponding type, until it is detected that N images are not biometric images of the corresponding type, and there is no suitable image in the acquired images to continue the corresponding type of biometric identification, but it is impossible to determine which type of biometrics the target object may use for identification. In order to reduce the misjudgment caused by the quality of the captured image, at this time, N shooting parameters can be updated according to the N images, and then N images can be correspondingly obtained again for cyclic biometric detection.

[0139] For the steps related to the biometric anti-counterfeiting detection, when the first image fails to pass the first type of biometric anti-counterfeiting detection, the first shooting parameter is updated according to the first image, that is, step S110 is executed. Since the first image has been detected as the first type of biometric image at this time, it means that the target object is currently using the first type of biometric for identification with a high probability, and it may be that the image quality is not enough to pass the first type of biometric anti-counterfeiting detection. In this case, the first shooting parameter can be updated according to the first image to improve the image quality of the acquired first type of biometric to reduce misjudgment. When the second image fails to pass the second type of biometric anti-counterfeiting detection, the second shooting parameter is updated according to the second image, that is, step S111 is executed. Since the second image has been detected as the second type of biometric image at this time, it means that the target object is currently using the second type of biometric for identification with a high probability, and it may be that the image quality is not enough to pass the second type of biometric anti-counterfeiting detection. In this case, the second shooting parameter can be updated according to the second image to improve the image quality of the second type of biometric to reduce misjudgment.

[0140] For the related steps of biometric identification, when the first recognition result is that the first type of biometric identification fails, the first shooting parameter is updated according to the first image, that is, step S110 is executed. Since the first image has been detected as a first type of biometric image at this time, as mentioned above, in this case, the first shooting parameter can be updated according to the first image to improve the image quality of the acquired first type of biometric to reduce misjudgment. Optionally, when the first recognition result is that the first type of biometric identification fails, the corresponding multiple shooting parameters can also be synchronously updated according to the multiple images taken for different types of biometrics, which can be regarded as starting a complete round of shooting of multiple images. For example, the first shooting parameter is synchronously updated according to the first image and the second shooting parameter is updated according to the second image, that is, step S110 and step S111 are synchronously executed, Figure 3 The optional synchronous operation of updating the second shooting parameter according to the second image is indicated by a dotted line. Similarly, when the second recognition result is a failure of the second type of biometric recognition, the second shooting parameter can be updated according to the second image, that is, step S111 is executed; or the corresponding multiple shooting parameters can be updated synchronously according to the multiple images taken for different types of biometrics, which can be regarded as the beginning of a complete round of shooting of multiple images. For example, the first shooting parameter is updated synchronously according to the first image and the second shooting parameter is updated according to the second image, that is, step S110 and step S111 are executed synchronously, Figure 3 In the figure, the optional synchronous operation of updating the first shooting parameter according to the first image is indicated by a dotted line.

[0141] It can be understood that when the first shooting parameter is updated, step S101 needs to be re-executed with the updated first shooting parameter to obtain the updated first image and cache it in the first cache space, and the updated first image is read from the first cache space to execute step S103 accordingly, and then detect whether the updated first image is a first-class biometric image. When it is detected that the updated first image is a first-class biometric image, step S108 is executed accordingly to perform a first-class biometric anti-counterfeiting detection on the updated first image, and when the updated first image passes the first-class biometric anti-counterfeiting detection, step S104 is executed accordingly to identify the updated first image to obtain the corresponding first recognition result. When the updated first image still cannot recognize the recognition object, the method of realizing multiple biometric recognition based on a single camera is cyclically executed by repeatedly executing step S110.

[0142] Similarly, when the second shooting parameter is updated, step S102 needs to be re-executed with the updated second shooting parameter to obtain the updated second image and cache it in the second cache space, and the updated second image is read from the second cache space to execute step S105 accordingly, thereby detecting whether the updated second image is a second-category biometric image. When it is detected that the updated second image is a second-category biometric image, step S109 is executed accordingly to perform a second-category biometric anti-counterfeiting detection on the updated second image, and when the updated second image passes the second-category biometric anti-counterfeiting detection, step S106 is executed accordingly to identify the updated second image to obtain a corresponding second recognition result. When the updated second image still cannot recognize the object to be recognized, step S111 is repeatedly executed to implement a cyclic execution of the method for realizing multiple biometric recognitions based on a single camera.

[0143] In some embodiments, when step S110 and / or step S111 are repeatedly executed, the number of cycles of the method for implementing multiple biometrics based on a single camera can be obtained by recording the number of times step S110 and step S111 are repeatedly executed, so as to determine whether to terminate the cyclic execution of the method for implementing multiple biometrics based on a single camera according to the corresponding number of cycles. Specifically, when the number of cycles reaches a preset number and the image obtained by the recognition camera still cannot pass the biometric recognition, the recognition camera, the recognition module or the electronic device where the recognition camera is located can be controlled to stop working, thereby terminating the cyclic execution of the method for implementing multiple biometrics based on a single camera.

[0144] Please see Figure 4 , which is a flow chart of a method for implementing multiple biometrics based on a single camera provided in the third embodiment of the present application. In the third embodiment, before controlling the recognition camera to acquire the first image and the second image, step S112 is also performed.

[0145] Step S112, driving the light source to turn on.

[0146] In step S112, the light source is used to provide lighting for the recognition camera to acquire images. In the present application, the light source emits infrared light when providing lighting, so that when the recognition camera is an infrared camera, the light source is used to improve the lighting conditions of the recognition environment where the recognition camera is located, thereby improving the imaging effect when the infrared camera acquires infrared images. Correspondingly, when the recognition camera is a visible light camera, the light source provides the lighting environment required by the visible light camera when providing lighting, so as to improve the imaging effect when the visible light camera acquires visible light images. In other words, the lighting environment provided by the light source corresponds to the type of recognition camera, and is used to improve the imaging effect when the recognition camera acquires images.

[0147] In the third embodiment, after the recognition camera acquires the first image and the second image, the light source is driven to be turned off, and before the recognition camera is controlled again to acquire the first image and / or the second image due to updating the first shooting parameter and / or the second shooting parameter, the light source is driven to be turned on again to save energy. Before the recognition camera is controlled to acquire the first image and the second image, step S113 is also performed.

[0148] Step S113, sensing whether there is a target object within a preset detection range.

[0149] When the target object is detected within the preset detection range, step S114 is executed.

[0150] Step S114, the driver recognizes that the camera is powered on.

[0151] In step S114, after the recognition camera is powered on, step S101 is executed. When there is no target object in the preset detection range, step S114 is not executed to power on the recognition camera, that is, the method of realizing multiple biometrics based on a single camera is not executed.

[0152] Please see Figure 5 and Figure 6 , Figure 5 This is a first structural diagram of a module for implementing multiple biometrics based on a single camera provided in an embodiment of the present application. Figure 6 A second structural diagram of a module for implementing multiple biometrics based on a single camera provided in an embodiment of the present application. The present application also provides a module 100 for implementing multiple biometrics based on a single camera. The module 100 for implementing multiple biometrics based on a single camera includes an identification camera 1, a control module 2, a first detection module 3, a first identification module 4, a second detection module 5, a second identification module 6, and a judgment module 7.

[0153] The recognition camera 1 is used to obtain an image according to the set shooting parameters. The types of the recognition camera 1 include but are not limited to infrared cameras, visible light cameras, etc. Optionally, the recognition camera 1 is an infrared camera. The image obtained by the infrared camera corresponds to an infrared image.

[0154] The control module 2 is used to control the recognition camera 1 to acquire the first image with the first shooting parameter and to acquire the second image with the second shooting parameter. The control module 2 can preset the initial value of the first shooting parameter. Before the recognition camera 1 acquires the first image for the first time, the recognition camera 1 is set according to the initial value of the first shooting parameter preset by the control module 2, so that the recognition camera 1 acquires the first image with the initial value of the first shooting parameter. Similarly, the control module 2 can preset the initial value of the second shooting parameter. Before the recognition camera 1 acquires the second image for the first time, the recognition camera 1 is set according to the initial value of the second shooting parameter preset by the control module 2, so that the recognition camera 1 acquires the second image with the initial value of the second shooting parameter. Taking face recognition and palm recognition as two types of biometrics as examples, when the first image acquired by the recognition camera 1 is used for face recognition, the first shooting parameter is configured as a recognition camera parameter that is conducive to acquiring a higher quality face image. Similarly, when the first image acquired by the recognition camera 1 is used for palm recognition, the first shooting parameter can also be configured as a recognition camera parameter that is conducive to acquiring a higher quality palm image. The second shooting parameter and the first shooting parameter are shooting parameters required for different types of biometrics. For example, if the first shooting parameter is used to obtain a face image, the second shooting parameter is used to obtain a palm image. If the first shooting parameter is used to obtain a palm image, the second shooting parameter is used to obtain a face image.

[0155] The control module 2 controls the recognition camera 1 to sequentially acquire the first image with the first shooting parameter and the second image with the second shooting parameter. The first shooting parameter and the second shooting parameter are different shooting parameters, and images for different types of biometrics are acquired accordingly. Thus, images for different types of biometrics can be acquired sequentially in the same round of shooting by a single recognition camera 1, thereby saving the cost of the recognition camera 1.

[0156] It should be understood that the first shooting parameter, the second shooting parameter, the third shooting parameter, the fourth shooting parameter, ..., the Nth shooting parameter can also be set for three, four or more different types of biometric recognition scenarios, so that the control module 2 can serially control the single recognition camera 1 to obtain the first image, the second image, the third image, the fourth image, ..., the Nth image with the first shooting parameter, the second shooting parameter, the third shooting parameter, the fourth shooting parameter, ..., the Nth shooting parameter for subsequent multiple different types of biometric recognition. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, the first image and the second image obtained by the recognition camera 1 can correspond to any two of the multiple images corresponding to different types of biometric recognition obtained with more than three different shooting parameters. That is, the module 100 for realizing multiple types of biometric recognition based on a single camera in the present application is not limited to realizing two different types of biometric recognition using a single recognition camera 1, and realizing more than two different types of biometric recognition with a single recognition camera 1 is also within the scope of protection of the present application.

[0157] The first detection module 3 is configured to detect whether the first image is a first type of biometric image. The second detection module 5 is configured to detect whether the second image is a second type of biometric image. After the recognition camera 1 acquires the first image and the second image, the first detection module 3 calls the detection algorithm corresponding to the first type of biometric image to perform the detection of the first type of image on the first image. For example, when the first type of biometric image is a facial feature image, the detection algorithm called by the first detection module 3 is a facial feature detection algorithm. The first detection module 3 detects whether the first image contains facial features by using a facial feature detection algorithm. The facial feature detection algorithm includes but is not limited to the Eigenfaces algorithm, the HaarCascade algorithm, a face algorithm based on a convolutional neural network, an algorithm based on a facial recognition library, and the like. In the present application, the facial feature detection algorithm is used to detect whether there is a face in the first image acquired by the recognition camera 1. If a face is detected in the first image, it means that there is a target object to be identified and the target object is willing to use face recognition; if no face is detected in the first image, it means that there is no target object to be identified or the target object is unwilling to use face for biometric recognition. At this time, it is necessary to switch to another type of biometric detection. Similarly, when the first type of biometric image is a palm feature image, the detection algorithm called by the first detection module 3 is a palm feature detection algorithm. The first detection module 3 detects whether the first image contains palm features through the palm feature detection algorithm. The palm feature detection algorithm can be a combination of an algorithm based on the palm_det database, a palm vein structure enhancement algorithm based on edge detection weighted guided filtering, and a fuzzy unsharp mask palm print enhancement algorithm based on a block model. In the present application, the palm feature detection algorithm is used to detect whether there is a palm in the first image acquired by the recognition camera 1. If a palm is detected in the first image, it means that there is a target object to be identified and the target object is willing to use palm recognition; if no palm is detected in the first image, it means that there is no target object to be identified, or the target object is unwilling to use palm for biometric recognition. At this time, it is necessary to switch to another type of biometric detection.

[0158] When the first detection module 3 detects that the first image is a first type of biometric image, the first recognition module 4 is used to perform the first type of biometric recognition on the first image to obtain a first recognition result. The first recognition result is that the first type of biometric recognition fails or the first type of biometric recognition passes. The first recognition module 4 performs recognition of the first type of image on the first image by calling the recognition algorithm corresponding to the first type of biometric recognition. For example, when the first image detects a face through the palm feature detection algorithm, the first type of biometric recognition is face recognition, and the corresponding recognition algorithm is a face recognition algorithm. The first recognition result is that face recognition fails or face recognition passes. The first recognition module 4 uses the face recognition algorithm and a preset biometric template to perform face recognition on the first image, and then obtains a first recognition result for determining whether the first image matches the preset biometric template. The face recognition algorithm includes but is not limited to recognizing faces by using the Haar features of the image obtained by the Adaboost algorithm combined with the Haar Cascade algorithm, recognizing faces by using a deep convolutional neural network model obtained based on CNN training, and the like. Similarly, when the palm is detected in the first image through the palm feature detection algorithm, the first type of biometric identification is palm recognition, and the corresponding identification algorithm is the palm recognition algorithm. The first identification result is palm recognition failure or palm recognition pass. The first identification module 4 uses the palm recognition algorithm in combination with the preset biometric template to perform palm recognition on the first image, and then obtains a first recognition result for determining whether the first image matches the preset biometric template. Among them, the palm recognition algorithm can be a fusion recognition algorithm. The biometric template can be a palm information identification template of several identification objects, such as palm prints with features such as main lines, wrinkle textures, ridge ends, bifurcation points, and subcutaneous venous blood vessel pattern features of the palm.

[0159] When the first detection module 3 detects that the first image is not a first-category biometric image, the second detection module 5 detects whether the second image is a second-category biometric image. Similar to the above-mentioned first detection module 3, the second detection module 5 performs detection of the second-category biometric image on the second image by calling the detection algorithm corresponding to the second-category biometric image. The second-category biometric image and the first-category biometric image are biometric images required for different categories of biometric detection. For example, if the first-category biometric image is a facial feature image, the second-category biometric image is a palm feature image, and the detection algorithm called by the second detection module 5 is a palm feature detection algorithm. If the first-category biometric image is a palm feature image, the second-category biometric image is a facial feature image, and the detection algorithm called by the second detection module 5 is a facial feature detection algorithm.

[0160] It should be understood that a single recognition camera 1 can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple types of biometrics in the same round, and sequentially detect whether the first image, the second image, the third image, the fourth image, ..., the Nth image, etc. are the corresponding first type of biometric image, the second type of biometric image, the third type of biometric image, the fourth type of biometric image, ..., the Nth type of biometric image, until it is detected that one of the images is a corresponding type of biometric image, and then the corresponding type of biometric recognition is performed based on the image, so that the biometric detection can be switched to the biometric type that meets the requirements of the target object, so that a single recognition camera can be adapted to multiple different types of biometrics. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, the first detection module 3 and the second detection module 5 can be used to perform any two biometric detections of the multiple biometric detections corresponding to the above multiple images. That is, the technical solution of the present application is not limited to realizing two different types of biometric detection using a single recognition camera. Using a single recognition camera to realize more than two different types of biometric detection is also within the scope of protection of the present application.

[0161] When the second detection module 5 detects that the second image is a second type of biometric image, the second recognition module 6 is used to perform a second type of biometric recognition on the second image to obtain a second recognition result. The second recognition result is that the second type of biometric recognition fails or the second type of biometric recognition passes. Similar to the above-mentioned first recognition module 4, when the second image is a second type of biometric image, the second recognition module 6 performs the second type of biometric recognition of this type of image on the second image by calling the recognition algorithm corresponding to the second type of biometric recognition. The second type of biometric recognition and the first type of biometric recognition are different types of biometric recognition. For example, if the first type of biometric recognition is face recognition, the second type of biometric recognition is palm recognition, and the recognition algorithm called by the second recognition module 6 is a palm recognition algorithm. If the first type of biometric recognition is palm recognition, the second type of biometric recognition is face recognition, and the recognition algorithm called by the second recognition module 6 is a face recognition algorithm.

[0162] It should be understood that a single recognition camera can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple different types of biometrics in the same round, and after detecting that one of the first image, the second image, the third image, the fourth image, ..., the Nth image, etc. is a corresponding type of biometric image, switch to the corresponding type of biometric recognition for the image, thereby achieving adaptation to multiple different types of biometrics. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, the first detection module 3 and the second detection module 5 can be used to implement any two of the multiple biometric detections corresponding to the above multiple images. Correspondingly, the first recognition module 4 and the second recognition module 6 respectively perform corresponding types of biometric recognition on the images after the biometric detection by the first detection module 3 and the second detection module 5, which can be any two of the multiple biometric recognitions corresponding to the above multiple images. That is, the module 100 for realizing multiple biometrics based on a single camera in the present application is not limited to realizing two different types of biometrics using a single recognition camera 1. Using a single recognition camera 1 to realize more than two different types of biometrics is also within the scope of protection of the present application.

[0163] When the first recognition result is that the first type of biometric recognition is passed, or when the second recognition result is that the second type of biometric recognition is passed, the judgment module 7 is used to judge that the biometric recognition is passed.

[0164] In this embodiment, the module 100 for implementing multiple biometrics based on a single camera also includes a first cache space 8 and a second cache space 9. The first cache space 8 is configured to cache a first image. The second cache space 9 is configured to cache a second image. Among them, after the control module 2 controls the recognition camera 1 to obtain the first image with the set first shooting parameter, the first image is cached in the first cache space 8 so as to save the first image and quickly retrieve it in subsequent steps. The first cache space 8 can be a cache space in a device with a storage function in the recognition camera 1, such as a memory. The first cache space 8 can also be a storage space in a recognition module or electronic device including the recognition camera 1. Similarly, after the control module 2 controls the recognition camera 1 to obtain the second image with the second shooting parameter, the second image is cached in the second cache space 9 so as to save the second image and quickly retrieve it in subsequent steps. The second cache space 9 can be a cache space in a device with a storage function in the recognition camera 1, such as a memory. The second cache space 9 can also be a storage space in a recognition module or electronic device including the recognition camera 1. In this embodiment, the first cache space 8 and the second cache space 9 may be different cache spaces in the same device, or may be cache spaces in different devices.

[0165] In this embodiment, the module 100 for realizing multiple biometric identification based on a single camera also includes a first anti-counterfeiting module 10 and a second anti-counterfeiting module 11. The first anti-counterfeiting module 10 is used to perform a first type of biometric anti-counterfeiting detection on the first image. The second anti-counterfeiting module 11 is used to perform a second type of biometric anti-counterfeiting detection on the second image. Among them, the first type of biometric anti-counterfeiting detection is that the first anti-counterfeiting module 10 performs a biometric anti-counterfeiting detection on the first image by calling an anti-counterfeiting detection algorithm and obtains a first type of biometric anti-counterfeiting detection result. The first type of biometric anti-counterfeiting detection result is that the first type of biometric anti-counterfeiting detection fails or the first type of biometric anti-counterfeiting detection passes.

[0166] For example, when a face is detected in the first image through a facial feature detection algorithm, the first type of biometric anti-counterfeiting detection includes facial feature anti-counterfeiting detection. The corresponding anti-counterfeiting detection algorithm is a facial feature anti-counterfeiting detection algorithm. The first anti-counterfeiting module 10 performs facial feature anti-counterfeiting detection on the first image by calling the facial feature anti-counterfeiting detection algorithm and obtains the first type of biometric anti-counterfeiting detection result to ensure that the acquired first image is not taken by a non-biological object disguised as a photo, video, or protective gear with facial features, thereby improving the safety and reliability of subsequent recognition of the first image. Facial feature anti-counterfeiting detection algorithms include but are not limited to algorithms based on stereo vision and optical flow methods, deep convolutional neural network models obtained based on CNN training to detect unnatural features in facial images, etc.

[0167] Similarly, when the palm is detected in the first image through the palm feature detection algorithm, the first type of biometric anti-counterfeiting detection is palm feature anti-counterfeiting detection. The corresponding anti-counterfeiting detection algorithm is the palm feature anti-counterfeiting detection algorithm. The first anti-counterfeiting module 10 performs palm feature anti-counterfeiting detection on the first image by calling the palm feature anti-counterfeiting detection algorithm to ensure that the acquired first image is not taken by a non-biological object disguised as a photo, video, or protective gear carrying palm features, thereby improving the safety and reliability of subsequent recognition of the first image. The palm feature anti-counterfeiting detection algorithm includes but is not limited to an image quality assessment algorithm, a deep learning model obtained based on CNN training, a feature extraction algorithm based on discrete cosine transform, local binary pattern, Gabor filtering, etc., and a feature fusion algorithm.

[0168] Similar to the first anti-counterfeiting module 10, the second anti-counterfeiting module 11 performs a second type of biometric anti-counterfeiting detection on the second image by calling an anti-counterfeiting detection algorithm and obtains a second type of biometric anti-counterfeiting detection result. The second type of biometric anti-counterfeiting detection result is a failure of the second type of biometric anti-counterfeiting detection or a pass of the second type of biometric anti-counterfeiting detection. The second type of biometric anti-counterfeiting detection and the first type of biometric anti-counterfeiting detection are different biometric anti-counterfeiting detections corresponding to different types of images that pass the biometric detection.

[0169] For example, if the first image is detected as not a face feature image by the first detection module 3 calling the face feature detection algorithm, and the second image is detected as a palm by the second detection module 5 calling the palm feature detection algorithm, the second type of biometric anti-counterfeiting detection is palm feature anti-counterfeiting detection, and the corresponding anti-counterfeiting detection algorithm called by the second anti-counterfeiting module 11 is the palm feature detection algorithm. If the first image is detected as not a palm feature image by the first detection module 3 calling the palm feature detection algorithm, and the second image is detected as a face by the second detection module 5 calling the face feature detection algorithm, the second type of biometric anti-counterfeiting detection is face feature anti-counterfeiting detection, and the corresponding anti-counterfeiting detection algorithm called by the second anti-counterfeiting module 11 is the face feature detection algorithm.

[0170] When the first anti-counterfeiting module 10 detects that the first image passes the first type of biometric anti-counterfeiting detection, the first recognition module 4 performs the first type of biometric recognition on the first image. When the second anti-counterfeiting module 11 detects that the second image passes the second type of biometric anti-counterfeiting detection, the second recognition module 6 performs the second type of biometric recognition on the second image.

[0171] It should be understood that a single recognition camera can also sequentially obtain the first image, the second image, the third image, the fourth image, ..., the Nth image, etc., required for multiple types of biometric identification in the same round, and detect the biometric type of the above image, and before performing the corresponding type of biometric identification, the image is subjected to the corresponding first type of biometric anti-counterfeiting detection, the second type of biometric anti-counterfeiting detection, the third type of biometric anti-counterfeiting detection, the fourth type of biometric anti-counterfeiting detection, ..., or the Nth type of biometric anti-counterfeiting detection, etc. Since "first", "second", "third", "fourth", etc. are only used to distinguish different types of description objects, and do not necessarily represent a specific order or sequence. Therefore, the first anti-counterfeiting module 10 and the second anti-counterfeiting module 11 are respectively used to perform any two of the corresponding multiple different types of biometric anti-counterfeiting detection on the multiple images detected by the biometrics. That is, the technical solution of the present application is not limited to using a single recognition camera 1 to implement two different types of biometric anti-counterfeiting detection, and using a single recognition camera 1 to implement two or more types of biometric anti-counterfeiting detection is also within the scope of protection of the present application.

[0172] In some embodiments, the module 100 for implementing multiple biometrics based on a single camera may further include a shooting parameter update module 15. When the control module 2 controls the recognition camera 1 to obtain an image with various shooting parameters that cannot pass the biometrics, the shooting parameter update module 15 may update the shooting parameters in various situations where the biometrics cannot pass, and the control module then controls the recognition camera 1 to obtain a new image with the updated shooting parameters, and then controls different modules to re-execute corresponding steps to cyclically perform multiple biometrics based on a single camera. Specifically, for the biometric detection performed by the first detection module 3 and the second detection module 5, when the first detection module 3 detects that the first image is not a first-class biometric image and the second detection module 5 detects that the second image is not a second-class biometric image, the shooting parameter update module 15 is used to update the first shooting parameter according to the first image, and update the second shooting parameter according to the second image. For the biometric anti-counterfeiting detection performed by the first anti-counterfeiting module 10 and the second anti-counterfeiting module 11, when the first anti-counterfeiting module 10 detects that the first image does not pass the first-class biometric anti-counterfeiting detection, the shooting parameter update module 15 is used to update the first shooting parameter according to the first image. When the second anti-counterfeiting module 11 detects that the second image fails the second type of biometric anti-counterfeiting detection, the shooting parameter update module 15 is used to update the second shooting parameter according to the second image. For the biometric identification performed by the first identification module 4 and the second identification module 6, when the first identification result output by the first identification module 4 is that the first type of biometric identification fails, the shooting parameter update module 15 is used to update the first shooting parameter according to the first image. When the second detection module 5 first detects that the second image is not a second type of biometric identification feature image, and when the first identification result output by the first identification module 4 is that the first type of biometric identification fails, the shooting parameter update module 15 is used to update the first shooting parameter according to the first image, and update the second shooting parameter according to the second image. Similarly, when the second identification result output by the second identification module 6 is that the second type of biometric identification fails, the shooting parameter update module 15 is used to update the second shooting parameter according to the second image. When the first detection module 3 first detects that the first image is not a first type of biometric identification feature image, and when the second identification result output by the second identification module 6 is that the second type of biometric identification fails, the shooting parameter update module 15 is used to update the first shooting parameter according to the first image, and update the second shooting parameter according to the second image.

[0173] When the shooting parameter update module 15 updates the first shooting parameter, the recognition camera 1 needs to obtain the updated first image with the updated first shooting parameter and cache it in the first cache space 8. The first detection module 3 reads the updated first image from the first cache space 8 to detect whether the updated first image is a first-class biometric image. When the first detection module 3 detects that the updated first image is a first-class biometric image, the first anti-counterfeiting module 10 performs the first-class biometric anti-counterfeiting detection on the updated first image. When the updated first image passes the first-class biometric anti-counterfeiting detection, the first recognition module 4 recognizes the updated first image to obtain the corresponding first recognition result. When the updated first image still cannot pass the biometric recognition, the module 100 for realizing multiple biometric recognitions based on a single camera can be implemented by repeatedly updating the first shooting parameter. Similarly, when the shooting parameter update module 15 updates the second shooting parameter, the recognition camera 1 needs to obtain the updated second image with the updated second shooting parameter and cache it in the second cache space 9. The second detection module 5 reads the updated second image from the second cache space 9 to detect whether the updated second image is a second-class biometric image. When the second detection module 5 detects that the updated second image is a second type of biometric image, the second anti-counterfeiting module 11 performs a second type of biometric anti-counterfeiting detection on the updated second image. When the updated second image passes the second type of biometric anti-counterfeiting detection, the second recognition module 6 recognizes the updated second image to obtain a corresponding second recognition result. When the updated second image still fails to pass the biometric recognition, the method of realizing multiple biometric recognitions based on a single camera is cyclically executed by repeatedly updating the second shooting parameters.

[0174] In this embodiment, the control module 2 is further used to obtain the corresponding number of cycles of the module 100 for realizing multiple biometrics based on a single camera according to the updated first shooting parameter and / or second shooting parameter, so as to determine whether to terminate the cyclic execution of the module 100 for realizing multiple biometrics based on a single camera. Specifically, when the first shooting parameter and / or the second shooting parameter are repeatedly updated, the control module 2 obtains the number of cycles of the module 100 for realizing multiple biometrics based on a single camera by recording the number of repetitions of updating the first shooting parameter and updating the second shooting parameter respectively. When the number of cycles reaches the preset number of times, and the image acquired by the recognition camera 1 is still judged by the module 100 for realizing multiple biometrics based on a single camera to fail biometric recognition, the module 100 for realizing multiple biometrics based on a single camera can be controlled by the control module 2 to stop working, thereby terminating the cyclic execution of the module 100 for realizing multiple biometrics based on a single camera.

[0175] In this embodiment, the module 100 for realizing multiple biometrics based on a single camera further includes a light source 12, a driving module 13 and a sensor module 14. Among them, the light source 12 is used to provide lighting for the recognition camera 1 to obtain an image. The driving module 13 is used to drive the light source 12 to turn on. In this application, the light source 12 emits infrared light when providing lighting, so that when the recognition camera 1 is an infrared camera, the light source 12 is used to improve the lighting conditions of the recognition environment where the recognition camera 1 is located, thereby improving the imaging effect when the infrared camera obtains an infrared image. Correspondingly, when the recognition camera 1 is a visible light camera, the light source 12 provides the lighting environment required by the visible light camera when providing lighting, so as to improve the imaging effect when the visible light camera obtains a visible light image. In other words, the lighting environment provided by the light source 12 corresponds to the type of the recognition camera 1, and is used to improve the imaging effect when the recognition camera 1 obtains an image. Among them, the sensor module 14 is used to sense whether there is a target object within a preset detection range. When the sensor module 14 senses that there is a target object within the preset detection range, the driving module 13 is also used to drive the recognition camera 1 to power on.

[0176] It should be understood that the control module 2, the first detection module 3, the first identification module 4, the second detection module 5, the second identification module 6, the first anti-counterfeiting module 10, the second anti-counterfeiting module 11, the shooting parameter update module 15 and the judgment module 7 can be program modules that implement corresponding functions, or hardware with corresponding functions, such as: chips, modules, etc., or modules that implement corresponding functions through any combination of software and firmware. Any two or more of the control module 2, the first detection module 3, the first identification module 4, the second detection module 5, the second identification module 6, the first anti-counterfeiting module 10, the second anti-counterfeiting module 11, the shooting parameter update module 15 and the judgment module 7 can also be integrated into the same hardware, such as: chips, modules, etc.

[0177] Please see Figure 7 , which is a schematic diagram of a module for implementing multiple biometrics based on a single camera according to an embodiment of the present application. Figure 7 As shown, the present application also provides a module 100 for implementing multiple biometrics based on a single camera. The module 100 for implementing multiple biometrics based on a single camera includes an identification camera 1 and a processing device 200. The identification camera 1 has been described in detail in the previous text and will not be repeated here. The processing device 200 includes one or more data processing chips. Specifically, the processing device 200 includes a memory 901 and one or more processors 902. Among them, one or more processors 902 are used to run computer program instructions in the memory 901 to implement a method for implementing multiple biometrics based on a single camera.

[0178] The memory 901 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 901 may be an internal storage unit of a computer device, such as a hard disk of a computer device. In other embodiments, the memory 901 may also be a storage device of an external computer device, such as a plug-in hard disk configured in a computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 901 may also include both an internal storage unit of a computer device and an external storage device. The memory 901 can not only be used to store application software and various types of data installed in a computer device, such as codes for implementing multiple biometric identification methods based on a single camera, etc., but can also be used to temporarily store data that has been output or is to be output.

[0179] Please see Figure 8 , which is a schematic diagram of an electronic device provided in an embodiment of the present application. The present application also provides an electronic device 1000. The electronic device 1000 may be, for example, a smart door lock, a subway gate, or other device that requires identification and verification of the user's identity. The electronic device 1000 includes a main body 200, and a module 100 for implementing multiple biometrics based on a single camera and disposed on the main body 200. The module 100 for implementing multiple biometrics based on a single camera has been described in detail in the previous text and will not be repeated here.

[0180] In this embodiment, the electronic device 1000 can have different states by judging whether the target object has passed the biometrics through the module 100 that implements multiple biometrics based on a single camera. Taking the electronic device 1000 as an example of a smart door lock, the electronic device 1000 is initially in a locked state. When the image obtained by a single recognition camera 1 in the module 100 that implements multiple biometrics based on a single camera determines that the target object has passed the biometrics, the electronic device 1000 switches from a locked state to an unlocked state. When the image obtained by a single recognition camera 1 in the module 100 that implements multiple biometrics based on a single camera cannot pass the biometrics, the electronic device 1000 can indicate the first information used to prompt the target object that the biometrics have not passed this time and maintain the locked state. For example, the information can be indicated by a prompting device (not shown) provided by the electronic device 1000. The way in which the prompting device indicates information includes but is not limited to light, sound, etc. Whenever the module 100 for implementing multiple biometrics based on a single camera updates the first shooting parameter and / or the second shooting parameter, the electronic device 1000 indicates through the prompting device the second information for prompting the target object to reacquire the image, and the module 100 for implementing multiple biometrics based on a single camera acquires the image of the target object to perform biometrics cyclically. When the number of cycles of the module 100 for implementing multiple biometrics based on a single camera for cyclically performing biometrics reaches a preset number, and the module 100 for implementing multiple biometrics based on a single camera determines that the image acquired by the recognition camera 1 still cannot pass the biometrics, the electronic device 1000 indicates through the prompting device the third information for prompting the target object that cannot pass the biometrics. At this time, the control module 2 can be used to control the module 100 for implementing multiple biometrics based on a single camera to stop working, and control the electronic device 1000 to stop switching between different states.

[0181] In some feasible embodiments, when the electronic device 1000 indicates the first information or the second information through a prompt device, the number of prompts for the first information or the second information can be stored, and when the number of prompts reaches a preset number, the control module 2 can be used to control the module 100 for implementing multiple biometrics based on a single camera to stop working, and control the electronic device 1000 to stop switching between different states.

[0182] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0183] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer device may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0184] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0185] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0186] 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.

[0187] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0188] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0189] In the above embodiment, only one recognition camera is used, and images are acquired by the recognition camera under different shooting parameters, and different types of biometric recognition are adapted according to image features, so that one recognition camera can recognize multiple types of biometric features, thereby reducing the hardware cost of the camera. Moreover, one recognition camera also makes it easier for users to find the recognition area, which can improve the user experience.

[0190] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0191] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0192] The above examples are only preferred embodiments of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A method for realizing multiple biometrics based on a single camera, It is characterized in that Includes steps: Controlling the recognition camera to acquire a first image with a first shooting parameter; Controlling the recognition camera to acquire a second image with a second shooting parameter; detecting whether the first image is a first type of biometric image; When the first image is a first type of biometric feature image, performing first type of biometric feature recognition on the first image to obtain a first recognition result, the first recognition result being a failure in first type of biometric feature recognition or a passing of first type of biometric feature recognition; When the first image is not a first-category biometric image, detecting whether the second image is a second-category biometric image; When the second image is a second type of biometric feature image, performing second type of biometric feature recognition on the second image to obtain a second recognition result, the second recognition result being a failure in second type of biometric feature recognition or a pass in second type of biometric feature recognition; as well as When the first recognition result is that the first type of biometric recognition is passed or when the second recognition result is that the second type of biometric recognition is passed, it is determined that the biometric recognition is passed.

2. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that The first shooting parameter is used to obtain a face image, the first type of biometric image is a face feature image, and the first type of biometric recognition is face recognition; the second shooting parameter is used to obtain a palm image, the second type of biometric image is a palm feature image, and the second type of biometric recognition is palm recognition.

3. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that The first shooting parameter is used to obtain a palm image, the first type of biometric image is a palm feature image, and the first type of biometric recognition is palm recognition; the second shooting parameter is used to obtain a face image, the second type of biometric image is a face feature image, and the second type of biometric recognition is face recognition.

4. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that The controlling the recognition camera to acquire the first image with the first shooting parameter and the controlling the recognition camera to acquire the second image with the second shooting parameter are performed in series.

5. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that The first image is cached in a first cache space, and the second image is cached in a second cache space.

6. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that Also includes: When the first image is not a first-type biometric image and the second image is not a second-type biometric image, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image.

7. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that Also includes: When the first recognition result is that the first type of biometric recognition fails, updating the first shooting parameter according to the first image; or, When the first recognition result is a failure of the first type of biometric recognition, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image.

8. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that Also includes: When the second recognition result is that the second type of biometric recognition fails, updating the second shooting parameter according to the second image; or, When the second recognition result is a failure of second-type biometric recognition, the first shooting parameter is updated according to the first image, and the second shooting parameter is updated according to the second image.

9. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that Also includes: When the first image is a first type of biometric feature image, updating the first shooting parameter according to image data of a region where the first type of biometric feature is located in the first image; When the first image is not a first type of biometric image, updating the first shooting parameter according to image data of the first image; When the second image is a second type of biometric feature image, updating the second shooting parameter according to image data of a region where the second type of biometric feature is located in the second image; and When the second image is not a second type of biometric image, the second shooting parameter is updated according to image data of the second image.

10. The method for realizing multiple biometric identification based on a single camera as claimed in claim 1, It is characterized in that The recognition camera is an infrared camera, and the first image and the second image are infrared images.

11. A module that implements multiple biometrics based on a single camera. It is characterized in that include: Identify the camera, used to obtain images according to the set shooting parameters; A control module, used for controlling the recognition camera to acquire a first image with a first shooting parameter and to acquire a second image with a second shooting parameter; A first detection module, used to detect whether the first image is a first type of biometric image; A first recognition module, when the first image is a first type of biometric feature image, is used to perform first type of biometric feature recognition on the first image to obtain a first recognition result, wherein the first recognition result is a failure of the first type of biometric feature recognition or a passing of the first type of biometric feature recognition; a second detection module, for detecting whether the second image is a second type of biometric image when the first image is not a first type of biometric image; a second recognition module, when the second image is a second type of biometric feature image, for performing second type of biometric feature recognition on the second image to obtain a second recognition result, wherein the second recognition result is a failure in second type of biometric feature recognition or a pass in second type of biometric feature recognition; as well as The judgment module is used to judge that the biometric recognition is passed when the first recognition result is that the first type of biometric recognition is passed or when the second recognition result is that the second type of biometric recognition is passed.

12. The module for realizing multiple biometric identification based on a single camera as claimed in claim 11, It is characterized in that Also includes: A first cache space is configured to cache the first image; as well as The second cache space is configured to cache the second image.

13. The module for realizing multiple biometric identification based on a single camera as claimed in claim 11, It is characterized in that Also includes: The shooting parameter updating module is used to update the first shooting parameter according to the first image and / or update the second shooting parameter according to the second image in various different situations where biometric recognition cannot be passed.

14. An electronic device, It is characterized in that The electronic device comprises: the subject; and The module for realizing multiple biometric identifications based on a single camera as described in any one of claims 11 to 13 is arranged on the main body.

Citation Information

Patent Citations

  • Camera, electronic equipment and identity authentication method

    CN111103922A

  • Face image enhancement method based on multi-exposure face detection

    CN111131693A

  • Biological recognition integrated equipment and method

    CN115938018A