WO2020052283A1 - Electronic apparatus, and control method and control apparatus therefor, and computer-readable storage medium - Google Patents

Electronic apparatus, and control method and control apparatus therefor, and computer-readable storage medium Download PDF

Info

Publication number
WO2020052283A1
WO2020052283A1 PCT/CN2019/090018 CN2019090018W WO2020052283A1 WO 2020052283 A1 WO2020052283 A1 WO 2020052283A1 CN 2019090018 W CN2019090018 W CN 2019090018W WO 2020052283 A1 WO2020052283 A1 WO 2020052283A1
Authority
WO
WIPO (PCT)
Prior art keywords
infrared light
threshold
electronic device
depth image
control
Prior art date
Application number
PCT/CN2019/090018
Other languages
French (fr)
Chinese (zh)
Inventor
张学勇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020052283A1 publication Critical patent/WO2020052283A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Definitions

  • the present application relates to the field of consumer electronic products, and more particularly, to a method for controlling an electronic device, a control device for an electronic device, an electronic device, and a computer-readable storage medium.
  • the electronic device usually verifies whether the user has relevant usage rights according to the two-dimensional image of the face input by the user.
  • Embodiments of the present application provide a method for controlling an electronic device, a control device for an electronic device, an electronic device, and a computer-readable storage medium.
  • An embodiment of the present application provides a method for controlling an electronic device.
  • the electronic device includes a time-of-flight module and an infrared light camera.
  • the control method includes: controlling the infrared light camera to collect a current infrared light image of a human face; The current infrared light image is used for face authentication; the time-of-flight module is controlled to collect the current depth image of the face; the depth authentication is performed according to the current depth image; and when both the face authentication and the depth authentication pass , Controlling the electronic device to perform a predetermined operation.
  • An embodiment of the present application provides a control device for an electronic device.
  • the electronic device includes a time-of-flight module and an infrared light camera.
  • the control device includes a first control module, a first authentication module, a second control module, and a second authentication.
  • a module and a third control module configured to control the infrared light camera to collect a current infrared light image of a human face; a first authentication module configured to perform a face authentication based on the current infrared light image; a second control module Configured to control the time-of-flight module to collect a current depth image of a face; a second authentication module is configured to perform depth authentication based on the current depth image; and a third control module is configured to perform the face authentication and the depth authentication When all passes, the electronic device is controlled to perform a predetermined operation.
  • An embodiment of the present application provides an electronic device.
  • the electronic device includes a time-of-flight module, an infrared light camera, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in
  • the memory is configured to be executed by the one or more processors, and the program includes instructions for executing the control method of the electronic device according to the foregoing embodiment.
  • An embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium includes a computer program used in combination with an electronic device, and the computer program can be executed by a processor to complete the electronic device described in the foregoing embodiment. Control Method.
  • FIG. 1 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application
  • FIG. 2 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device according to some embodiments of the present application.
  • FIG. 4 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 5 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application.
  • FIG. 6 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 7 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 8 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application.
  • FIG. 9 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 10 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 11 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application.
  • FIG. 12 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application.
  • FIG. 13 is a schematic block diagram of an electronic device according to some embodiments of the present application.
  • FIG. 14 is a schematic diagram of a connection state between an electronic device and a computer-readable storage medium according to some embodiments of the present application.
  • FIG. 15 is a perspective structural diagram of a time-of-flight module according to some embodiments of the present application.
  • 16 is a schematic top view of a time-of-flight module according to some embodiments of the present application.
  • 17 is a schematic bottom view of a time of flight module according to some embodiments of the present application.
  • FIG. 18 is a schematic side view of a time-of-flight module according to some embodiments of the present application.
  • FIG. 19 is a schematic cross-sectional view of the time-of-flight module shown in FIG. 16 along the line XIX;
  • FIG. 20 is an enlarged schematic view of the XX part in the time-of-flight module shown in FIG. 19; FIG.
  • 21 is a schematic front view of a time-of-flight module of some embodiments of the present application when the flexible circuit board is not bent.
  • An electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40.
  • Control methods include:
  • 011 control the infrared light camera 40 to collect the current infrared light image of the human face;
  • 013 controlling the time-of-flight module 30 to collect a current depth image of a human face
  • the step of controlling the time-of-flight module 30 to collect the current depth image of the face is performed when the face authentication is passed; or the infrared light camera 40 is controlled to collect the current infrared light image of the face
  • the step (011) is performed when the deep authentication passes.
  • the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100.
  • 016 controlling the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process
  • the step of performing face authentication according to the current infrared light image includes:
  • 0122 determine a first similarity between the current infrared light image and the reference infrared light image
  • Control methods also include:
  • 017 controlling the time-of-flight module 30 to acquire a reference depth image of a human face during the encryption process
  • the steps (i.e. 014) for performing deep authentication based on the current depth image include:
  • 0142 determine the second similarity between the current depth image and the reference depth image
  • the step of controlling the electronic device 100 to perform a predetermined operation includes:
  • 0152 Control the electronic device 100 to unlock when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
  • control method further includes:
  • 018 The electronic device 100 is locked when the first similarity is larger than the third threshold and the second similarity is smaller than the fourth threshold; wherein the third threshold is larger than the first threshold and the fourth threshold is smaller than the second threshold.
  • control method further includes:
  • 019 identify target feature points in the current depth image
  • the reference depth image includes a first reference depth image and a second reference depth image.
  • the step of determining a second similarity between the current depth image and the reference depth image includes:
  • 01422 Determine a first sub-similarity between the first region and the first reference depth image
  • 01424 Determine a second sub-similarity between the second region and the second reference depth image
  • the second threshold includes a first sub-threshold and a second sub-threshold.
  • the first sub-threshold is greater than the second sub-threshold.
  • 01522 When the first sub similarity is greater than the first sub threshold, the second sub similarity is greater than the second sub threshold, and the second similarity is greater than the second threshold, the electronic device 100 is controlled to unlock.
  • the step (ie 011) of controlling the infrared light camera 40 to collect a current infrared light image of a human face includes:
  • Control methods also include:
  • a step of performing face authentication based on the current infrared light image (ie, 012), or a step of controlling the time of flight module 30 to collect a current depth image of the face (ie, 013) is entered.
  • the electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40.
  • the control device 10 includes a first control module 11, a first authentication module 12, a second control module 13, a second authentication module 14, and a third control module 15.
  • the first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face.
  • the first authentication module 12 is configured to perform face authentication according to the current infrared light image.
  • the second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face.
  • the second authentication module 14 is configured to perform depth authentication according to the current depth image.
  • the third control module 15 may be used to control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass.
  • the second control module 13 is configured to control the time-of-flight module 30 to collect the current depth image of the face when the face authentication is passed; or the first control module 11 is configured to control the depth of face authentication when the face authentication is passed.
  • the infrared light camera 40 collects a current infrared light image of a human face.
  • the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100.
  • the first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face while the electronic device 100 is in an unlocking process.
  • the second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face when the electronic device 100 is in an unlocking process.
  • the control device 10 further includes a fourth control module 16 and a fifth control module 17.
  • the first authentication module 12 includes a first authentication unit 122
  • the second authentication module 14 includes a second authentication unit 142
  • the third control module 15 includes a first control unit 152.
  • the fourth control module 16 is configured to control the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process.
  • the first authentication unit 122 is configured to determine a first similarity between the current infrared light image and the reference infrared light image.
  • the fifth control module 17 is configured to control the time-of-flight module 30 to collect a reference depth image of a human face during the encryption process.
  • the second authentication unit 142 is configured to determine a second similarity between the current depth image and the reference depth image.
  • the first control unit 152 is configured to control the electronic device 100 to be unlocked when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
  • control device 10 further includes a locking module 18.
  • the locking module 18 is configured to lock the electronic device 100 when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold.
  • the third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
  • the control device 10 further includes a first identification module 19 and a division module 20.
  • the second authentication unit 142 includes a first judgment sub-unit 1422 and a second judgment sub-unit 1424.
  • the first control unit 152 includes a control sub-unit 1522.
  • the first recognition module 19 is used to identify target feature points in the current depth image.
  • the dividing module 20 is configured to divide the current depth image into a first region and a second region according to the target feature points, and the first region includes the target feature points.
  • the first determining sub-unit 1422 is configured to determine a first sub-similarity between the first region and the first reference depth image.
  • the second determination sub-unit 1424 is configured to determine a second sub-similarity between the second region and the second reference depth image.
  • the control sub-unit 1522 is configured to control the electronic device 100 to unlock when the first sub-similarity is greater than the first sub-threshold, the second sub-similarity is greater than the second sub-threshold, and the second similarity is greater than the second threshold.
  • the first control module 11 further includes a second control unit 112.
  • the control device 10 further includes a second identification module 21 and a determination module 22.
  • the second control unit 112 is configured to control the infrared light camera 40 to collect multiple frames of current infrared light images.
  • the second recognition module 21 is configured to identify multiple target feature points in each frame of the current infrared light image.
  • the judging module 22 is configured to judge whether the plurality of target feature points are in a moving state according to a change in relative positions between the plurality of target feature points in the current infrared light image in multiple frames.
  • the first authentication module 12 is configured to perform face authentication based on the current infrared light image when a plurality of target feature points are in a moving state; or the second control module 13 is configured to control flight when a plurality of target feature points are in a moving state
  • the time module 30 collects a current depth image of a human face.
  • an electronic device 100 includes a time-of-flight module 30, an infrared light camera 40, one or more processors 50, a memory 60, and one or more programs.
  • one or more programs are stored in the memory 60 and configured to be executed by one or more processors 50, and the programs include instructions for executing the control method of the electronic device 100 according to any one of the embodiments described above.
  • a computer-readable storage medium 200 includes a computer program used in conjunction with the electronic device 100.
  • the computer program may be executed by the processor 50 to complete the control method of the electronic device 100 according to any one of the above embodiments.
  • an embodiment of the present application provides a method for controlling an electronic device 100.
  • the electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40.
  • Control methods include:
  • 011 control the infrared light camera 40 to collect the current infrared light image of the human face;
  • 013 controlling the time-of-flight module 30 to collect a current depth image of a human face
  • an embodiment of the present application provides a control device 10 of an electronic device 100.
  • the electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40.
  • the control device 10 includes a first control module 11, a first authentication module 12, a second control module 13, a second authentication module 14, and a third control module 15.
  • the control method according to the embodiment of the present application may be implemented by the control device 10 according to the embodiment of the present application.
  • the first control module 11 can be used to execute the method in 011
  • the first authentication module 12 can be used to execute the method in 012
  • the second control module 13 can be used to execute the method in 013
  • the second authentication module 14 can be used to execute 014
  • the third control module 15 can be used to execute the method in 015.
  • the first control module 11 may be configured to control the infrared light camera 40 to collect a current infrared light image of a human face.
  • the first authentication module 12 may be configured to perform face authentication according to the current infrared light image.
  • the second control module 13 may be used to control the time-of-flight module 30 to collect a current depth image of a human face.
  • the second authentication module 14 may be configured to perform depth authentication according to the current depth image.
  • the third control module 15 may be used to control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass.
  • the control method and control device 10 of the electronic device 100 only control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass, and the reliability of the identity authentication is high.
  • the electronic device 100 may be a mobile phone, a tablet computer, a smart watch, a smart bracelet, a smart wearable device, etc.
  • the embodiment of the present application is described by taking the electronic device 100 as a mobile phone as an example. It can be understood that the specifics of the electronic device 100 The form is not limited to mobile phones.
  • the electronic device 100 may include a case 101 and a bracket 102.
  • the time-of-flight module 30 and the infrared light camera 40 are disposed on the bracket 102.
  • the time-of-flight module 30, the infrared light camera 40, and the bracket 102 are all housed in the casing 101 and can extend from the casing 101.
  • the bracket 102 drives the time-of-flight module 30 and the infrared light camera 40 toward the casing 101 Move outside to extend the casing 101 to acquire an infrared light image or a depth image.
  • the infrared light camera 40 is configured to receive infrared light reflected by an object to be measured in an environment to form an infrared light image.
  • the infrared light camera 40 collects the current infrared light image of the human face and the time-of-flight module 30 collects the current depth image of the human face.
  • the order of the two may be arbitrary. For example, the infrared light camera 40 first collects the current infrared light image of the human face, and the time of flight module 30 then collects the current depth image of the human face; or the time of flight module 30 first collects the current depth image of the human face, and the infrared light camera 40 Then collect the current infrared light image of the human face.
  • time-of-flight module 30 may collect the current depth image of the human face while the electronic device 100 performs face authentication, or the infrared light camera 40 may collect the current infrared light image of the human face while the electronic device 100 performs depth authentication. To reduce the time to complete face authentication and deep authentication.
  • the step of controlling the time-of-flight module 30 to collect the current depth image of the face is performed when the face authentication is passed. That is to say, the second control module 13 can be used to control the time-of-flight module 30 to collect the current depth image of the face when the face authentication is passed.
  • the electronic device 100 first acquires a current infrared light image of a human face through the infrared light camera 40, and then performs face authentication according to the current infrared light image.
  • face authentication fails, the electronic device 100 does not need to collect the current depth image of the face through the time-of-flight module 30, and directly determines that the identity authentication has failed; when the face authentication passes, the electronic device 100 collects the time-of-flight module 30
  • the current depth image of the face, and depth authentication is performed based on the current depth image. Since the time-of-flight module 30 does not need to collect the current depth image of the face when the face authentication fails, it is beneficial to save energy consumption of the electronic device 100.
  • the step of controlling the infrared light camera 40 to collect the current infrared light image of the human face is performed when the depth authentication passes. That is to say, the first control module 11 may be configured to control the infrared light camera 40 to collect a current infrared light image of a human face when the depth authentication passes.
  • the electronic device 100 first collects the current depth image of the human face through the time-of-flight module 30, and then performs depth authentication according to the current depth image.
  • the electronic device 100 does not need to collect the current infrared light image of the human face through the infrared light camera 40, and directly determines that the identity authentication has failed.
  • the electronic device 100 collects the human face through the infrared light camera 40.
  • the current infrared light image and perform face authentication based on the current infrared light image.
  • the in-depth authentication fails, the infrared light camera 40 does not need to collect a current infrared light image of a human face, which is beneficial to saving power consumption of the electronic device 100.
  • the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100. That is to say, the user can directly obtain the corresponding operation authority on the electronic device 100 by performing face authentication and deep authentication, and does not need to manually control the electronic device 100 to perform a predetermined operation, which is beneficial to improving the user experience and has high security.
  • 016 controlling the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process
  • the step of performing face authentication according to the current infrared light image includes:
  • 0122 determine a first similarity between the current infrared light image and the reference infrared light image
  • Control methods also include:
  • 017 controlling the time-of-flight module 30 to acquire a reference depth image of a human face during the encryption process
  • the steps (i.e. 014) for performing deep authentication based on the current depth image include:
  • 0142 determine the second similarity between the current depth image and the reference depth image
  • the step of controlling the electronic device 100 to perform a predetermined operation includes:
  • 0152 Control the electronic device 100 to unlock when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
  • the first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face while the electronic device 100 is in an unlocking process.
  • the second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face when the electronic device 100 is in an unlocking process.
  • the control device 10 further includes a fourth control module 16 and a fifth control module 17.
  • the first authentication module 12 includes a first authentication unit 122
  • the second authentication module 14 includes a second authentication unit 142
  • the third control module 15 includes a first control unit 152.
  • the fourth control module 16 can be used to execute the method in 016, the fifth control module 17 can be used to execute the method in 017, the first authentication unit 122 can be used to execute the method in 0122, and the second authentication unit 142 can be used to execute the method in 0142 Method, the first control unit 152 may be configured to execute the method in 0152.
  • the fourth control module 16 can be used to control the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process.
  • the first authentication unit 122 may be configured to determine a first similarity between the current infrared light image and the reference infrared light image.
  • the fifth control module 17 may be used to control the time-of-flight module 30 to collect a reference depth image of a human face during the encryption process.
  • the second authentication unit 142 may be configured to determine a second similarity between the current depth image and the reference depth image.
  • the first control unit 152 may be configured to control the electronic device 100 to be unlocked when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
  • the electronic device 100 inputs the reference infrared light image and the reference depth image of the human face in advance during the encryption process, so as to serve as a comparison reference for performing face authentication and depth authentication during the unlocking process of the electronic device 100.
  • the reference depth image used as a comparison reference may include initial depth images of a human face at multiple different angles, and multiple initial depth images may be obtained after the user's head is deflected to different angles. For example, under the guidance of the content displayed on the display screen 103, the user performs deflection actions such as leftward and rightward deviations on the head, respectively. During the deflection process, the time-of-flight module 30 acquires multiple initial depth images of the human face. Finally, the reference depth image includes a reference depth image corresponding to the right side of the face, a reference depth image corresponding to the front side of the face, and a reference depth image corresponding to the left side of the face.
  • the reference depth image includes a reference depth image 1 corresponding to the right side of the face, a reference depth image 2 corresponding to the front side of the face, and a reference depth image 3 corresponding to the left side of the face.
  • the electronic device 100 determines the similarity between the current depth image and the reference depth image 1 sequentially or in parallel. Similarity between reference depth image 2 and similarity 3 between current depth image and reference depth image 3, and the maximum value among similarity 1, similarity 2, and similarity 3 is selected as the current depth image and reference Second similarity between depth images.
  • the electronic device 100 when determining the second similarity between the current depth image and the reference depth image, the electronic device 100 first detects the deflection direction and deflection angle of the human face relative to the electronic device 100 according to the current depth image. When the face is 90 degrees to the right of the electronic device 100, the electronic device 100 selects the reference depth image 1 as a reference depth image for comparison with the current depth image, that is, the electronic device 100 compares the current depth image with the reference depth image 1. The similarity 1 between them is the second similarity between the current depth image and the reference depth image.
  • the electronic device 100 selects the reference depth image 2 as a reference depth image for comparison with the current depth image, that is, the electronic The device 100 uses the similarity 2 between the current depth image and the reference depth image 2 as the second similarity between the current depth image and the reference depth image.
  • the electronic device 100 selects the reference depth image 3 as a reference depth image for comparison with the current depth image, that is, the electronic device 100 compares the current depth image with the reference depth
  • the similarity 3 between the images 3 serves as a second similarity between the current depth image and the reference depth image.
  • the reference infrared light image used as a reference for comparison may also include initial infrared light images of the human face at multiple different angles.
  • the acquisition method of the multiple initial infrared light images is similar to the acquisition method of the multiple initial depth images.
  • the manner of similarity is also similar to the manner of determining the second similarity, and will not be described in detail here.
  • the user when the user needs to perform face authentication and depth verification, the user can use any deflection angle for face authentication and depth authentication, without requiring the infrared light camera 40 and time-of-flight mode to be aligned strictly at an angle. Group 30 is conducive to improving user experience.
  • the electronic device 100 After determining the first similarity, the electronic device 100 performs face authentication according to the first similarity. After determining the second similarity, the electronic device 100 performs identity authentication according to the second similarity. Taking the first threshold value as 80% and the second threshold value as 70%, for example, when the first similarity is greater than 70% and the second similarity is greater than 70%, both face authentication and deep authentication pass, and the electronic device 100 performs a predetermined operation. . It should be noted that the first threshold and the second threshold are percentages of similarity, and the first threshold and the second threshold may be the same value or different values.
  • control method further includes:
  • 018 The electronic device 100 is locked when the first similarity is larger than the third threshold and the second similarity is smaller than the fourth threshold; wherein the third threshold is larger than the first threshold and the fourth threshold is smaller than the second threshold.
  • control device 10 further includes a locking module 18.
  • the locking module 18 may be used to perform the method in 018.
  • the locking module 18 may be used to lock the electronic device 100 when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold.
  • the third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
  • the first threshold is 80% and the second threshold is 70%.
  • the third threshold may be 95%
  • the fourth threshold may be 30%.
  • the first similarity is 99% and the second similarity is 20%, because the first similarity is greater than the third threshold, it indicates that the current infrared light image of the human face is highly similar to the reference infrared light image, and the second The similarity is much smaller than the fourth threshold, which indicates that the similarity between the current depth image of the face and the reference depth image is very low, it is likely that the non-owner uses a photo or other imitation to perform identity authentication.
  • the electronic device 100 will A locked state is entered to protect the information in the electronic device 100.
  • the settings of the first threshold, the second threshold, the third threshold, and the fourth threshold are not limited to the above examples.
  • the user can set the first threshold, the second threshold, the third threshold, and the fourth threshold according to his own needs. Or, before the electronic device 100 leaves the factory, the first threshold, the second threshold, the third threshold, and the fourth threshold have been set.
  • control method further includes:
  • 019 identify target feature points in the current depth image
  • the reference depth image includes a first reference depth image and a second reference depth image.
  • the step of determining a second similarity between the current depth image and the reference depth image includes:
  • 01422 Determine a first sub-similarity between the first region and the first reference depth image
  • 01424 Determine a second sub-similarity between the second region and the second reference depth image
  • the second threshold includes a first sub-threshold and a second sub-threshold.
  • the first sub-threshold is greater than the second sub-threshold.
  • 01522 When the first sub similarity is greater than the first sub threshold, the second sub similarity is greater than the second sub threshold, and the second similarity is greater than the second threshold, the electronic device 100 is controlled to unlock.
  • the control device 10 further includes a first identification module 19 and a division module 20.
  • the second authentication unit 142 includes a first judgment sub-unit 1422 and a second judgment sub-unit 1424.
  • the first control unit 152 includes a control sub-unit 1522.
  • the first identification module 19 may be used to execute the method in 019
  • the division module 20 may be used to execute the method in 020
  • the first judgment subunit 1422 may be used to execute the method in 01422
  • the second judgment subunit 1424 may be used to execute the method in 01224 Method
  • the control sub-unit 1522 may be used to execute the method in 01522.
  • the first recognition module 19 can be used for identifying target feature points in the current depth image.
  • the dividing module 20 may be configured to divide the current depth image into a first region and a second region according to the target feature point, and the first region includes the target feature point.
  • the first determining sub-unit 1422 may be configured to determine a first sub-similarity between the first region and the first reference depth image.
  • the second determination sub-unit 1424 may be used to determine a second sub-similarity between the second region and the second reference depth image.
  • the control sub-unit 1522 may be configured to control the electronic device 100 to unlock when the first sub-similarity is greater than the first sub-threshold, the second sub-similarity is greater than the second sub-threshold, and the second similarity is greater than the second threshold.
  • the target feature point may be a feature point corresponding to a target organ (for example, eyes, nose, mouth, etc.) of a human face.
  • a target organ for example, eyes, nose, mouth, etc.
  • other feature points such as hair, eyebrows, etc.
  • the electronic device 100 may The current depth image is divided into a first region and a second region (as shown in FIG. 9 (a)), so that the target feature points are included in the first region.
  • the reference depth image may also be divided into a first reference depth image and a second reference depth image (as shown in FIG. 9 (b)).
  • the first sub-similarity between the first region and the first reference depth image, and the second sub-similarity between the second region and the second reference depth image respectively correspond to different similarity thresholds, that is, the first sub-threshold, the first Second child threshold. Further, since the attributes of the target feature points are not easily changed, the first sub-threshold may be larger than the second sub-threshold to improve the reliability of identity authentication.
  • the electronic device 100 may further divide the current depth image into more regions, such as the first region, the second region, the third region, etc., according to the target feature points, for accurate identity authentication.
  • the step (ie 011) of controlling the infrared light camera 40 to collect a current infrared light image of a human face includes:
  • Control methods also include:
  • a step of performing face authentication based on the current infrared light image (ie, 012), or a step of controlling the time of flight module 30 to collect a current depth image of the face (ie, 013) is entered.
  • the first control module 11 further includes a second control unit 112.
  • the control device 10 further includes a second identification module 21 and a determination module 22.
  • the second control unit 112 is configured to execute the method in 0112, the second identification module 21 is used to execute the method in 021, and the determination module 22 is used to execute the method in 022.
  • the second control unit 112 may be configured to control the infrared light camera 40 to collect multiple frames of current infrared light images.
  • the second recognition module 21 may be used to identify multiple target feature points in each frame of the current infrared light image.
  • the judging module 22 may be configured to judge whether the plurality of target feature points are in a moving state according to a relative position change between the plurality of target feature points in the multiple frames of the current infrared light image.
  • the first authentication module 12 is configured to perform face authentication according to the current infrared light image when a plurality of target feature points are in a moving state; or the second control module 13 may be used to control the plurality of target feature points when in a moving state.
  • the time-of-flight module 30 captures a current depth image of a human face.
  • the target feature point may be a feature point in a target organ (for example, eyes, nose, mouth, etc.) of a human face.
  • the target feature point is the upper lip feature point A and the lower lip feature point B of the mouth as examples.
  • the multi-frame current infrared light image is at least two frames of the current infrared light image.
  • the mouth of the current infrared light image in the first frame is closed, and there is a certain distance between the target feature point A and the target feature point B.
  • the mouth of the current infrared light image in the second frame is open, and the target feature point A and the target feature point B coincide.
  • the electronic device 100 determines that the target feature point A and the target feature point B are in a moving state according to a change in the relative position of the target feature point A and the target feature point B in the first frame of the current infrared light image and the second frame of the current infrared light image. It can be explained that the test object is a living body.
  • the electronic device 100 performs face authentication based on the current infrared light image or controls the time-of-flight module 30 to collect the current depth image of the face for deep authentication, which can not only save the energy consumption of the electronic device 100, but also avoid non-computer
  • the host uses photos or other imitations for identity authentication, and the reliability of identity authentication is high.
  • an electronic device 100 includes a time-of-flight module 30, an infrared light camera 40, one or more processors 50, a memory 60, and one or more programs.
  • one or more programs are stored in the memory 60 and configured to be executed by one or more processors 50, and the programs include instructions for executing the control method of the electronic device 100 according to any one of the embodiments described above.
  • the program includes instructions for executing the following control methods of the electronic device 100:
  • 011 control the infrared light camera 40 to collect the current infrared light image of the human face;
  • 013 controlling the time-of-flight module 30 to collect a current depth image of a human face
  • a computer-readable storage medium 200 includes a computer program used in conjunction with the electronic device 100.
  • the computer program may be executed by the processor 50 to complete the control method of the electronic device 100 according to any one of the above embodiments.
  • the computer program may be executed by the processor 50 to perform the following control method of the electronic device 100:
  • 011 control the infrared light camera 40 to collect the current infrared light image of the human face;
  • 013 controlling the time-of-flight module 30 to collect a current depth image of a human face
  • the time of flight module 30 may have the following structure.
  • the time-of-flight module 30 includes a first substrate assembly 31, a pad 32, a light transmitter 33 and a light receiver 34.
  • the first substrate assembly 31 includes a first substrate 311 and a flexible circuit board 312 connected to each other.
  • the pad 32 is disposed on the first substrate 311.
  • the light transmitter 33 is used to emit light signals outward, and the light transmitter 33 is disposed on the pad 32.
  • the flexible circuit board 312 is bent and one end of the flexible circuit board 312 is connected to the first substrate 311 and the other end is connected to the light emitter 33.
  • the light receiver 34 is disposed on the first substrate 311.
  • the light receiver 34 is configured to receive the light signal emitted by the reflected light transmitter 33.
  • the light receiver 34 includes a casing 341 and an optical element disposed on the casing 341. 342, the casing 341 and the pad 32 are connected into a whole.
  • the pad 32 can heighten the height of the light emitter 33, thereby increasing the height of the light emitting surface of the light emitter 33, and the light emitter 33
  • the emitted light signal is not easily blocked by the light receiver 34, so that the light signal can be completely irradiated on the measured object.
  • the first substrate assembly 31 includes a first substrate 311 and a flexible circuit board 312.
  • the first substrate 311 may be a printed circuit board or a flexible circuit board, and the control circuit of the time of flight module 30 may be laid on the first substrate 311.
  • One end of the flexible circuit board 312 can be connected to the first substrate 311, and the flexible circuit board 312 can be bent at an angle, so that the relative positions of the devices connected at both ends of the flexible circuit board 312 can be selected.
  • the pad 32 is disposed on the first substrate 311.
  • the pad 32 is in contact with the first substrate 311 and is carried on the first substrate 311.
  • the pad 32 may be combined with the first substrate 311 by means of adhesion or the like.
  • the material of the spacer 32 may be metal, plastic, or the like.
  • a surface where the pad 32 is combined with the first substrate 311 may be a flat surface, and a surface opposite to the combined surface of the pad 32 may be a flat surface, so that when the light emitter 33 is disposed on the pad 32 Has better stability.
  • the light transmitter 33 is configured to emit an optical signal outwards.
  • the light signal may be infrared light, and the light signal may be a lattice spot emitted to the measured object.
  • the light signal is emitted from the light transmitter 33 at a certain divergence angle. .
  • the light emitter 33 is disposed on the pad 32. In the embodiment of the present application, the light emitter 33 is disposed on the side of the pad 32 opposite to the first substrate 311, or in other words, the pad 32 attaches the first substrate 311 And the light emitter 33 are spaced apart from each other so that a height difference is formed between the light emitter 33 and the first substrate 311.
  • the light transmitter 33 is also connected to the flexible circuit board 312.
  • the flexible circuit board 312 is bent and arranged.
  • the first substrate 311 is transmitted to the light transmitter 33, or a feedback signal of the light transmitter 33 (for example, time information, frequency information of the light signal transmitted by the light transmitter 33, temperature information of the light transmitter 33, etc.) is transmitted to the first Substrate 311.
  • the light receiver 34 is configured to receive an optical signal emitted by the reflected light transmitter 33.
  • the light receiver 34 is disposed on the first substrate 311, and the contact surface between the light receiver 34 and the first substrate 311 is substantially flush with the contact surface between the pad 32 and the first substrate 311 (that is, the installation starting point of the two is On the same plane).
  • the light receiver 34 includes a housing 341 and an optical element 342.
  • the casing 341 is disposed on the first substrate 311, and the optical element 342 is disposed on the casing 341.
  • the casing 341 may be a lens holder and a lens barrel of the light receiver 34, and the optical element 342 may be a lens disposed in the casing 341. And other components.
  • the light receiver 34 may further include a photosensitive chip (not shown), and the optical signal reflected by the measured object is irradiated into the photosensitive chip through the action of the optical element 342, and the photosensitive chip generates a response to the optical signal.
  • the time-of-flight module 30 calculates the time difference between the light signal sent by the light transmitter 33 and the light sensor receiving the light signal reflected by the measured object, and further obtains the depth information of the measured object.
  • the depth information can be used for ranging, For generating depth images or for 3D modeling.
  • the housing 341 and the cushion block 32 are integrally connected. Specifically, the housing 341 and the spacer 32 may be integrally formed.
  • the materials of the housing 341 and the spacer 32 are the same and are integrally formed by injection molding, cutting, or the like; or the materials of the housing 341 and the spacer 32 are different, both Integrated molding by two-color injection molding.
  • the housing 341 and the pad 32 may also be separately formed, and the two form a matching structure.
  • the housing 341 and the pad 32 may be connected into one body, and then the two boards may be provided on the first substrate 311 together.
  • one of the housing 341 and the pad 32 may be disposed on the first substrate 311, and then the other may be disposed on the first substrate 311 and connected together.
  • the exit surface of the light transmitter 33 may be flush with the entrance surface of the light receiver 34, or the exit surface of the light transmitter 33 may be slightly lower than the entrance surface of the light receiver 34. It may also be that the exit surface of the light emitter 33 is slightly higher than the entrance surface of the light receiver 34.
  • the first substrate assembly 31 further includes a reinforcing plate 313.
  • the reinforcing plate 313 is coupled to a side of the first substrate 311 opposite to the pad 32.
  • the reinforcing plate 313 may cover one side of the first substrate 311, and the reinforcing plate 313 may be used to increase the strength of the first substrate 311 and prevent deformation of the first substrate 311.
  • the reinforcing plate 313 may be made of a conductive material, such as a metal or an alloy.
  • the reinforcing plate 313 and the casing 101 may be electrically connected to make the reinforcing plate 313. Grounding and effectively reducing the interference of static electricity from external components on the time of flight module 30.
  • the pad 32 includes a protruding portion 325 protruding from the side edge 3111 of the first substrate 311, and the flexible circuit board 312 is bent around the protruding portion 325. Specifically, a part of the pad 32 is directly carried on the first substrate 311, and another part is not in direct contact with the first substrate 311, and protrudes to form a protruding portion 325 with respect to the side edge 3111 of the first substrate 311.
  • the flexible circuit board 312 may be connected to the side edge 3111.
  • the flexible circuit board 312 is bent around the protrusion 325, or the flexible circuit board 312 is bent so that the protrusion 325 is located in the space surrounded by the flexible circuit board 312. Inside, when the flexible circuit board 312 is subjected to an external force, the flexible circuit board 312 will not collapse inward and cause excessive bending, which will cause damage to the flexible circuit board 312.
  • the outer surface 3251 of the protruding portion 325 is a smooth curved surface (such as the outer surface of a cylinder, etc.), that is, the outer surface 3251 of the protruding portion 325 does not form a curvature. Hence, even if the flexible circuit board 312 is bent on the outer side 3251 of the protruding portion 325, the degree of bending of the flexible circuit board 312 will not be too large, which further ensures the integrity of the flexible circuit board 312.
  • the time-of-flight module 30 further includes a connector 36 connected to the first substrate 311.
  • the connector 36 is used to connect the first substrate assembly 31 and an external device.
  • the connector 36 and the flexible circuit board 312 are respectively connected to opposite ends of the first substrate 311.
  • the connector 36 may be a connection base or a connector.
  • the connector 36 may be connected to the main board of the electronic device 100 so that the time-of-flight module 30 is electrically connected to the main board.
  • the connector 36 and the flexible circuit board 312 are respectively connected to opposite ends of the first substrate 311.
  • the connectors 36 and the flexible circuit board 312 may be respectively connected to the left and right ends of the first substrate 311, or may be respectively connected to the front and rear ends of the first substrate 311.
  • the light transmitter 33 and the light receiver 34 are arranged along a straight line L, and the connector 36 and the flexible circuit board 312 are located on opposite sides of the straight line L, respectively. It can be understood that, since the light transmitter 33 and the light receiver 34 are arranged in an array, the size of the time-of-flight module 30 may be larger in the direction of the straight line L.
  • the connector 36 and the flexible circuit board 312 are respectively disposed on opposite sides of the straight line L, which will not increase the size of the time-of-flight module 30 in the direction of the straight line L, thereby facilitating the installation of the time-of-flight module 30 on the electronic device 100 On the chassis 101.
  • a receiving cavity 323 is defined on a side where the pad 32 is combined with the first substrate 311.
  • the time-of-flight module 30 further includes an electronic component 35 disposed on the first substrate 311, and the electronic component 35 is contained in the receiving cavity 323.
  • the electronic component 35 may be an element such as a capacitor, an inductor, a transistor, or a resistor.
  • the electronic component 35 may be electrically connected to a control line laid on the first substrate 311 and used to drive or control the operation of the light transmitter 33 or the light receiver 34.
  • the electronic component 35 is contained in the receiving cavity 323, and the space in the pad 32 is used reasonably.
  • the number of the receiving chambers 323 may be one or more, and the multiple receiving chambers 323 may be spaced apart from each other. When the pad 32 is installed, the positions of the receiving chamber 323 and the electronic component 35 may be aligned and the pad 32 may be disposed at On the first substrate 311.
  • the cushion block 32 is provided with an escape hole 324 communicating with at least one receiving cavity 323, and at least one electronic component 35 extends into the escape hole 324. It can be understood that when the electronic component 35 is contained in the containing cavity 323, the height of the electronic component 35 is required to be not higher than the height of the containing cavity 323. For the electronic component 35 having a height higher than the receiving cavity 323, an avoiding through hole 324 corresponding to the receiving cavity 323 may be provided, and the electronic component 35 partially extends into the avoiding through hole 324, so as to be arranged without increasing the height of the pad 32 Electronic component 35.
  • the light emitter 33 includes a second substrate assembly 331, a light source assembly 332, and a housing 333.
  • the second substrate assembly 331 is disposed on the pad 32, and the second substrate assembly 331 is connected to the flexible circuit board 312.
  • the light source assembly 332 is disposed on the second substrate assembly 331, and the light source assembly 332 is configured to emit a light signal.
  • the casing 333 is disposed on the second substrate assembly 331.
  • the casing 333 is formed with a receiving space 3331, and the receiving space 3331 can be used for receiving the light source assembly 332.
  • the flexible circuit board 312 may be detachably connected to the second substrate assembly 331.
  • the light source assembly 332 is electrically connected to the second substrate assembly 331.
  • the housing 333 may be bowl-shaped as a whole, and the opening of the housing 333 is downwardly covered on the second substrate assembly 331 to receive the light source assembly 332 in the receiving space 3331.
  • a light outlet 3332 corresponding to the light source component 332 is provided on the housing 333.
  • the light signal emitted from the light source component 332 passes through the light outlet 3332 and is emitted.
  • the light signal can be directly emitted from the light outlet 3332. It can also pass through the optical outlet 3332 after changing the optical path through other optical devices.
  • the second substrate assembly 331 includes a second substrate 3311 and a reinforcing member 3312.
  • the second substrate 3311 is connected to the flexible circuit board 312.
  • the light source assembly 332 and the reinforcing member 3312 are disposed on opposite sides of the second substrate 3311.
  • a specific type of the second substrate 3311 may be a printed circuit board or a flexible circuit board, and a control circuit may be laid on the second substrate 3311.
  • the reinforcing member 3312 may be fixedly connected to the second substrate 3311 by means of gluing, riveting, or the like.
  • the reinforcing member 3312 may increase the overall strength of the second substrate assembly 331.
  • the reinforcing member 3312 can directly contact the pad 32, the second substrate 3311 is not exposed to the outside, and does not need to be in direct contact with the pad 32, and the second substrate 3311 is not easily affected. Contamination by dust, etc.
  • the reinforcing member 3312 and the pad 32 are formed separately.
  • the pad 32 may be first mounted on the first substrate 311.
  • the two ends of the flexible circuit board 312 are respectively connected to the first substrate 311 and the second substrate 3311, and the flexible circuit board 312 may Do not bend first (state shown in Figure 21).
  • the flexible circuit board 312 is bent, so that the reinforcing member 3312 is disposed on the pad 32.
  • the reinforcing member 3312 and the spacer 32 may be integrally formed, for example, integrally formed by a process such as injection molding.
  • the spacer 32 and the light emitter 33 may be installed together. On the first substrate 311.
  • a first positioning member 3313 is formed on the reinforcing member 3312.
  • the cushion block 32 includes a body 321 and a second positioning member 322.
  • the second positioning member 322 is formed on the body 321.
  • the first positioning member 3313 cooperates with the second positioning member 322.
  • the relative movement between the second substrate assembly 331 and the pad 32 can be effectively restricted.
  • the specific types of the first positioning member 3313 and the second positioning member 322 can be selected according to needs.
  • the first positioning member 3313 is a positioning hole formed in the reinforcing member 3312
  • the second positioning member 322 is a positioning column.
  • the first positioning member 3313 is a positioning column formed on the reinforcing member 3312
  • the second positioning member 322 is a positioning hole and a positioning column Protrude into the positioning hole so that the first positioning member 3313 and the second positioning member 322 cooperate with each other; or the number of the first positioning member 3313 and the second positioning member 322 are multiple, and part of the first positioning member 3313 is a positioning hole, Part of the second positioning member 322 is a positioning column, part of the first positioning member 3313 is a positioning column, and part of the second positioning member 322 is a positioning hole.
  • the positioning column projects into the positioning hole so that the first positioning member 3313 and the second positioning member 322 are located. work cooperatively.

Abstract

A control method for an electronic apparatus (100), a control apparatus (10) for the electronic apparatus (100), the electronic apparatus (100), and a computer-readable storage medium (200). The electronic apparatus (100) comprises a flight time module (30) and an infrared camera (40). The control method comprises: (011) controlling the infrared camera (40) to collect the current infrared image of a human face; (012) carrying out human face authentication according to the current infrared image; (013) controlling the flight time module (30) to collect the current depth image of the human face; (014) carrying out depth authentication according to the current depth image; and (015) when both the human face authentication and the depth authentication are passed, controlling the electronic apparatus (100) to execute a pre-determined operation.

Description

电子装置及其控制方法、控制装置和计算机可读存储介质Electronic device, control method thereof, control device and computer-readable storage medium
优先权信息Priority information
本申请请求2018年9月10日向中国国家知识产权局提交的、专利申请号为201811048780.1的专利申请的优先权和权益,并且通过参照将其全文并入此处。This application claims the priority and rights of the patent application with the patent application number 201811048780.1, which was filed with the State Intellectual Property Office of China on September 10, 2018, and is incorporated herein by reference in its entirety.
技术领域Technical field
本申请涉及消费性电子产品领域,更具体而言,涉及一种电子装置的控制方法、电子装置的控制装置、电子装置和计算机可读存储介质。The present application relates to the field of consumer electronic products, and more particularly, to a method for controlling an electronic device, a control device for an electronic device, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着电子技术的快速发展,诸如智能手机、平板电脑等电子装置已经越来越普及。电子装置通常根据用户输入的人脸二维图像来验证用户是否具有相关的使用权限。With the rapid development of electronic technology, electronic devices such as smart phones and tablet computers have become increasingly popular. The electronic device usually verifies whether the user has relevant usage rights according to the two-dimensional image of the face input by the user.
发明内容Summary of the Invention
本申请实施方式提供一种电子装置的控制方法、电子装置的控制装置、电子装置和计算机可读存储介质。Embodiments of the present application provide a method for controlling an electronic device, a control device for an electronic device, an electronic device, and a computer-readable storage medium.
本申请实施方式提供一种电子装置的控制方法,所述电子装置包括飞行时间模组和红外光摄像头,所述控制方法包括:控制所述红外光摄像头采集人脸的当前红外光图像;根据所述当前红外光图像进行人脸认证;控制所述飞行时间模组采集人脸的当前深度图像;根据所述当前深度图像进行深度认证;和在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作。An embodiment of the present application provides a method for controlling an electronic device. The electronic device includes a time-of-flight module and an infrared light camera. The control method includes: controlling the infrared light camera to collect a current infrared light image of a human face; The current infrared light image is used for face authentication; the time-of-flight module is controlled to collect the current depth image of the face; the depth authentication is performed according to the current depth image; and when both the face authentication and the depth authentication pass , Controlling the electronic device to perform a predetermined operation.
本申请实施方式提供一种电子装置的控制装置,所述电子装置包括飞行时间模组和红外光摄像头,所述控制装置包括第一控制模块、第一认证模块、第二控制模块、第二认证模块和第三控制模块;第一控制模块用于控制所述红外光摄像头采集人脸的当前红外光图像;第一认证模块用于根据所述当前红外光图像进行人脸认证;第二控制模块用于控制所述飞行时间模组采集人脸的当前深度图像;第二认证模块用于根据所述当前深度图像进行深度认证;第三控制模块用于在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作。An embodiment of the present application provides a control device for an electronic device. The electronic device includes a time-of-flight module and an infrared light camera. The control device includes a first control module, a first authentication module, a second control module, and a second authentication. A module and a third control module; a first control module configured to control the infrared light camera to collect a current infrared light image of a human face; a first authentication module configured to perform a face authentication based on the current infrared light image; a second control module Configured to control the time-of-flight module to collect a current depth image of a face; a second authentication module is configured to perform depth authentication based on the current depth image; and a third control module is configured to perform the face authentication and the depth authentication When all passes, the electronic device is controlled to perform a predetermined operation.
本申请实施方式提供一种电子装置,所述电子装置包括飞行时间模组、红外光摄像头、一个或多个处理器、存储器以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被配置由所述一个或多个处理器执行,所述程序包括用于执行上述实施方式所述的电子装置的控制方法的指令。An embodiment of the present application provides an electronic device. The electronic device includes a time-of-flight module, an infrared light camera, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in The memory is configured to be executed by the one or more processors, and the program includes instructions for executing the control method of the electronic device according to the foregoing embodiment.
本申请实施方式提供一种计算机可读存储介质,所述计算机可读存储介质包括与电子装置结合使用的计算机程序,所述计算机程序可被处理器执行以完成上述实施方式所述的电子装置的控制方法。An embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium includes a computer program used in combination with an electronic device, and the computer program can be executed by a processor to complete the electronic device described in the foregoing embodiment. Control Method.
本申请的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施方式的实践了解到。Additional aspects and advantages of the embodiments of the present application will be partially given in the following description, and part of them will become apparent from the following description, or be learned through the practice of the embodiments of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请某些实施方式的电子装置的控制方法的流程示意图;1 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application;
图2是本申请某些实施方式的电子装置的控制装置的模块示意图;2 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application;
图3是本申请某些实施方式的电子装置的结构示意图;3 is a schematic structural diagram of an electronic device according to some embodiments of the present application;
图4是本申请某些实施方式的电子装置的控制方法的流程示意图;4 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application;
图5是本申请某些实施方式的电子装置的控制装置的模块示意图;5 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application;
图6是本申请某些实施方式的电子装置的控制方法的场景示意图;6 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application;
图7是本申请某些实施方式的电子装置的控制方法的流程示意图;7 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application;
图8是本申请某些实施方式的电子装置的控制装置的模块示意图;8 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application;
图9是本申请某些实施方式的电子装置的控制方法的场景示意图;9 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application;
图10是本申请某些实施方式的电子装置的控制方法的流程示意图;10 is a schematic flowchart of a method for controlling an electronic device according to some embodiments of the present application;
图11是本申请某些实施方式的电子装置的控制装置的模块示意图;11 is a schematic block diagram of a control device of an electronic device according to some embodiments of the present application;
图12是本申请某些实施方式的电子装置的控制方法的场景示意图;12 is a schematic diagram of a method for controlling an electronic device according to some embodiments of the present application;
图13是本申请某些实施方式的电子装置的模块示意图;13 is a schematic block diagram of an electronic device according to some embodiments of the present application;
图14是本申请某些实施方式的电子装置和计算机可读存储介质的连接状态示意图;14 is a schematic diagram of a connection state between an electronic device and a computer-readable storage medium according to some embodiments of the present application;
图15是本申请某些实施方式的飞行时间模组的立体结构示意图;FIG. 15 is a perspective structural diagram of a time-of-flight module according to some embodiments of the present application; FIG.
图16是本申请某些实施方式的飞行时间模组的俯视示意图;16 is a schematic top view of a time-of-flight module according to some embodiments of the present application;
图17是本申请某些实施方式的飞行时间模组的仰视示意图;17 is a schematic bottom view of a time of flight module according to some embodiments of the present application;
图18是本申请某些实施方式的飞行时间模组的侧视示意图;18 is a schematic side view of a time-of-flight module according to some embodiments of the present application;
图19是图16所示的飞行时间模组沿XIX线的截面示意图;19 is a schematic cross-sectional view of the time-of-flight module shown in FIG. 16 along the line XIX;
图20是图19所示的飞行时间模组中XX部分的放大示意图;FIG. 20 is an enlarged schematic view of the XX part in the time-of-flight module shown in FIG. 19; FIG.
图21是本申请某些实施方式的飞行时间模组在柔性电路板未弯折时的正面结构示意图。21 is a schematic front view of a time-of-flight module of some embodiments of the present application when the flexible circuit board is not bent.
具体实施方式detailed description
以下结合附图对本申请的实施方式作进一步说明。附图中相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面结合附图描述的本申请的实施方式是示例性的,仅用于解释本申请的实施方式,而不能理解为对本申请的限制。The embodiments of the present application are further described below with reference to the accompanying drawings. The same or similar reference numerals in the drawings represent the same or similar elements or elements having the same or similar functions throughout. The embodiments of the present application described below with reference to the drawings are exemplary, and are only used to explain the embodiments of the present application, and should not be construed as limiting the present application.
请参阅图1和图3,本申请实施方式的电子装置100包括飞行时间模组30和红外光摄像头40。控制方法包括:Please refer to FIGS. 1 and 3. An electronic device 100 according to an embodiment of the present application includes a time-of-flight module 30 and an infrared light camera 40. Control methods include:
011:控制红外光摄像头40采集人脸的当前红外光图像;011: control the infrared light camera 40 to collect the current infrared light image of the human face;
012:根据当前红外光图像进行人脸认证;012: Face authentication according to the current infrared light image;
013:控制飞行时间模组30采集人脸的当前深度图像;013: controlling the time-of-flight module 30 to collect a current depth image of a human face;
014:根据当前深度图像进行深度认证;和014: depth authentication based on the current depth image; and
015:在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。015: When both face authentication and depth authentication pass, control the electronic device 100 to perform a predetermined operation.
在某些实施方式中,控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)是在人脸认证通过时进行的;或者控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)是在深度认证通过时进行的。In some embodiments, the step of controlling the time-of-flight module 30 to collect the current depth image of the face (ie, 013) is performed when the face authentication is passed; or the infrared light camera 40 is controlled to collect the current infrared light image of the face The step (011) is performed when the deep authentication passes.
在某些实施方式中,预定操作包括解锁、点亮电子装置100的显示屏103(如图3所示)、电子支付、打开电子装置100的预定应用程序中的至少一种。In some embodiments, the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100.
请参阅图4,在某些实施方式中,控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)和控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)是在电子装置100处于解锁过程中进行的,控制方法还包括:Please refer to FIG. 4. In some embodiments, the step of controlling the infrared camera 40 to collect the current infrared image of the human face (ie, 011) and the step of controlling the time of flight module 30 to collect the current depth image of the human face (ie, 013) ) Is performed during the unlocking process of the electronic device 100, and the control method further includes:
016:在加密过程中控制红外光摄像头40采集人脸的参考红外光图像;016: controlling the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process;
根据当前红外光图像进行人脸认证的步骤(即012)包括:The step of performing face authentication according to the current infrared light image (that is, 012) includes:
0122:判断当前红外光图像与参考红外光图像之间的第一相似度;0122: determine a first similarity between the current infrared light image and the reference infrared light image;
控制方法还包括:Control methods also include:
017:在加密过程中控制飞行时间模组30采集人脸的参考深度图像;017: controlling the time-of-flight module 30 to acquire a reference depth image of a human face during the encryption process;
根据当前深度图像进行深度认证的步骤(即014)包括:The steps (i.e. 014) for performing deep authentication based on the current depth image include:
0142:判断当前深度图像与参考深度图像之间的第二相似度;0142: determine the second similarity between the current depth image and the reference depth image;
在人脸认证和深度认证均通过时,控制电子装置100执行预定操作的步骤(即015)包括:When both the face authentication and the deep authentication pass, the step of controlling the electronic device 100 to perform a predetermined operation (that is, 015) includes:
0152:在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁。0152: Control the electronic device 100 to unlock when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
请再次参阅图4,在某些实施方式中,控制方法还包括:Please refer to FIG. 4 again. In some embodiments, the control method further includes:
018:在第一相似度大于第三阈值而第二相似度小于第四阈值时,锁定电子装置100;其中,第三阈值大于第一阈值,第四阈值小于第二阈值。018: The electronic device 100 is locked when the first similarity is larger than the third threshold and the second similarity is smaller than the fourth threshold; wherein the third threshold is larger than the first threshold and the fourth threshold is smaller than the second threshold.
请参阅图7,在某些实施方式中,控制方法还包括:Referring to FIG. 7, in some embodiments, the control method further includes:
019:识别当前深度图像中的目标特征点;019: identify target feature points in the current depth image;
020:根据目标特征点将当前深度图像划分为第一区域和第二区域,其中,第一区域包括目标特征点;020: Divide the current depth image into a first region and a second region according to the target feature points, where the first region includes the target feature points;
参考深度图像包括第一参考深度图像和第二参考深度图像,判断当前深度图像与参考深度图像之间的第二相似度的步骤(即0142)包括:The reference depth image includes a first reference depth image and a second reference depth image. The step of determining a second similarity between the current depth image and the reference depth image (that is, 0142) includes:
01422:判断第一区域与第一参考深度图像之间的第一子相似度;01422: Determine a first sub-similarity between the first region and the first reference depth image;
01424:判断第二区域与第二参考深度图像之间的第二子相似度;01424: Determine a second sub-similarity between the second region and the second reference depth image;
第二阈值包括第一子阈值和第二子阈值,第一子阈值大于第二子阈值,在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁的步骤(即0152)包括:The second threshold includes a first sub-threshold and a second sub-threshold. The first sub-threshold is greater than the second sub-threshold. When the first similarity is greater than the first threshold and the second similarity is greater than the second threshold, controlling the electronic device 100 to unlock the The steps (ie, 0152) include:
01522:在第一子相似度大于第一子阈值,第二子相似度大于第二子阈值,且第二相似度大于第二阈值时,控制电子装置100解锁。01522: When the first sub similarity is greater than the first sub threshold, the second sub similarity is greater than the second sub threshold, and the second similarity is greater than the second threshold, the electronic device 100 is controlled to unlock.
请参阅图10,在某些实施方式中,控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)包括:Referring to FIG. 10, in some embodiments, the step (ie 011) of controlling the infrared light camera 40 to collect a current infrared light image of a human face includes:
0112:控制红外光摄像头40采集多帧当前红外光图像;0112: Control infrared light camera 40 to collect multiple current infrared light images;
控制方法还包括:Control methods also include:
021:识别每帧当前红外光图像中的多个目标特征点;021: identify multiple target feature points in each frame of the current infrared light image;
022:根据多帧当前红外光图像中多个目标特征点之间的相对位置变化判断多个目标特征点是否处于运动状态;和022: judging whether the plurality of target feature points are in a moving state according to the relative position changes between the plurality of target feature points in the multi-frame current infrared light image; and
在多个目标特征点处于运动状态时,进入根据当前红外光图像进行人脸认证的步骤(即012),或者进入控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)。When multiple target feature points are in a moving state, a step of performing face authentication based on the current infrared light image (ie, 012), or a step of controlling the time of flight module 30 to collect a current depth image of the face (ie, 013) is entered.
请参阅图2和图3,本申请实施方式的电子装置100包括飞行时间模组30和红外光摄像头40。控制装置10包括第一控制模块11、第一认证模块12、第二控制模块13、第二认证模块14和第三控制模块15。第一控制模块11用于控制红外光摄像头40采集人脸的当前红外光图像。第一认证模块12用于根据当前红外光图像进行人脸认证。第二控制模块13用于控制飞行时间模组30采集人脸的当前深度图像。第二认证模块14用于根据当前深度图像进行深度认证。第三控制模块15可以用于在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。Please refer to FIGS. 2 and 3. The electronic device 100 according to the embodiment of the present application includes a time-of-flight module 30 and an infrared light camera 40. The control device 10 includes a first control module 11, a first authentication module 12, a second control module 13, a second authentication module 14, and a third control module 15. The first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face. The first authentication module 12 is configured to perform face authentication according to the current infrared light image. The second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face. The second authentication module 14 is configured to perform depth authentication according to the current depth image. The third control module 15 may be used to control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass.
在某些实施方式中,第二控制模块13用于在人脸认证通过时,控制飞行时间模组30采集人脸的当前深度图像;或者第一控制模块11用于在深度认证通过时,控制红外光摄像头40采集人脸的当前红外光图像。In some embodiments, the second control module 13 is configured to control the time-of-flight module 30 to collect the current depth image of the face when the face authentication is passed; or the first control module 11 is configured to control the depth of face authentication when the face authentication is passed. The infrared light camera 40 collects a current infrared light image of a human face.
在某些实施方式中,预定操作包括解锁、点亮电子装置100的显示屏103(如图3所示)、电子支付、打开电子装置100的预定应用程序中的至少一种。In some embodiments, the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100.
请参阅图5,在某些实施方式,第一控制模块11用于在电子装置100处于解锁过程中控制红外光摄像头40采集人脸的当前红外光图像。第二控制模块13用于在电子装置100处于解锁过程中控制飞行时间模组30采集人脸的当前深度图像。控制装置10还包括第四控制模块16和第五控制模块17。第一认证模块12包括第一认证单元122,第二认证模块14包括第二认证单元142,第三控制模块15包括第一控制单元152。第四控制模块16用于在加密过程中控制红外光摄像头40采集人脸的参考红外光图像。第一认证单元122用于判断当前红外光图像与参考红外光图像之间的第一相似度。第五控制模块17用于在加密过程中控制飞行时间模组30采集人脸的参考深度图像。第二认证单元142用于判断当前深度图像与参考深度图像之间的第二相似度。第一控制单元152用于在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁。Referring to FIG. 5, in some embodiments, the first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face while the electronic device 100 is in an unlocking process. The second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face when the electronic device 100 is in an unlocking process. The control device 10 further includes a fourth control module 16 and a fifth control module 17. The first authentication module 12 includes a first authentication unit 122, the second authentication module 14 includes a second authentication unit 142, and the third control module 15 includes a first control unit 152. The fourth control module 16 is configured to control the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process. The first authentication unit 122 is configured to determine a first similarity between the current infrared light image and the reference infrared light image. The fifth control module 17 is configured to control the time-of-flight module 30 to collect a reference depth image of a human face during the encryption process. The second authentication unit 142 is configured to determine a second similarity between the current depth image and the reference depth image. The first control unit 152 is configured to control the electronic device 100 to be unlocked when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
请再次参阅图5,在某些实施方式中,控制装置10还包括锁定模块18。锁定模块18用于在第一相似度大于第三阈值而第二相似度小于第四阈值时,锁定电子装置100。其中,第三阈值大于第一阈值,第四阈值小于第二阈值。Please refer to FIG. 5 again. In some embodiments, the control device 10 further includes a locking module 18. The locking module 18 is configured to lock the electronic device 100 when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold. The third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
请参阅图8,在某些实施方式中,控制装置10还包括第一识别模块19和划分模块20。第二认证单元142包括第一判断子单元1422和第二判断子单元1424。第一控制单元152包括控制子单元1522。第一识别模块19用于识别当前深度图像中的目标特征点。划分模块20用于根据目标特征点将当前深度图像划分为第一区域和第二区域,第一区域包括目标特征点。第一判断子单元 1422用于判断第一区域与第一参考深度图像之间的第一子相似度。第二判断子单元1424用于判断第二区域与第二参考深度图像之间的第二子相似度。控制子单元1522用于在第一子相似度大于第一子阈值,第二子相似度大于第二子阈值,且第二相似度大于第二阈值时,控制电子装置100解锁。Referring to FIG. 8, in some embodiments, the control device 10 further includes a first identification module 19 and a division module 20. The second authentication unit 142 includes a first judgment sub-unit 1422 and a second judgment sub-unit 1424. The first control unit 152 includes a control sub-unit 1522. The first recognition module 19 is used to identify target feature points in the current depth image. The dividing module 20 is configured to divide the current depth image into a first region and a second region according to the target feature points, and the first region includes the target feature points. The first determining sub-unit 1422 is configured to determine a first sub-similarity between the first region and the first reference depth image. The second determination sub-unit 1424 is configured to determine a second sub-similarity between the second region and the second reference depth image. The control sub-unit 1522 is configured to control the electronic device 100 to unlock when the first sub-similarity is greater than the first sub-threshold, the second sub-similarity is greater than the second sub-threshold, and the second similarity is greater than the second threshold.
请参阅图11,在某些实施方式中,第一控制模块11还包括第二控制单元112。控制装置10还包括第二识别模块21和判断模块22。第二控制单元112用于控制红外光摄像头40采集多帧当前红外光图像。第二识别模块21用于识别每帧当前红外光图像中的多个目标特征点。判断模块22用于根据多帧当前红外光图像中多个目标特征点之间的相对位置变化判断多个目标特征点是否处于运动状态。第一认证模块12用于在多个目标特征点处于运动状态时,根据当前红外光图像进行人脸认证;或者,第二控制模块13用于在多个目标特征点处于运动状态时,控制飞行时间模组30采集人脸的当前深度图像。Referring to FIG. 11, in some embodiments, the first control module 11 further includes a second control unit 112. The control device 10 further includes a second identification module 21 and a determination module 22. The second control unit 112 is configured to control the infrared light camera 40 to collect multiple frames of current infrared light images. The second recognition module 21 is configured to identify multiple target feature points in each frame of the current infrared light image. The judging module 22 is configured to judge whether the plurality of target feature points are in a moving state according to a change in relative positions between the plurality of target feature points in the current infrared light image in multiple frames. The first authentication module 12 is configured to perform face authentication based on the current infrared light image when a plurality of target feature points are in a moving state; or the second control module 13 is configured to control flight when a plurality of target feature points are in a moving state The time module 30 collects a current depth image of a human face.
请参阅图13,本申请实施方式的电子装置100包括飞行时间模组30、红外光摄像头40、一个或多个处理器50、存储器60以及一个或多个程序。其中,一个或多个程序被存储在存储器60中,并且被配置由一个或多个处理器50执行,程序包括用于执行上述任一实施方式的电子装置100的控制方法的指令。Referring to FIG. 13, an electronic device 100 according to an embodiment of the present application includes a time-of-flight module 30, an infrared light camera 40, one or more processors 50, a memory 60, and one or more programs. Among them, one or more programs are stored in the memory 60 and configured to be executed by one or more processors 50, and the programs include instructions for executing the control method of the electronic device 100 according to any one of the embodiments described above.
请参阅图14,本申请实施方式的计算机可读存储介质200包括与电子装置100结合使用的计算机程序。计算机程序可被处理器50执行以完成上述任一实施方式的电子装置100的控制方法。Referring to FIG. 14, a computer-readable storage medium 200 according to an embodiment of the present application includes a computer program used in conjunction with the electronic device 100. The computer program may be executed by the processor 50 to complete the control method of the electronic device 100 according to any one of the above embodiments.
请参阅图1和图3,本申请实施方式提供一种电子装置100的控制方法。电子装置100包括飞行时间模组30和红外光摄像头40。控制方法包括:Referring to FIG. 1 and FIG. 3, an embodiment of the present application provides a method for controlling an electronic device 100. The electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40. Control methods include:
011:控制红外光摄像头40采集人脸的当前红外光图像;011: control the infrared light camera 40 to collect the current infrared light image of the human face;
012:根据当前红外光图像进行人脸认证;012: Face authentication according to the current infrared light image;
013:控制飞行时间模组30采集人脸的当前深度图像;013: controlling the time-of-flight module 30 to collect a current depth image of a human face;
014:根据当前深度图像进行深度认证;和014: depth authentication based on the current depth image; and
015:在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。015: When both face authentication and depth authentication pass, control the electronic device 100 to perform a predetermined operation.
请参阅图2和图3,本申请实施方式提供一种电子装置100的控制装置10。电子装置100包括飞行时间模组30和红外光摄像头40。控制装置10包括第一控制模块11、第一认证模块12、第二控制模块13、第二认证模块14和第三控制模块15。本申请实施方式的控制方法可由本申请实施方式的控制装置10实现。例如,第一控制模块11可用于执行011中的方法,第一认证模块12可用于执行012中的方法,第二控制模块13可用于执行013中的方法,第二认证模块14可用于执行014中的方法,第三控制模块15可用于执行015中的方法。Please refer to FIG. 2 and FIG. 3, an embodiment of the present application provides a control device 10 of an electronic device 100. The electronic device 100 includes a time-of-flight module 30 and an infrared light camera 40. The control device 10 includes a first control module 11, a first authentication module 12, a second control module 13, a second authentication module 14, and a third control module 15. The control method according to the embodiment of the present application may be implemented by the control device 10 according to the embodiment of the present application. For example, the first control module 11 can be used to execute the method in 011, the first authentication module 12 can be used to execute the method in 012, the second control module 13 can be used to execute the method in 013, and the second authentication module 14 can be used to execute 014 The third control module 15 can be used to execute the method in 015.
也即是说,第一控制模块11可以用于控制红外光摄像头40采集人脸的当前红外光图像。第一认证模块12可以用于根据当前红外光图像进行人脸认证。第二控制模块13可以用于控制飞行时间模组30采集人脸的当前深度图像。第二认证模块14可以用于根据当前深度图像进行深度认证。第三控制模块15可以用于在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。That is to say, the first control module 11 may be configured to control the infrared light camera 40 to collect a current infrared light image of a human face. The first authentication module 12 may be configured to perform face authentication according to the current infrared light image. The second control module 13 may be used to control the time-of-flight module 30 to collect a current depth image of a human face. The second authentication module 14 may be configured to perform depth authentication according to the current depth image. The third control module 15 may be used to control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass.
可以理解,随着电子技术的快速发展,诸如智能手机、平板电脑等电子装置已经越来越普及。电子装置通常根据用户输入的人脸二维图像来验证用户是否具有相关的使用权限,这种身份认证的方式可靠性较低。It can be understood that with the rapid development of electronic technology, electronic devices such as smart phones and tablet computers have become increasingly popular. The electronic device usually verifies whether the user has the relevant use right according to the two-dimensional image of the face input by the user, and this method of identity authentication has low reliability.
本申请实施方式的电子装置100的控制方法和控制装置10在人脸认证和深度认证均通过时,才控制电子装置100执行预定操作,身份认证的可靠性较高。The control method and control device 10 of the electronic device 100 according to the embodiment of the present application only control the electronic device 100 to perform a predetermined operation when both the face authentication and the deep authentication pass, and the reliability of the identity authentication is high.
请参阅图3,电子装置100可以是手机、平板电脑、智能手表、智能手环、智能穿戴设备等,本申请实施方式以电子装置100是手机为例进行说明,可以理解,电子装置100的具体形式并不限于手机。Please refer to FIG. 3, the electronic device 100 may be a mobile phone, a tablet computer, a smart watch, a smart bracelet, a smart wearable device, etc. The embodiment of the present application is described by taking the electronic device 100 as a mobile phone as an example. It can be understood that the specifics of the electronic device 100 The form is not limited to mobile phones.
电子装置100可包括机壳101和支架102。飞行时间模组30和红外光摄像头40设置在支架102上。飞行时间模组30、红外光摄像头40和支架102均收容在机壳101内并能够从机壳101中伸出。具体地,当红外光摄像头40用于采集人脸的红外光图像或飞行时间模组30用于采集人脸的深度图像时,支架102带动飞行时间模组30和红外光摄像头40朝机壳101外运动以伸出机 壳101,从而采集红外光图像或深度图像。其中,红外光摄像头40用于接收环境中被待测对象反射的红外光,以形成红外光图像。The electronic device 100 may include a case 101 and a bracket 102. The time-of-flight module 30 and the infrared light camera 40 are disposed on the bracket 102. The time-of-flight module 30, the infrared light camera 40, and the bracket 102 are all housed in the casing 101 and can extend from the casing 101. Specifically, when the infrared light camera 40 is used to capture an infrared light image of a human face or the time-of-flight module 30 is used to capture a depth image of a human face, the bracket 102 drives the time-of-flight module 30 and the infrared light camera 40 toward the casing 101 Move outside to extend the casing 101 to acquire an infrared light image or a depth image. The infrared light camera 40 is configured to receive infrared light reflected by an object to be measured in an environment to form an infrared light image.
本申请实施方式中,红外光摄像头40采集人脸的当前红外光图像与飞行时间模组30采集人脸的当前深度图像,两者之间的先后顺序可以是任意的。例如,红外光摄像头40先采集人脸的当前红外光图像,飞行时间模组30再采集人脸的当前深度图像;或者,飞行时间模组30先采集人脸的当前深度图像,红外光摄像头40再采集人脸的当前红外光图像。进一步地,飞行时间模组30可在电子装置100进行人脸认证的同时采集人脸的当前深度图像,或者,红外光摄像头40在电子装置100进行深度认证的同时采集人脸的当前红外光图像,以减少完成人脸认证和深度认证的时间。In the embodiment of the present application, the infrared light camera 40 collects the current infrared light image of the human face and the time-of-flight module 30 collects the current depth image of the human face. The order of the two may be arbitrary. For example, the infrared light camera 40 first collects the current infrared light image of the human face, and the time of flight module 30 then collects the current depth image of the human face; or the time of flight module 30 first collects the current depth image of the human face, and the infrared light camera 40 Then collect the current infrared light image of the human face. Further, the time-of-flight module 30 may collect the current depth image of the human face while the electronic device 100 performs face authentication, or the infrared light camera 40 may collect the current infrared light image of the human face while the electronic device 100 performs depth authentication. To reduce the time to complete face authentication and deep authentication.
在某些实施方式中,控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)是在人脸认证通过时进行的。也即是说,第二控制模块13可以用于在人脸认证通过时,控制飞行时间模组30采集人脸的当前深度图像。In some embodiments, the step of controlling the time-of-flight module 30 to collect the current depth image of the face (ie, 013) is performed when the face authentication is passed. That is to say, the second control module 13 can be used to control the time-of-flight module 30 to collect the current depth image of the face when the face authentication is passed.
具体地,电子装置100先通过红外光摄像头40采集人脸的当前红外光图像,然后根据当前红外光图像进行人脸认证。当人脸认证不通过时,电子装置100无需通过飞行时间模组30采集人脸的当前深度图像,直接判断为身份认证失败;当人脸认证通过时,电子装置100通过飞行时间模组30采集人脸的当前深度图像,并根据当前深度图像进行深度认证。由于在人脸认证不通过时,飞行时间模组30无需采集人脸的当前深度图像,有利于节省电子装置100的能耗。Specifically, the electronic device 100 first acquires a current infrared light image of a human face through the infrared light camera 40, and then performs face authentication according to the current infrared light image. When the face authentication fails, the electronic device 100 does not need to collect the current depth image of the face through the time-of-flight module 30, and directly determines that the identity authentication has failed; when the face authentication passes, the electronic device 100 collects the time-of-flight module 30 The current depth image of the face, and depth authentication is performed based on the current depth image. Since the time-of-flight module 30 does not need to collect the current depth image of the face when the face authentication fails, it is beneficial to save energy consumption of the electronic device 100.
在某些实施方式中,控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)是在深度认证通过时进行的。也即是说,第一控制模块11可以用于在深度认证通过时,控制红外光摄像头40采集人脸的当前红外光图像。In some embodiments, the step of controlling the infrared light camera 40 to collect the current infrared light image of the human face (ie, 011) is performed when the depth authentication passes. That is to say, the first control module 11 may be configured to control the infrared light camera 40 to collect a current infrared light image of a human face when the depth authentication passes.
具体地,电子装置100先通过飞行时间模组30采集人脸的当前深度图像,然后根据当前深度图像进行深度认证。当深度认证不通过时,电子装置100无需通过红外光摄像头40采集人脸的当前红外光图像,直接判断为身份认证失败;当深度认证通过时,电子装置100通过红外光摄像头40采集人脸的当前红外光图像,并根据当前红外光图像进行人脸认证。由于在深度认证不通过时,红外光摄像头40无需采集人脸的当前红外光图像,有利于节省电子装置100的能耗。Specifically, the electronic device 100 first collects the current depth image of the human face through the time-of-flight module 30, and then performs depth authentication according to the current depth image. When the deep authentication fails, the electronic device 100 does not need to collect the current infrared light image of the human face through the infrared light camera 40, and directly determines that the identity authentication has failed. When the deep authentication passes, the electronic device 100 collects the human face through the infrared light camera 40. The current infrared light image, and perform face authentication based on the current infrared light image. When the in-depth authentication fails, the infrared light camera 40 does not need to collect a current infrared light image of a human face, which is beneficial to saving power consumption of the electronic device 100.
在某些实施方式中,预定操作包括解锁、点亮电子装置100的显示屏103(如图3所示)、电子支付、打开电子装置100的预定应用程序中的至少一种。也即是说,用户可以直接通过进行人脸认证和深度认证,获得在电子装置100相应的操作权限,无需手动控制电子装置100执行预定操作,有利于提升用户体验,且安全性较高。In some embodiments, the predetermined operation includes at least one of unlocking, lighting the display screen 103 of the electronic device 100 (as shown in FIG. 3), electronic payment, and opening a predetermined application of the electronic device 100. That is to say, the user can directly obtain the corresponding operation authority on the electronic device 100 by performing face authentication and deep authentication, and does not need to manually control the electronic device 100 to perform a predetermined operation, which is beneficial to improving the user experience and has high security.
请参阅图4,在某些实施方式中,控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)和控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)是在电子装置100处于解锁过程中进行的,控制方法还包括:Please refer to FIG. 4. In some embodiments, the step of controlling the infrared camera 40 to collect the current infrared image of the human face (ie, 011) and the step of controlling the time of flight module 30 to collect the current depth image of the human face (ie, 013) ) Is performed during the unlocking process of the electronic device 100, and the control method further includes:
016:在加密过程中控制红外光摄像头40采集人脸的参考红外光图像;016: controlling the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process;
根据当前红外光图像进行人脸认证的步骤(即012)包括:The step of performing face authentication according to the current infrared light image (that is, 012) includes:
0122:判断当前红外光图像与参考红外光图像之间的第一相似度;0122: determine a first similarity between the current infrared light image and the reference infrared light image;
控制方法还包括:Control methods also include:
017:在加密过程中控制飞行时间模组30采集人脸的参考深度图像;017: controlling the time-of-flight module 30 to acquire a reference depth image of a human face during the encryption process;
根据当前深度图像进行深度认证的步骤(即014)包括:The steps (i.e. 014) for performing deep authentication based on the current depth image include:
0142:判断当前深度图像与参考深度图像之间的第二相似度;0142: determine the second similarity between the current depth image and the reference depth image;
在人脸认证和深度认证均通过时,控制电子装置100执行预定操作的步骤(即015)包括:When both the face authentication and the deep authentication pass, the step of controlling the electronic device 100 to perform a predetermined operation (that is, 015) includes:
0152:在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁。0152: Control the electronic device 100 to unlock when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
请参阅图5,在某些实施方式,第一控制模块11用于在电子装置100处于解锁过程中控制红外光摄像头40采集人脸的当前红外光图像。第二控制模块13用于在电子装置100处于解锁过程中控制飞行时间模组30采集人脸的当前深度图像。控制装置10还包括第四控制模块16和第五控制模块17。第一认证模块12包括第一认证单元122,第二认证模块14包括第二认证单元142,第三控制模块15包括第一控制单元152。第四控制模块16可用于执行016中的方法,第五控制模块17可用于执行017中的方法,第一认证单元122可用于执行0122中的方法,第二认证单元 142可用于执行0142中的方法,第一控制单元152可用于执行0152中的方法。Referring to FIG. 5, in some embodiments, the first control module 11 is configured to control the infrared light camera 40 to collect a current infrared light image of a human face while the electronic device 100 is in an unlocking process. The second control module 13 is configured to control the time-of-flight module 30 to collect a current depth image of a human face when the electronic device 100 is in an unlocking process. The control device 10 further includes a fourth control module 16 and a fifth control module 17. The first authentication module 12 includes a first authentication unit 122, the second authentication module 14 includes a second authentication unit 142, and the third control module 15 includes a first control unit 152. The fourth control module 16 can be used to execute the method in 016, the fifth control module 17 can be used to execute the method in 017, the first authentication unit 122 can be used to execute the method in 0122, and the second authentication unit 142 can be used to execute the method in 0142 Method, the first control unit 152 may be configured to execute the method in 0152.
也即是说,第四控制模块16可以用于在加密过程中控制红外光摄像头40采集人脸的参考红外光图像。第一认证单元122可以用于判断当前红外光图像与参考红外光图像之间的第一相似度。第五控制模块17可以用于在加密过程中控制飞行时间模组30采集人脸的参考深度图像。第二认证单元142可以用于判断当前深度图像与参考深度图像之间的第二相似度。第一控制单元152可以用于在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁。That is to say, the fourth control module 16 can be used to control the infrared light camera 40 to collect a reference infrared light image of a human face during the encryption process. The first authentication unit 122 may be configured to determine a first similarity between the current infrared light image and the reference infrared light image. The fifth control module 17 may be used to control the time-of-flight module 30 to collect a reference depth image of a human face during the encryption process. The second authentication unit 142 may be configured to determine a second similarity between the current depth image and the reference depth image. The first control unit 152 may be configured to control the electronic device 100 to be unlocked when the first similarity is greater than the first threshold and the second similarity is greater than the second threshold.
本申请实施方式中,电子装置100在加密过程中提前录入人脸的参考红外光图像和参考深度图像,以作为电子装置100解锁过程中进行人脸认证和深度认证的比对基准。In the embodiment of the present application, the electronic device 100 inputs the reference infrared light image and the reference depth image of the human face in advance during the encryption process, so as to serve as a comparison reference for performing face authentication and depth authentication during the unlocking process of the electronic device 100.
作为比对基准的参考深度图像可包括人脸多个不同角度的初始深度图像,多个初始深度图像可以在用户的头部偏转到不同角度后获取。例如,用户在显示屏103显示的内容的指引下,头部分别做左偏、右偏等偏转动作。在偏转过程中,飞行时间模组30采集人脸的多个初始深度图像。最终,参考深度图像包括了与人脸右偏对应的参考深度图像、与人脸正面对应的参考深度图像、与人脸左偏对应的参考深度图像。The reference depth image used as a comparison reference may include initial depth images of a human face at multiple different angles, and multiple initial depth images may be obtained after the user's head is deflected to different angles. For example, under the guidance of the content displayed on the display screen 103, the user performs deflection actions such as leftward and rightward deviations on the head, respectively. During the deflection process, the time-of-flight module 30 acquires multiple initial depth images of the human face. Finally, the reference depth image includes a reference depth image corresponding to the right side of the face, a reference depth image corresponding to the front side of the face, and a reference depth image corresponding to the left side of the face.
以图6为例,参考深度图像包括与人脸右偏对应的参考深度图像1、与人脸正面对应的参考深度图像2、与人脸左偏对应的参考深度图像3。Taking FIG. 6 as an example, the reference depth image includes a reference depth image 1 corresponding to the right side of the face, a reference depth image 2 corresponding to the front side of the face, and a reference depth image 3 corresponding to the left side of the face.
在一个实施方式中,在判断当前深度图像与参考深度图像之间的第二相似度时,电子装置100依次或并行判断当前深度图像与参考深度图像1之间的相似度1、当前深度图像与参考深度图像2之间的相似度2、当前深度图像与参考深度图像3之间的相似度3,并选取相似度1、相似度2、相似度3之中的最大值作为当前深度图像与参考深度图像之间的第二相似度。In one embodiment, when determining the second similarity between the current depth image and the reference depth image, the electronic device 100 determines the similarity between the current depth image and the reference depth image 1 sequentially or in parallel. Similarity between reference depth image 2 and similarity 3 between current depth image and reference depth image 3, and the maximum value among similarity 1, similarity 2, and similarity 3 is selected as the current depth image and reference Second similarity between depth images.
在另一个实施方式中,在判断当前深度图像与参考深度图像之间的第二相似度时,电子装置100先根据当前深度图像检测人脸相对于电子装置100的偏转方向及偏转角度,当人脸相对于电子装置100右偏90度时,电子装置100选取参考深度图像1作为与当前深度图像进行比对的参考深度图像,也即是说,电子装置100将当前深度图像与参考深度图像1之间的相似度1作为当前深度图像与参考深度图像之间的第二相似度。当人脸相对于电子装置100未发生偏转时(即当前深度图像为人脸正面图像),电子装置100选取参考深度图像2作为与当前深度图像进行比对的参考深度图像,也即是说,电子装置100将当前深度图像与参考深度图像2之间的相似度2作为当前深度图像与参考深度图像之间的第二相似度。当人脸相对于电子装置100左偏90度时,电子装置100选取参考深度图像3作为与当前深度图像进行比对的参考深度图像,也即是说,电子装置100将当前深度图像与参考深度图像3之间的相似度3作为当前深度图像与参考深度图像之间的第二相似度。In another embodiment, when determining the second similarity between the current depth image and the reference depth image, the electronic device 100 first detects the deflection direction and deflection angle of the human face relative to the electronic device 100 according to the current depth image. When the face is 90 degrees to the right of the electronic device 100, the electronic device 100 selects the reference depth image 1 as a reference depth image for comparison with the current depth image, that is, the electronic device 100 compares the current depth image with the reference depth image 1. The similarity 1 between them is the second similarity between the current depth image and the reference depth image. When the human face is not deflected relative to the electronic device 100 (that is, the current depth image is a frontal image of the face), the electronic device 100 selects the reference depth image 2 as a reference depth image for comparison with the current depth image, that is, the electronic The device 100 uses the similarity 2 between the current depth image and the reference depth image 2 as the second similarity between the current depth image and the reference depth image. When the human face is 90 degrees left from the electronic device 100, the electronic device 100 selects the reference depth image 3 as a reference depth image for comparison with the current depth image, that is, the electronic device 100 compares the current depth image with the reference depth The similarity 3 between the images 3 serves as a second similarity between the current depth image and the reference depth image.
类似地,作为比对基准的参考红外光图像也可包括人脸多个不同角度的初始红外光图像,多个初始红外光图像的获取方式与多个初始深度图像的获取方式类似,确定第一相似度的方式也与确定第二相似度的方式类似,在此不再详细说明。本申请实施方式中,在用户需要进行人脸认证和深度验证时,用户可以采用任意偏转角度进行人脸认证和深度认证,而不要求严格按照某个角度对准红外光摄像头40和飞行时间模组30,有利于提升用户体验。Similarly, the reference infrared light image used as a reference for comparison may also include initial infrared light images of the human face at multiple different angles. The acquisition method of the multiple initial infrared light images is similar to the acquisition method of the multiple initial depth images. The manner of similarity is also similar to the manner of determining the second similarity, and will not be described in detail here. In the embodiment of the present application, when the user needs to perform face authentication and depth verification, the user can use any deflection angle for face authentication and depth authentication, without requiring the infrared light camera 40 and time-of-flight mode to be aligned strictly at an angle. Group 30 is conducive to improving user experience.
在确定第一相似度后,电子装置100根据第一相似度进行人脸认证。在确定第二相似度后,电子装置100根据第二相似度进行身份认证。以第一阈值为80%、第二阈值为70%为例,当第一相似度大于70%、第二相似度大于70%时,人脸认证和深度认证均通过,电子装置100执行预定操作。需要指出的是,第一阈值与第二阈值为相似度的百分比,第一阈值与第二阈值可以为相同的值,也可以为不同的值。After determining the first similarity, the electronic device 100 performs face authentication according to the first similarity. After determining the second similarity, the electronic device 100 performs identity authentication according to the second similarity. Taking the first threshold value as 80% and the second threshold value as 70%, for example, when the first similarity is greater than 70% and the second similarity is greater than 70%, both face authentication and deep authentication pass, and the electronic device 100 performs a predetermined operation. . It should be noted that the first threshold and the second threshold are percentages of similarity, and the first threshold and the second threshold may be the same value or different values.
请再次参阅图4,在某些实施方式中,控制方法还包括:Please refer to FIG. 4 again. In some embodiments, the control method further includes:
018:在第一相似度大于第三阈值而第二相似度小于第四阈值时,锁定电子装置100;其中,第三阈值大于第一阈值,第四阈值小于第二阈值。018: The electronic device 100 is locked when the first similarity is larger than the third threshold and the second similarity is smaller than the fourth threshold; wherein the third threshold is larger than the first threshold and the fourth threshold is smaller than the second threshold.
请再次参阅图5,在某些实施方式中,控制装置10还包括锁定模块18。锁定模块18可用于执行018中的方法。Please refer to FIG. 5 again. In some embodiments, the control device 10 further includes a locking module 18. The locking module 18 may be used to perform the method in 018.
也即是说,锁定模块18可以用于在第一相似度大于第三阈值而第二相似度小于第四阈值时,锁定电子装置100。其中,第三阈值大于第一阈值,第四阈值小于第二阈值。That is, the locking module 18 may be used to lock the electronic device 100 when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold. The third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
具体地,仍以第一阈值为80%、第二阈值为70%为例,此时,第三阈值可以为95%,第四阈值可以为30%。当第一相似度为99%、第二相似度为20%时,由于第一相似度大于第三阈值,说明人脸的当前红外光图像与参考红外光图像的相似度很高,而第二相似度远小于第四阈值,说明人脸的当前深度图像与参考深度图像的相似度很低,则很有可能是非机主采用照片或其他仿照物来进行身份认证,此时,电子装置100将进入锁定状态,以保护电子装置100内信息的安全。Specifically, the first threshold is 80% and the second threshold is 70%. In this case, the third threshold may be 95%, and the fourth threshold may be 30%. When the first similarity is 99% and the second similarity is 20%, because the first similarity is greater than the third threshold, it indicates that the current infrared light image of the human face is highly similar to the reference infrared light image, and the second The similarity is much smaller than the fourth threshold, which indicates that the similarity between the current depth image of the face and the reference depth image is very low, it is likely that the non-owner uses a photo or other imitation to perform identity authentication. At this time, the electronic device 100 will A locked state is entered to protect the information in the electronic device 100.
需要指出的是,第一阈值、第二阈值、第三阈值和第四阈值的设置并不限于上述举例,用户可以根据自身需要来设置第一阈值、第二阈值、第三阈值和第四阈值,或者在电子装置100出厂前,第一阈值、第二阈值、第三阈值和第四阈值已经被设置好。It should be noted that the settings of the first threshold, the second threshold, the third threshold, and the fourth threshold are not limited to the above examples. The user can set the first threshold, the second threshold, the third threshold, and the fourth threshold according to his own needs. Or, before the electronic device 100 leaves the factory, the first threshold, the second threshold, the third threshold, and the fourth threshold have been set.
请参阅图7,在某些实施方式中,控制方法还包括:Referring to FIG. 7, in some embodiments, the control method further includes:
019:识别当前深度图像中的目标特征点;019: identify target feature points in the current depth image;
020:根据目标特征点将当前深度图像划分为第一区域和第二区域,其中,第一区域包括目标特征点;020: Divide the current depth image into a first region and a second region according to the target feature points, where the first region includes the target feature points;
参考深度图像包括第一参考深度图像和第二参考深度图像,判断当前深度图像与参考深度图像之间的第二相似度的步骤(即0142)包括:The reference depth image includes a first reference depth image and a second reference depth image. The step of determining a second similarity between the current depth image and the reference depth image (that is, 0142) includes:
01422:判断第一区域与第一参考深度图像之间的第一子相似度;01422: Determine a first sub-similarity between the first region and the first reference depth image;
01424:判断第二区域与第二参考深度图像之间的第二子相似度;01424: Determine a second sub-similarity between the second region and the second reference depth image;
第二阈值包括第一子阈值和第二子阈值,第一子阈值大于第二子阈值,在第一相似度大于第一阈值且第二相似度大于第二阈值时,控制电子装置100解锁的步骤(即0152)包括:The second threshold includes a first sub-threshold and a second sub-threshold. The first sub-threshold is greater than the second sub-threshold. When the first similarity is greater than the first threshold and the second similarity is greater than the second threshold, controlling the electronic device 100 to unlock the The steps (ie, 0152) include:
01522:在第一子相似度大于第一子阈值,第二子相似度大于第二子阈值,且第二相似度大于第二阈值时,控制电子装置100解锁。01522: When the first sub similarity is greater than the first sub threshold, the second sub similarity is greater than the second sub threshold, and the second similarity is greater than the second threshold, the electronic device 100 is controlled to unlock.
请参阅图8,在某些实施方式中,控制装置10还包括第一识别模块19和划分模块20。第二认证单元142包括第一判断子单元1422和第二判断子单元1424。第一控制单元152包括控制子单元1522。第一识别模块19可用于执行019中的方法,划分模块20可用于执行020中的方法,第一判断子单元1422可用于执行01422中的方法,第二判断子单元1424可用于执行01424中的方法,控制子单元1522可用于执行01522中的方法。Referring to FIG. 8, in some embodiments, the control device 10 further includes a first identification module 19 and a division module 20. The second authentication unit 142 includes a first judgment sub-unit 1422 and a second judgment sub-unit 1424. The first control unit 152 includes a control sub-unit 1522. The first identification module 19 may be used to execute the method in 019, the division module 20 may be used to execute the method in 020, the first judgment subunit 1422 may be used to execute the method in 01422, and the second judgment subunit 1424 may be used to execute the method in 01224 Method, the control sub-unit 1522 may be used to execute the method in 01522.
也即是说,第一识别模块19可以用于识别当前深度图像中的目标特征点。划分模块20可以用于根据目标特征点将当前深度图像划分为第一区域和第二区域,第一区域包括目标特征点。第一判断子单元1422可以用于判断第一区域与第一参考深度图像之间的第一子相似度。第二判断子单元1424可以用于判断第二区域与第二参考深度图像之间的第二子相似度。控制子单元1522可以用于在第一子相似度大于第一子阈值,第二子相似度大于第二子阈值,且第二相似度大于第二阈值时,控制电子装置100解锁。That is to say, the first recognition module 19 can be used for identifying target feature points in the current depth image. The dividing module 20 may be configured to divide the current depth image into a first region and a second region according to the target feature point, and the first region includes the target feature point. The first determining sub-unit 1422 may be configured to determine a first sub-similarity between the first region and the first reference depth image. The second determination sub-unit 1424 may be used to determine a second sub-similarity between the second region and the second reference depth image. The control sub-unit 1522 may be configured to control the electronic device 100 to unlock when the first sub-similarity is greater than the first sub-threshold, the second sub-similarity is greater than the second sub-threshold, and the second similarity is greater than the second threshold.
具体地,目标特征点可以为与人脸的目标器官(例如眼睛、鼻子、嘴巴等)对应的特征点。由于目标特征点的属性不易发生改变,而其他特征点(例如头发、眉毛等)可能会随着个人喜好(例如理发、修眉等)发生改变,因此,本申请实施方式中,电子装置100可将当前深度图像划分为第一区域和第二区域(如图9(a)所示),使得目标特征点包括在第一区域内。与之对应的,参考深度图像也可以划分为第一参考深度图像和第二参考深度图像(如图9(b)所示)。第一区域与第一参考深度图像之间的第一子相似度、第二区域与第二参考深度图像之间的第二子相似度分别对应不同的相似度阈值,即第一子阈值、第二子阈值。进一步地,由于目标特征点的属性不易发生改变,第一子阈值可以大于第二子阈值,以提高身份认证的可靠性。Specifically, the target feature point may be a feature point corresponding to a target organ (for example, eyes, nose, mouth, etc.) of a human face. Because the attributes of the target feature points are not easy to change, and other feature points (such as hair, eyebrows, etc.) may change according to personal preferences (such as haircuts, eyebrow trimming, etc.), in the embodiment of the present application, the electronic device 100 may The current depth image is divided into a first region and a second region (as shown in FIG. 9 (a)), so that the target feature points are included in the first region. Correspondingly, the reference depth image may also be divided into a first reference depth image and a second reference depth image (as shown in FIG. 9 (b)). The first sub-similarity between the first region and the first reference depth image, and the second sub-similarity between the second region and the second reference depth image respectively correspond to different similarity thresholds, that is, the first sub-threshold, the first Second child threshold. Further, since the attributes of the target feature points are not easily changed, the first sub-threshold may be larger than the second sub-threshold to improve the reliability of identity authentication.
当然,在其他实施方式中,电子装置100还可以根据目标特征点将当前深度图像划分为更多个区域,例如第一区域、第二区域、第三区域等,以进行精确的身份认证。Of course, in other embodiments, the electronic device 100 may further divide the current depth image into more regions, such as the first region, the second region, the third region, etc., according to the target feature points, for accurate identity authentication.
请参阅图10,在某些实施方式中,控制红外光摄像头40采集人脸的当前红外光图像的步骤(即011)包括:Referring to FIG. 10, in some embodiments, the step (ie 011) of controlling the infrared light camera 40 to collect a current infrared light image of a human face includes:
0112:控制红外光摄像头40采集多帧当前红外光图像;0112: Control infrared light camera 40 to collect multiple current infrared light images;
控制方法还包括:Control methods also include:
021:识别每帧当前红外光图像中的多个目标特征点;021: identify multiple target feature points in each frame of the current infrared light image;
022:根据多帧当前红外光图像中多个目标特征点之间的相对位置变化判断多个目标特征点 是否处于运动状态;和022: Determine whether the plurality of target feature points are in a moving state according to the relative position changes between the plurality of target feature points in the multi-frame current infrared light image; and
在多个目标特征点处于运动状态时,进入根据当前红外光图像进行人脸认证的步骤(即012),或者进入控制飞行时间模组30采集人脸的当前深度图像的步骤(即013)。When multiple target feature points are in a moving state, a step of performing face authentication based on the current infrared light image (ie, 012), or a step of controlling the time of flight module 30 to collect a current depth image of the face (ie, 013) is entered.
请参阅图11,在某些实施方式中,第一控制模块11还包括第二控制单元112。控制装置10还包括第二识别模块21和判断模块22。第二控制单元112用于执行0112中的方法,第二识别模块21用于执行021中的方法,判断模块22用于执行022中的方法。Referring to FIG. 11, in some embodiments, the first control module 11 further includes a second control unit 112. The control device 10 further includes a second identification module 21 and a determination module 22. The second control unit 112 is configured to execute the method in 0112, the second identification module 21 is used to execute the method in 021, and the determination module 22 is used to execute the method in 022.
也即是说,第二控制单元112可以用于控制红外光摄像头40采集多帧当前红外光图像。第二识别模块21可以用于识别每帧当前红外光图像中的多个目标特征点。判断模块22可以用于根据多帧当前红外光图像中多个目标特征点之间的相对位置变化判断多个目标特征点是否处于运动状态。第一认证模块12用于在多个目标特征点处于运动状态时,根据当前红外光图像进行人脸认证;或者,第二控制模块13可以用于在多个目标特征点处于运动状态时,控制飞行时间模组30采集人脸的当前深度图像。That is to say, the second control unit 112 may be configured to control the infrared light camera 40 to collect multiple frames of current infrared light images. The second recognition module 21 may be used to identify multiple target feature points in each frame of the current infrared light image. The judging module 22 may be configured to judge whether the plurality of target feature points are in a moving state according to a relative position change between the plurality of target feature points in the multiple frames of the current infrared light image. The first authentication module 12 is configured to perform face authentication according to the current infrared light image when a plurality of target feature points are in a moving state; or the second control module 13 may be used to control the plurality of target feature points when in a moving state. The time-of-flight module 30 captures a current depth image of a human face.
请参阅图12,目标特征点可以为人脸的目标器官(例如眼睛、鼻子、嘴巴等)中的特征点。本申请实施方式以目标特征点为嘴巴的上嘴唇特征点A和下嘴唇特征点B为例。多帧当前红外光图像为至少两帧当前红外光图像。在图12所示的例子中,第一帧当前红外光图像的嘴巴处于闭合状态,目标特征点A与目标特征点B之间具有一定距离。第二帧当前红外光图像的嘴巴处于张开状态,目标特征点A与目标特征点B重合。电子装置100根据第一帧当前红外光图像和第二帧当前红外光图像中,目标特征点A与目标特征点B的相对位置变化,判断目标特征点A和目标特征点B处于运动状态,即可说明待测对象是活体。此时,电子装置100才根据当前红外光图像进行人脸认证或者控制飞行时间模组30采集人脸的当前深度图像以进行深度认证,不仅可以节省电子装置100的能耗,而且可以避免非机主采用照片或其他仿照物来进行身份认证,身份认证的可靠性较高。Referring to FIG. 12, the target feature point may be a feature point in a target organ (for example, eyes, nose, mouth, etc.) of a human face. In the embodiment of the present application, the target feature point is the upper lip feature point A and the lower lip feature point B of the mouth as examples. The multi-frame current infrared light image is at least two frames of the current infrared light image. In the example shown in FIG. 12, the mouth of the current infrared light image in the first frame is closed, and there is a certain distance between the target feature point A and the target feature point B. The mouth of the current infrared light image in the second frame is open, and the target feature point A and the target feature point B coincide. The electronic device 100 determines that the target feature point A and the target feature point B are in a moving state according to a change in the relative position of the target feature point A and the target feature point B in the first frame of the current infrared light image and the second frame of the current infrared light image. It can be explained that the test object is a living body. At this time, the electronic device 100 performs face authentication based on the current infrared light image or controls the time-of-flight module 30 to collect the current depth image of the face for deep authentication, which can not only save the energy consumption of the electronic device 100, but also avoid non-computer The host uses photos or other imitations for identity authentication, and the reliability of identity authentication is high.
请参阅图13,本申请实施方式的电子装置100包括飞行时间模组30、红外光摄像头40、一个或多个处理器50、存储器60以及一个或多个程序。其中,一个或多个程序被存储在存储器60中,并且被配置由一个或多个处理器50执行,程序包括用于执行上述任一实施方式的电子装置100的控制方法的指令。Referring to FIG. 13, an electronic device 100 according to an embodiment of the present application includes a time-of-flight module 30, an infrared light camera 40, one or more processors 50, a memory 60, and one or more programs. Among them, one or more programs are stored in the memory 60 and configured to be executed by one or more processors 50, and the programs include instructions for executing the control method of the electronic device 100 according to any one of the embodiments described above.
例如,程序包括用于执行以下电子装置100的控制方法的指令:For example, the program includes instructions for executing the following control methods of the electronic device 100:
011:控制红外光摄像头40采集人脸的当前红外光图像;011: control the infrared light camera 40 to collect the current infrared light image of the human face;
012:根据当前红外光图像进行人脸认证;012: Face authentication according to the current infrared light image;
013:控制飞行时间模组30采集人脸的当前深度图像;013: controlling the time-of-flight module 30 to collect a current depth image of a human face;
014:根据当前深度图像进行深度认证;和014: depth authentication based on the current depth image; and
015:在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。015: When both face authentication and depth authentication pass, control the electronic device 100 to perform a predetermined operation.
请参阅图14,本申请实施方式的计算机可读存储介质200包括与电子装置100结合使用的计算机程序。计算机程序可被处理器50执行以完成上述任一实施方式的电子装置100的控制方法。Referring to FIG. 14, a computer-readable storage medium 200 according to an embodiment of the present application includes a computer program used in conjunction with the electronic device 100. The computer program may be executed by the processor 50 to complete the control method of the electronic device 100 according to any one of the above embodiments.
例如,计算机程序可被处理器50执行以完成以下电子装置100的控制方法:For example, the computer program may be executed by the processor 50 to perform the following control method of the electronic device 100:
011:控制红外光摄像头40采集人脸的当前红外光图像;011: control the infrared light camera 40 to collect the current infrared light image of the human face;
012:根据当前红外光图像进行人脸认证;012: Face authentication according to the current infrared light image;
013:控制飞行时间模组30采集人脸的当前深度图像;013: controlling the time-of-flight module 30 to collect a current depth image of a human face;
014:根据当前深度图像进行深度认证;和014: depth authentication based on the current depth image; and
015:在人脸认证和深度认证均通过时,控制电子装置100执行预定操作。015: When both face authentication and depth authentication pass, control the electronic device 100 to perform a predetermined operation.
示例性的,本申请实施方式的飞行时间模组30可具有如下结构。Exemplarily, the time of flight module 30 according to the embodiment of the present application may have the following structure.
请参阅图15至图18,飞行时间模组30包括第一基板组件31、垫块32、光发射器33及光接收器34。第一基板组件31包括互相连接的第一基板311及柔性电路板312。垫块32设置在第一基板311上。光发射器33用于向外发射光信号,光发射器33设置在垫块32上。柔性电路板312弯折且柔性电路板312的一端连接第一基板311,另一端连接光发射器33。光接收器34设置在第一基板311上,光接收器34用于接收被反射回的光发射器33发射的光信号,光接收器34包括壳体341及设置在壳体341上的光学元件342,壳体341与垫块32连接成一体。Referring to FIGS. 15 to 18, the time-of-flight module 30 includes a first substrate assembly 31, a pad 32, a light transmitter 33 and a light receiver 34. The first substrate assembly 31 includes a first substrate 311 and a flexible circuit board 312 connected to each other. The pad 32 is disposed on the first substrate 311. The light transmitter 33 is used to emit light signals outward, and the light transmitter 33 is disposed on the pad 32. The flexible circuit board 312 is bent and one end of the flexible circuit board 312 is connected to the first substrate 311 and the other end is connected to the light emitter 33. The light receiver 34 is disposed on the first substrate 311. The light receiver 34 is configured to receive the light signal emitted by the reflected light transmitter 33. The light receiver 34 includes a casing 341 and an optical element disposed on the casing 341. 342, the casing 341 and the pad 32 are connected into a whole.
本申请实施方式的电子装置100中,由于光发射器33设置在垫块32上,垫块32可以垫高光发射器33的高度,进而提高光发射器33的出射面的高度,光发射器33发射的光信号不易被光接收器34遮挡,使得光信号能够完全照射到被测物体上。In the electronic device 100 according to the embodiment of the present application, since the light emitter 33 is disposed on the pad 32, the pad 32 can heighten the height of the light emitter 33, thereby increasing the height of the light emitting surface of the light emitter 33, and the light emitter 33 The emitted light signal is not easily blocked by the light receiver 34, so that the light signal can be completely irradiated on the measured object.
具体地,第一基板组件31包括第一基板311及柔性电路板312。第一基板311可以是印刷线路板或柔性线路板,第一基板311上可以铺设有飞行时间模组30的控制线路等。柔性电路板312的一端可以连接在第一基板311上,柔性电路板312可以发生一定角度的弯折,使得柔性电路板312两端连接的器件的相对位置可以有较多选择。Specifically, the first substrate assembly 31 includes a first substrate 311 and a flexible circuit board 312. The first substrate 311 may be a printed circuit board or a flexible circuit board, and the control circuit of the time of flight module 30 may be laid on the first substrate 311. One end of the flexible circuit board 312 can be connected to the first substrate 311, and the flexible circuit board 312 can be bent at an angle, so that the relative positions of the devices connected at both ends of the flexible circuit board 312 can be selected.
请参阅图15及图19,垫块32设置在第一基板311上。在一个例子中,垫块32与第一基板311接触且承载在第一基板311上,具体地,垫块32可以通过胶粘等方式与第一基板311结合。垫块32的材料可以是金属、塑料等。在本申请实施例中,垫块32与第一基板311结合的面可以是平面,垫块32与该结合的面相背的面也可以是平面,使得光发射器33设置在垫块32上时具有较好的平稳性。Referring to FIGS. 15 and 19, the pad 32 is disposed on the first substrate 311. In one example, the pad 32 is in contact with the first substrate 311 and is carried on the first substrate 311. Specifically, the pad 32 may be combined with the first substrate 311 by means of adhesion or the like. The material of the spacer 32 may be metal, plastic, or the like. In the embodiment of the present application, a surface where the pad 32 is combined with the first substrate 311 may be a flat surface, and a surface opposite to the combined surface of the pad 32 may be a flat surface, so that when the light emitter 33 is disposed on the pad 32 Has better stability.
光发射器33用于向外发射光信号,具体地,光信号可以是红外光,光信号可以是向被测物体发射的点阵光斑,光信号以一定的发散角从光发射器33中射出。光发射器33设置在垫块32上,在本申请实施例中,光发射器33设置在垫块32的与第一基板311相背的一侧,或者说,垫块32将第一基板311及光发射器33间隔开,以使光发射器33与第一基板311之间形成高度差。光发射器33还与柔性电路板312连接,柔性电路板312弯折设置,柔性电路板312的一端连接第一基板311,另一端连接光发射器33,以将光发射器33的控制信号从第一基板311传输到光发射器33,或将光发射器33的反馈信号(例如光发射器33的发射光信号的时间信息、频率信息,光发射器33的温度信息等)传输到第一基板311。The light transmitter 33 is configured to emit an optical signal outwards. Specifically, the light signal may be infrared light, and the light signal may be a lattice spot emitted to the measured object. The light signal is emitted from the light transmitter 33 at a certain divergence angle. . The light emitter 33 is disposed on the pad 32. In the embodiment of the present application, the light emitter 33 is disposed on the side of the pad 32 opposite to the first substrate 311, or in other words, the pad 32 attaches the first substrate 311 And the light emitter 33 are spaced apart from each other so that a height difference is formed between the light emitter 33 and the first substrate 311. The light transmitter 33 is also connected to the flexible circuit board 312. The flexible circuit board 312 is bent and arranged. One end of the flexible circuit board 312 is connected to the first substrate 311, and the other end is connected to the light transmitter 33. The first substrate 311 is transmitted to the light transmitter 33, or a feedback signal of the light transmitter 33 (for example, time information, frequency information of the light signal transmitted by the light transmitter 33, temperature information of the light transmitter 33, etc.) is transmitted to the first Substrate 311.
请参阅图15、图16及图18,光接收器34用于接收被反射回的光发射器33发射的光信号。光接收器34设置在第一基板311上,且光接收器34和第一基板311的接触面与垫块32和第一基板311的接触面基本齐平设置(即,二者的安装起点是在同一平面上)。具体地,光接收器34包括壳体341及光学元件342。壳体341设置在第一基板311上,光学元件342设置在壳体341上,壳体341可以是光接收器34的镜座及镜筒,光学元件342可以是设置在壳体341内的透镜等元件。进一步地,光接收器34还可以包括感光芯片(图未示),由被测物体反射回的光信号通过光学元件342作用后照射到感光芯片中,感光芯片对该光信号产生响应。飞行时间模组30计算光发射器33发出光信号与感光芯片接收经被测物体反射该光信号之间的时间差,并进一步获取被测物体的深度信息,该深度信息可以用于测距、用于生成深度图像或用于三维建模等。本申请实施例中,壳体341与垫块32连接成一体。具体地,壳体341与垫块32可以是一体成型,例如壳体341与垫块32的材料相同并通过注塑、切削等方式一体成型;或者壳体341与垫块32的材料不同,二者通过双色注塑形成等方式一体成型。壳体341与垫块32也可以是分别成型,二者形成配合结构,在组装飞行时间模组30时,可以先将壳体341与垫块32连接成一体,再共同设置在第一基板311上;也可以先将壳体341与垫块32中的一个设置在第一基板311上,再将另一个设置在第一基板311上且连接成一体。Please refer to FIG. 15, FIG. 16 and FIG. 18. The light receiver 34 is configured to receive an optical signal emitted by the reflected light transmitter 33. The light receiver 34 is disposed on the first substrate 311, and the contact surface between the light receiver 34 and the first substrate 311 is substantially flush with the contact surface between the pad 32 and the first substrate 311 (that is, the installation starting point of the two is On the same plane). Specifically, the light receiver 34 includes a housing 341 and an optical element 342. The casing 341 is disposed on the first substrate 311, and the optical element 342 is disposed on the casing 341. The casing 341 may be a lens holder and a lens barrel of the light receiver 34, and the optical element 342 may be a lens disposed in the casing 341. And other components. Further, the light receiver 34 may further include a photosensitive chip (not shown), and the optical signal reflected by the measured object is irradiated into the photosensitive chip through the action of the optical element 342, and the photosensitive chip generates a response to the optical signal. The time-of-flight module 30 calculates the time difference between the light signal sent by the light transmitter 33 and the light sensor receiving the light signal reflected by the measured object, and further obtains the depth information of the measured object. The depth information can be used for ranging, For generating depth images or for 3D modeling. In the embodiment of the present application, the housing 341 and the cushion block 32 are integrally connected. Specifically, the housing 341 and the spacer 32 may be integrally formed. For example, the materials of the housing 341 and the spacer 32 are the same and are integrally formed by injection molding, cutting, or the like; or the materials of the housing 341 and the spacer 32 are different, both Integrated molding by two-color injection molding. The housing 341 and the pad 32 may also be separately formed, and the two form a matching structure. When assembling the time-of-flight module 30, the housing 341 and the pad 32 may be connected into one body, and then the two boards may be provided on the first substrate 311 together. Alternatively, one of the housing 341 and the pad 32 may be disposed on the first substrate 311, and then the other may be disposed on the first substrate 311 and connected together.
本申请实施方式的电子装置100中,光发射器33的出射面可以与光接收器34的入射面齐平,也可以是光发射器33的出射面略低于光接收器34的入射面,还可以是光发射器33的出射面略高于光接收器34的入射面。In the electronic device 100 according to the embodiment of the present application, the exit surface of the light transmitter 33 may be flush with the entrance surface of the light receiver 34, or the exit surface of the light transmitter 33 may be slightly lower than the entrance surface of the light receiver 34. It may also be that the exit surface of the light emitter 33 is slightly higher than the entrance surface of the light receiver 34.
请参阅图17及图19,在某些实施方式中,第一基板组件31还包括加强板313,加强板313结合在第一基板311的与垫块32相背的一侧。加强板313可以覆盖第一基板311的一个侧面,加强板313可以用于增加第一基板311的强度,避免第一基板311发生形变。另外,加强板313可以由导电的材料制成,例如金属或合金等,当飞行时间模组30安装在电子装置100上时,可以将加强板313与机壳101电连接,以使加强板313接地,并有效地减少外部元件的静电对飞行时间模组30的干扰。Referring to FIG. 17 and FIG. 19, in some embodiments, the first substrate assembly 31 further includes a reinforcing plate 313. The reinforcing plate 313 is coupled to a side of the first substrate 311 opposite to the pad 32. The reinforcing plate 313 may cover one side of the first substrate 311, and the reinforcing plate 313 may be used to increase the strength of the first substrate 311 and prevent deformation of the first substrate 311. In addition, the reinforcing plate 313 may be made of a conductive material, such as a metal or an alloy. When the time-of-flight module 30 is installed on the electronic device 100, the reinforcing plate 313 and the casing 101 may be electrically connected to make the reinforcing plate 313. Grounding and effectively reducing the interference of static electricity from external components on the time of flight module 30.
请参阅图19至图21,在某些实施方式中,垫块32包括伸出第一基板311的侧边缘3111的凸出部325,柔性电路板312绕凸出部325弯折设置。具体地,垫块32的一部分直接承载在第一基板311上,另一部分未与第一基板311直接接触,且相对第一基板311的侧边缘3111伸出形 成凸出部325。柔性电路板312可以连接在该侧边缘3111,柔性电路板312绕凸出部325弯折,或者说,柔性电路板312弯折以使凸出部325位于柔性电路板312弯折围成的空间内,当柔性电路板312受到外力的作用时,柔性电路板312不会向内塌陷而导致弯折的程度过大,造成柔性电路板312损坏。Please refer to FIGS. 19 to 21. In some embodiments, the pad 32 includes a protruding portion 325 protruding from the side edge 3111 of the first substrate 311, and the flexible circuit board 312 is bent around the protruding portion 325. Specifically, a part of the pad 32 is directly carried on the first substrate 311, and another part is not in direct contact with the first substrate 311, and protrudes to form a protruding portion 325 with respect to the side edge 3111 of the first substrate 311. The flexible circuit board 312 may be connected to the side edge 3111. The flexible circuit board 312 is bent around the protrusion 325, or the flexible circuit board 312 is bent so that the protrusion 325 is located in the space surrounded by the flexible circuit board 312. Inside, when the flexible circuit board 312 is subjected to an external force, the flexible circuit board 312 will not collapse inward and cause excessive bending, which will cause damage to the flexible circuit board 312.
进一步地,如图20所示,在某些实施方式中,凸出部325的外侧面3251为平滑的曲面(例如圆柱的外侧面等),即凸出部325的外侧面3251不会形成曲率突变,即使柔性电路板312贴覆着凸出部325的外侧面3251弯折,柔性电路板312的弯折程度也不会过大,进一步确保柔性电路板312的完好。Further, as shown in FIG. 20, in some embodiments, the outer surface 3251 of the protruding portion 325 is a smooth curved surface (such as the outer surface of a cylinder, etc.), that is, the outer surface 3251 of the protruding portion 325 does not form a curvature. Suddenly, even if the flexible circuit board 312 is bent on the outer side 3251 of the protruding portion 325, the degree of bending of the flexible circuit board 312 will not be too large, which further ensures the integrity of the flexible circuit board 312.
请参阅图15至图17,在某些实施方式中,飞行时间模组30还包括连接器36,连接器36连接在第一基板311上。连接器36用于连接第一基板组件31及外部设备。连接器36与柔性电路板312分别连接在第一基板311的相背的两端。连接器36可以是连接座或连接头,当飞行时间模组30安装在机壳101内时,连接器36可以与电子装置100的主板连接,以使得飞行时间模组30与主板电连接。连接器36与柔性电路板312分别连接在第一基板311的相背的两端,例如可以是分别连接在第一基板311的左右两端,或者分别连接在第一基板311的前后两端。Please refer to FIGS. 15 to 17. In some embodiments, the time-of-flight module 30 further includes a connector 36 connected to the first substrate 311. The connector 36 is used to connect the first substrate assembly 31 and an external device. The connector 36 and the flexible circuit board 312 are respectively connected to opposite ends of the first substrate 311. The connector 36 may be a connection base or a connector. When the time-of-flight module 30 is installed in the casing 101, the connector 36 may be connected to the main board of the electronic device 100 so that the time-of-flight module 30 is electrically connected to the main board. The connector 36 and the flexible circuit board 312 are respectively connected to opposite ends of the first substrate 311. For example, the connectors 36 and the flexible circuit board 312 may be respectively connected to the left and right ends of the first substrate 311, or may be respectively connected to the front and rear ends of the first substrate 311.
请参阅图16及图17,在某些实施方式中,光发射器33与光接收器34沿一直线L排列,连接器36与柔性电路板312分别位于直线L的相背的两侧。可以理解,由于光发射器33与光接收器34排列设置,因此沿直线L的方向上,飞行时间模组30的尺寸可能已经较大。连接器36与柔性电路板312分别设置在直线L的相背的两侧,不会再增加飞行时间模组30沿直线L方向上的尺寸,进而便于将飞行时间模组30安装在电子装置100的机壳101上。Referring to FIGS. 16 and 17, in some embodiments, the light transmitter 33 and the light receiver 34 are arranged along a straight line L, and the connector 36 and the flexible circuit board 312 are located on opposite sides of the straight line L, respectively. It can be understood that, since the light transmitter 33 and the light receiver 34 are arranged in an array, the size of the time-of-flight module 30 may be larger in the direction of the straight line L. The connector 36 and the flexible circuit board 312 are respectively disposed on opposite sides of the straight line L, which will not increase the size of the time-of-flight module 30 in the direction of the straight line L, thereby facilitating the installation of the time-of-flight module 30 on the electronic device 100 On the chassis 101.
请参阅图19及图20,在某些实施方式中,垫块32与第一基板311结合的一侧开设有收容腔323。飞行时间模组30还包括设置在第一基板311上的电子元件35,电子元件35收容在收容腔323内。电子元件35可以是电容、电感、晶体管、电阻等元件,电子元件35可以与铺设在第一基板311上的控制线路电连接,并用于驱动或控制光发射器33或光接收器34工作。电子元件35收容在收容腔323内,合理地利用了垫块32内的空间,不需要增加第一基板311的宽度来设置电子元件35,利于减小飞行时间模组30的整体尺寸。收容腔323的数量可以是一个或多个,多个收容腔323可以是互相间隔的,在安装垫块32时,可以将收容腔323与电子元件35的位置对准并将垫块32设置在第一基板311上。Referring to FIGS. 19 and 20, in some embodiments, a receiving cavity 323 is defined on a side where the pad 32 is combined with the first substrate 311. The time-of-flight module 30 further includes an electronic component 35 disposed on the first substrate 311, and the electronic component 35 is contained in the receiving cavity 323. The electronic component 35 may be an element such as a capacitor, an inductor, a transistor, or a resistor. The electronic component 35 may be electrically connected to a control line laid on the first substrate 311 and used to drive or control the operation of the light transmitter 33 or the light receiver 34. The electronic component 35 is contained in the receiving cavity 323, and the space in the pad 32 is used reasonably. It is not necessary to increase the width of the first substrate 311 to set the electronic component 35, which is beneficial to reducing the overall size of the time-of-flight module 30. The number of the receiving chambers 323 may be one or more, and the multiple receiving chambers 323 may be spaced apart from each other. When the pad 32 is installed, the positions of the receiving chamber 323 and the electronic component 35 may be aligned and the pad 32 may be disposed at On the first substrate 311.
请参阅图19及图21,在某些实施方式中,垫块32开设有与至少一个收容腔323连通的避让通孔324,至少一个电子元件35伸入避让通孔324内。可以理解,将电子元件35收容在收容腔323内时,要求电子元件35的高度不高于收容腔323的高度。而对于高度高于收容腔323的电子元件35,可以开设与收容腔323对应的避让通孔324,电子元件35部分伸入避让通孔324内,以在不增加垫块32高度的前提下布置电子元件35。Please refer to FIG. 19 and FIG. 21. In some embodiments, the cushion block 32 is provided with an escape hole 324 communicating with at least one receiving cavity 323, and at least one electronic component 35 extends into the escape hole 324. It can be understood that when the electronic component 35 is contained in the containing cavity 323, the height of the electronic component 35 is required to be not higher than the height of the containing cavity 323. For the electronic component 35 having a height higher than the receiving cavity 323, an avoiding through hole 324 corresponding to the receiving cavity 323 may be provided, and the electronic component 35 partially extends into the avoiding through hole 324, so as to be arranged without increasing the height of the pad 32 Electronic component 35.
请参阅图19,在某些实施方式中,光发射器33包括第二基板组件331、光源组件332及外壳333。第二基板组件331设置在垫块32上,第二基板组件331与柔性电路板312连接。光源组件332设置在第二基板组件331上,光源组件332用于发射光信号。外壳333设置在第二基板组件331上,外壳333形成有收容空间3331,收容空间3331可用于收容光源组件332。柔性电路板312可以是可拆装地连接在第二基板组件331上。光源组件332与第二基板组件331电连接。外壳333整体可以呈碗状,且外壳333的开口向下罩设在第二基板组件331上,以将光源组件332收容在收容空间3331内。在本申请实施例中,外壳333上开设有与光源组件332对应的出光口3332,从光源组件332发出的光信号穿过出光口3332后发射到出去,光信号可以直接从出光口3332穿出,也可以经其他光学器件改变光路后从出光口3332穿出。Referring to FIG. 19, in some embodiments, the light emitter 33 includes a second substrate assembly 331, a light source assembly 332, and a housing 333. The second substrate assembly 331 is disposed on the pad 32, and the second substrate assembly 331 is connected to the flexible circuit board 312. The light source assembly 332 is disposed on the second substrate assembly 331, and the light source assembly 332 is configured to emit a light signal. The casing 333 is disposed on the second substrate assembly 331. The casing 333 is formed with a receiving space 3331, and the receiving space 3331 can be used for receiving the light source assembly 332. The flexible circuit board 312 may be detachably connected to the second substrate assembly 331. The light source assembly 332 is electrically connected to the second substrate assembly 331. The housing 333 may be bowl-shaped as a whole, and the opening of the housing 333 is downwardly covered on the second substrate assembly 331 to receive the light source assembly 332 in the receiving space 3331. In the embodiment of the present application, a light outlet 3332 corresponding to the light source component 332 is provided on the housing 333. The light signal emitted from the light source component 332 passes through the light outlet 3332 and is emitted. The light signal can be directly emitted from the light outlet 3332. It can also pass through the optical outlet 3332 after changing the optical path through other optical devices.
请继续参阅图19,在某些实施方式中,第二基板组件331包括第二基板3311及补强件3312。第二基板3311与柔性电路板312连接。光源组件332及补强件3312设置在第二基板3311的相背的两侧。第二基板3311的具体类型可以是印刷线路板或柔性线路板等,第二基板3311上可以铺设有控制线路。补强件3312可以通过胶粘、铆接等方式与第二基板3311固定连接,补强件3312可以增加第二基板组件331整体的强度。光发射器33设置在垫块32上时,补强件3312可以与垫块32直接接触,第二基板3311不会暴露在外部,且不需要与垫块32直接接触,第二基板3311 不易受到灰尘等的污染。Please continue to refer to FIG. 19. In some embodiments, the second substrate assembly 331 includes a second substrate 3311 and a reinforcing member 3312. The second substrate 3311 is connected to the flexible circuit board 312. The light source assembly 332 and the reinforcing member 3312 are disposed on opposite sides of the second substrate 3311. A specific type of the second substrate 3311 may be a printed circuit board or a flexible circuit board, and a control circuit may be laid on the second substrate 3311. The reinforcing member 3312 may be fixedly connected to the second substrate 3311 by means of gluing, riveting, or the like. The reinforcing member 3312 may increase the overall strength of the second substrate assembly 331. When the light emitter 33 is disposed on the pad 32, the reinforcing member 3312 can directly contact the pad 32, the second substrate 3311 is not exposed to the outside, and does not need to be in direct contact with the pad 32, and the second substrate 3311 is not easily affected. Contamination by dust, etc.
在如图19所示的实施例中,补强件3312与垫块32分体成型。在组装飞行时间模组30时,可以先将垫块32安装在第一基板311上,此时柔性电路板312的两端分别连接第一基板311及第二基板3311,且柔性电路板312可以先不弯折(如图21所示的状态)。然后再将柔性电路板312弯折,使得补强件3312设置在垫块32上。当然,在其他实施例中,补强件3312与垫块32可以一体成型,例如通过注塑等工艺一体成型,在组装飞行时间模组30时,可以将垫块32及光发射器33一同安装在第一基板311上。In the embodiment shown in FIG. 19, the reinforcing member 3312 and the pad 32 are formed separately. When assembling the time-of-flight module 30, the pad 32 may be first mounted on the first substrate 311. At this time, the two ends of the flexible circuit board 312 are respectively connected to the first substrate 311 and the second substrate 3311, and the flexible circuit board 312 may Do not bend first (state shown in Figure 21). Then, the flexible circuit board 312 is bent, so that the reinforcing member 3312 is disposed on the pad 32. Of course, in other embodiments, the reinforcing member 3312 and the spacer 32 may be integrally formed, for example, integrally formed by a process such as injection molding. When assembling the time of flight module 30, the spacer 32 and the light emitter 33 may be installed together. On the first substrate 311.
请参阅图21,在某些实施方式中,补强件3312上形成有第一定位件3313。垫块32包括本体321及第二定位件322,第二定位件322形成在本体321上。第二基板组件331设置在垫块32上时,第一定位件3313与第二定位件322配合。具体地,第一定位件3313与第二定位件322配合后,能有效地限制第二基板组件331与垫块32之间的相对运动。第一定位件3313及第二定位件322的具体类型可以依据需要进行选择,例如第一定位件3313为形成在补强件3312上的定位孔,同时第二定位件322为定位柱,定位柱伸入定位孔内以使第一定位件3313与第二定位件322相互配合;或者第一定位件3313为形成在补强件3312上的定位柱,第二定位件322为定位孔,定位柱伸入定位孔内以使第一定位件3313与第二定位件322相互配合;或者第一定位件3313及第二定位件322的数量均为多个,部分第一定位件3313为定位孔,部分第二定位件322为定位柱,部分第一定位件3313为定位柱,部分第二定位件322为定位孔,定位柱伸入定位孔内以使第一定位件3313与第二定位件322相互配合。Referring to FIG. 21, in some embodiments, a first positioning member 3313 is formed on the reinforcing member 3312. The cushion block 32 includes a body 321 and a second positioning member 322. The second positioning member 322 is formed on the body 321. When the second substrate assembly 331 is disposed on the cushion block 32, the first positioning member 3313 cooperates with the second positioning member 322. Specifically, after the first positioning member 3313 and the second positioning member 322 cooperate, the relative movement between the second substrate assembly 331 and the pad 32 can be effectively restricted. The specific types of the first positioning member 3313 and the second positioning member 322 can be selected according to needs. For example, the first positioning member 3313 is a positioning hole formed in the reinforcing member 3312, and the second positioning member 322 is a positioning column. Protrude into the positioning hole so that the first positioning member 3313 and the second positioning member 322 cooperate with each other; or the first positioning member 3313 is a positioning column formed on the reinforcing member 3312, and the second positioning member 322 is a positioning hole and a positioning column Protrude into the positioning hole so that the first positioning member 3313 and the second positioning member 322 cooperate with each other; or the number of the first positioning member 3313 and the second positioning member 322 are multiple, and part of the first positioning member 3313 is a positioning hole, Part of the second positioning member 322 is a positioning column, part of the first positioning member 3313 is a positioning column, and part of the second positioning member 322 is a positioning hole. The positioning column projects into the positioning hole so that the first positioning member 3313 and the second positioning member 322 are located. work cooperatively.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application. Those skilled in the art may, within the scope of the present application, understand the above. Embodiments are subject to change, modification, substitution, and modification.

Claims (22)

  1. 一种电子装置的控制方法,其特征在于,所述电子装置包括飞行时间模组和红外光摄像头,所述控制方法包括:An electronic device control method is characterized in that the electronic device includes a time-of-flight module and an infrared light camera, and the control method includes:
    控制所述红外光摄像头采集人脸的当前红外光图像;Controlling the infrared light camera to collect a current infrared light image of a human face;
    根据所述当前红外光图像进行人脸认证;Performing face authentication according to the current infrared light image;
    控制所述飞行时间模组采集人脸的当前深度图像;Controlling the time-of-flight module to collect a current depth image of a human face;
    根据所述当前深度图像进行深度认证;和Performing depth authentication according to the current depth image; and
    在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作。When both the face authentication and the deep authentication pass, the electronic device is controlled to perform a predetermined operation.
  2. 根据权利要求1所述的控制方法,其特征在于,所述控制所述飞行时间模组采集人脸的当前深度图像的步骤是在所述人脸认证通过时进行的;或者The control method according to claim 1, wherein the step of controlling the time-of-flight module to collect a current depth image of a face is performed when the face authentication is passed; or
    所述控制所述红外光摄像头采集人脸的当前红外光图像的步骤是在所述深度认证通过时进行的。The step of controlling the infrared light camera to collect a current infrared light image of a human face is performed when the depth authentication passes.
  3. 根据权利要求1所述的控制方法,其特征在于,所述预定操作包括解锁、点亮所述电子装置的显示屏、电子支付、打开所述电子装置的预定应用程序中的至少一种。The control method according to claim 1, wherein the predetermined operation includes at least one of unlocking, lighting a display screen of the electronic device, electronic payment, and opening a predetermined application program of the electronic device.
  4. 根据权利要求1所述的控制方法,其特征在于,所述控制所述红外光摄像头采集人脸的当前红外光图像的步骤和所述控制所述飞行时间模组采集人脸的当前深度图像的步骤是在所述电子装置处于解锁过程中进行的,所述控制方法还包括:The control method according to claim 1, wherein the step of controlling the infrared camera to collect a current infrared light image of a human face and the step of controlling the time of flight module to collect a current depth image of a human face The steps are performed while the electronic device is in an unlocking process, and the control method further includes:
    在加密过程中控制所述红外光摄像头采集人脸的参考红外光图像;Controlling the infrared light camera to collect a reference infrared light image of a human face during the encryption process;
    所述根据所述当前红外光图像进行人脸认证的步骤包括:The step of performing face authentication based on the current infrared light image includes:
    判断所述当前红外光图像与所述参考红外光图像之间的第一相似度;Determine a first similarity between the current infrared light image and the reference infrared light image;
    所述控制方法还包括:The control method further includes:
    在加密过程中控制所述飞行时间模组采集人脸的参考深度图像;Controlling the time-of-flight module to collect a reference depth image of a human face during the encryption process;
    所述根据所述当前深度图像进行深度认证的步骤包括:The step of performing depth authentication according to the current depth image includes:
    判断所述当前深度图像与所述参考深度图像之间的第二相似度;Determine a second similarity between the current depth image and the reference depth image;
    所述在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作的步骤包括:When both the face authentication and the deep authentication pass, the step of controlling the electronic device to perform a predetermined operation includes:
    在所述第一相似度大于第一阈值且所述第二相似度大于第二阈值时,控制所述电子装置解锁。And controlling the electronic device to unlock when the first similarity is greater than a first threshold and the second similarity is greater than a second threshold.
  5. 根据权利要求4所述的控制方法,其特征在于,所述控制方法还包括:The control method according to claim 4, further comprising:
    在所述第一相似度大于第三阈值而所述第二相似度小于第四阈值时,锁定所述电子装置;Locking the electronic device when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold;
    其中,所述第三阈值大于所述第一阈值,所述第四阈值小于所述第二阈值。The third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
  6. 根据权利要求4所述的控制方法,其特征在于,所述控制方法还包括:The control method according to claim 4, further comprising:
    识别所述当前深度图像中的目标特征点;Identifying target feature points in the current depth image;
    根据所述目标特征点将所述当前深度图像划分为第一区域和第二区域,其中,所述第一区域包括所述目标特征点;Dividing the current depth image into a first region and a second region according to the target feature point, wherein the first region includes the target feature point;
    所述参考深度图像包括第一参考深度图像和第二参考深度图像,所述判断所述当前深度图像与所述参考深度图像之间的第二相似度的步骤包括:The reference depth image includes a first reference depth image and a second reference depth image, and the step of determining a second similarity between the current depth image and the reference depth image includes:
    判断所述第一区域与所述第一参考深度图像之间的第一子相似度;Determine a first sub-similarity between the first region and the first reference depth image;
    判断所述第二区域与所述第二参考深度图像之间的第二子相似度;Determine a second sub-similarity between the second region and the second reference depth image;
    所述第二阈值包括第一子阈值和第二子阈值,所述第一子阈值大于所述第二子阈值,所述在所述第一相似度大于第一阈值且所述第二相似度大于第二阈值时,控制所述电子装置解锁的步骤包括:The second threshold value includes a first sub-threshold value and a second sub-threshold value, the first sub-threshold value is greater than the second sub-threshold value, and the first similarity degree is greater than the first threshold value and the second similarity degree When it is greater than the second threshold, controlling the electronic device to unlock includes:
    在所述第一子相似度大于所述第一子阈值,所述第二子相似度大于所述第二子阈值,且所述第二相似度大于第二阈值时,控制所述电子装置解锁。Controlling the electronic device to unlock when the first sub-similarity is greater than the first sub-threshold, the second sub-similarity is greater than the second sub-threshold, and the second similarity is greater than a second threshold .
  7. 根据权利要求1所述的控制方法,其特征在于,所述控制所述红外光摄像头采集人脸的当前红外光图像的步骤包括:The control method according to claim 1, wherein the step of controlling the infrared light camera to collect a current infrared light image of a human face comprises:
    控制所述红外光摄像头采集多帧所述当前红外光图像;Controlling the infrared light camera to collect multiple frames of the current infrared light image;
    所述控制方法还包括:The control method further includes:
    识别每帧所述当前红外光图像中的多个目标特征点;Identifying multiple target feature points in each current infrared light image;
    根据多帧所述当前红外光图像中所述多个目标特征点之间的相对位置变化判断所述多个目标特征点是否处于运动状态;和Determining whether the plurality of target feature points are in a moving state according to a change in relative positions between the plurality of target feature points in the current infrared light image in multiple frames; and
    在所述多个目标特征点处于运动状态时,进入所述根据所述当前红外光图像进行人脸认证的步骤,或者进入所述控制所述飞行时间模组采集人脸的当前深度图像的步骤。When the plurality of target feature points are in a moving state, enter the step of performing face authentication based on the current infrared light image, or enter the step of controlling the time-of-flight module to collect a current depth image of a face .
  8. 一种电子装置的控制装置,其特征在于,所述电子装置包括飞行时间模组和红外光摄像头,所述控制装置包括:A control device for an electronic device, characterized in that the electronic device includes a time-of-flight module and an infrared light camera, and the control device includes:
    第一控制模块,用于控制所述红外光摄像头采集人脸的当前红外光图像;A first control module, configured to control the infrared light camera to collect a current infrared light image of a human face;
    第一认证模块,用于根据所述当前红外光图像进行人脸认证;A first authentication module, configured to perform face authentication according to the current infrared light image;
    第二控制模块,用于控制所述飞行时间模组采集人脸的当前深度图像;A second control module, configured to control the time-of-flight module to collect a current depth image of a human face;
    第二认证模块,用于根据所述当前深度图像进行深度认证;和A second authentication module, configured to perform depth authentication according to the current depth image; and
    第三控制模块,用于在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作。A third control module is configured to control the electronic device to perform a predetermined operation when both the face authentication and the deep authentication pass.
  9. 根据权利要求8所述的控制装置,其特征在于,所述第二控制模块用于在所述人脸认证通过时,控制所述飞行时间模组采集人脸的当前深度图像;或者The control device according to claim 8, wherein the second control module is configured to control the time-of-flight module to collect a current depth image of a face when the face authentication is passed; or
    所述第一控制模块用于在所述深度认证通过时,控制所述红外光摄像头采集人脸的当前红外光图像。The first control module is configured to control the infrared light camera to collect a current infrared light image of a human face when the depth authentication passes.
  10. 根据权利要求8所述的控制装置,其特征在于,所述预定操作包括解锁、点亮所述电子装置的显示屏、电子支付、打开所述电子装置的预定应用程序中的至少一种。The control device according to claim 8, wherein the predetermined operation includes at least one of unlocking, lighting a display screen of the electronic device, electronic payment, and opening a predetermined application program of the electronic device.
  11. 根据权利要求8所述的控制装置,其特征在于,所述第一控制模块用于在所述电子装置处于解锁过程中控制所述红外光摄像头采集人脸的当前红外光图像,所述第二控制模块用于在所述电子装置处于解锁过程中控制所述飞行时间模组采集人脸的当前深度图像;所述控制装置还包括第四控制模块和第五控制模块,所述第一认证模块包括第一认证单元,所述第二认证模块包括第二认证单元,所述第三控制模块包括第一控制单元;The control device according to claim 8, wherein the first control module is configured to control the infrared light camera to collect a current infrared light image of a human face while the electronic device is in an unlocking process, and the second The control module is configured to control the time-of-flight module to collect a current depth image of a human face while the electronic device is in an unlocking process; the control device further includes a fourth control module and a fifth control module, and the first authentication module Including a first authentication unit, the second authentication module includes a second authentication unit, and the third control module includes a first control unit;
    所述第四控制模块用于在加密过程中控制所述红外光摄像头采集人脸的参考红外光图像;The fourth control module is configured to control the infrared light camera to collect a reference infrared light image of a human face during the encryption process;
    所述第一认证单元用于判断所述当前红外光图像与所述参考红外光图像之间的第一相似度;The first authentication unit is configured to determine a first similarity between the current infrared light image and the reference infrared light image;
    所述第五控制模块用于在加密过程中控制所述飞行时间模组采集人脸的参考深度图像;The fifth control module is configured to control the time-of-flight module to collect a reference depth image of a human face during an encryption process;
    所述第二认证单元用于判断所述当前深度图像与所述参考深度图像之间的第二相似度;The second authentication unit is configured to determine a second similarity between the current depth image and the reference depth image;
    所述第一控制单元用于在所述第一相似度大于第一阈值且所述第二相似度大于第二阈值时,控制所述电子装置解锁。The first control unit is configured to control the electronic device to be unlocked when the first similarity is greater than a first threshold and the second similarity is greater than a second threshold.
  12. 根据权利要求11所述的控制装置,其特征在于,所述控制装置还包括:The control device according to claim 11, wherein the control device further comprises:
    锁定模块,用于在所述第一相似度大于第三阈值而所述第二相似度小于第四阈值时,锁定所述电子装置;A locking module, configured to lock the electronic device when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold;
    其中,所述第三阈值大于所述第一阈值,所述第四阈值小于所述第二阈值。The third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
  13. 根据权利要求11所述的控制装置,其特征在于,所述控制装置还包括第一识别模块和划分模块,所述第二认证单元包括第一判断子单元和第二判断子单元,所述第一控制单元包括控制子单元;The control device according to claim 11, wherein the control device further comprises a first identification module and a division module, the second authentication unit includes a first judgment subunit and a second judgment subunit, and the first A control unit includes a control subunit;
    所述第一识别模块用于识别所述当前深度图像中的目标特征点;The first identification module is configured to identify a target feature point in the current depth image;
    所述划分模块用于根据所述目标特征点将所述当前深度图像划分为第一区域和第二区域,其中,所述第一区域包括所述目标特征点;The dividing module is configured to divide the current depth image into a first region and a second region according to the target feature point, wherein the first region includes the target feature point;
    所述参考深度图像包括第一参考深度图像和第二参考深度图像,所述第一判断子单元用于判断所述第一区域与所述第一参考深度图像之间的第一子相似度;The reference depth image includes a first reference depth image and a second reference depth image, and the first determining subunit is configured to determine a first sub-similarity between the first region and the first reference depth image;
    所述第二判断子单元用于判断所述第二区域与所述第二参考深度图像之间的第二子相似度;The second judging subunit is configured to judge a second sub-similarity between the second region and the second reference depth image;
    所述第二阈值包括第一子阈值和第二子阈值,所述第一子阈值大于所述第二子阈值,所述控制子单元用于在所述第一子相似度大于所述第一子阈值,所述第二子相似度大于所述第二子阈值,且所述第二相似度大于第二阈值时,控制所述电子装置解锁。The second threshold includes a first sub-threshold and a second sub-threshold. The first sub-threshold is greater than the second sub-threshold. The control sub-unit is configured to adjust the first sub-similarity to be greater than the first sub-threshold. A sub-threshold, the second sub-similarity is greater than the second sub-threshold, and when the second similarity is greater than the second threshold, controlling the electronic device to unlock.
  14. 根据权利要求8所述的控制装置,其特征在于,所述第一控制模块包括第二控制单元, 所述控制装置还包括第二识别模块和判断模块;The control device according to claim 8, wherein the first control module includes a second control unit, and the control device further includes a second identification module and a determination module;
    所述第二控制单元用于控制所述红外光摄像头采集多帧所述当前红外光图像;The second control unit is configured to control the infrared light camera to collect multiple frames of the current infrared light image;
    所述第二识别模块用于识别每帧所述当前红外光图像中的多个目标特征点;The second recognition module is configured to identify multiple target feature points in each frame of the current infrared light image;
    所述判断模块用于根据多帧所述当前红外光图像中所述多个目标特征点之间的相对位置变化判断所述多个目标特征点是否处于运动状态;The judging module is configured to judge whether the plurality of target feature points are in a moving state according to a change in relative positions between the plurality of target feature points in the current infrared light image in multiple frames;
    所述第一认证模块用于在所述多个目标特征点处于运动状态时,根据所述当前红外光图像进行人脸认证,或者所述第二控制模块用于在所述多个目标特征点处于运动状态时,控制所述飞行时间模组采集人脸的当前深度图像。The first authentication module is configured to perform face authentication according to the current infrared light image when the multiple target feature points are in a moving state, or the second control module is configured to perform When in a moving state, controlling the time-of-flight module to collect a current depth image of a human face.
  15. 一种电子装置,其特征在于,包括:An electronic device, comprising:
    飞行时间模组;Time of flight module
    红外光摄像头;Infrared light camera
    一个或多个处理器;One or more processors;
    存储器;以及Memory; and
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被配置由所述一个或多个处理器执行,所述程序包括用于执行以下控制方法的指令:One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs include instructions for performing the following control methods:
    控制所述红外光摄像头采集人脸的当前红外光图像;Controlling the infrared light camera to collect a current infrared light image of a human face;
    根据所述当前红外光图像进行人脸认证;Performing face authentication according to the current infrared light image;
    控制所述飞行时间模组采集人脸的当前深度图像;Controlling the time-of-flight module to collect a current depth image of a human face;
    根据所述当前深度图像进行深度认证;和Performing depth authentication according to the current depth image; and
    在所述人脸认证和所述深度认证均通过时,控制所述电子装置执行预定操作。When both the face authentication and the deep authentication pass, the electronic device is controlled to perform a predetermined operation.
  16. 根据权利要求15所述的电子装置,其特征在于,所述控制所述飞行时间模组采集人脸的当前深度图像的步骤是在所述人脸认证通过时进行的;或者The electronic device according to claim 15, wherein the step of controlling the time-of-flight module to collect a current depth image of a face is performed when the face authentication is passed; or
    所述控制所述红外光摄像头采集人脸的当前红外光图像的步骤是在所述深度认证通过时进行的。The step of controlling the infrared light camera to collect a current infrared light image of a human face is performed when the depth authentication passes.
  17. 根据权利要求15所述的电子装置,其特征在于,所述预定操作包括解锁、点亮所述电子装置的显示屏、电子支付、打开所述电子装置的预定应用程序中的至少一种。The electronic device according to claim 15, wherein the predetermined operation includes at least one of unlocking, lighting a display screen of the electronic device, electronic payment, and opening a predetermined application of the electronic device.
  18. 根据权利要求15所述的电子装置,其特征在于,所述控制所述红外光摄像头采集人脸的当前红外光图像的步骤和所述控制所述飞行时间模组采集人脸的当前深度图像的步骤是在所述电子装置处于解锁过程中进行的,所述程序还包括用于执行以下控制方法的指令:The electronic device according to claim 15, wherein the step of controlling the infrared light camera to collect a current infrared light image of a human face and the step of controlling the time of flight module to collect a current depth image of a human face The steps are performed while the electronic device is in an unlocking process, and the program further includes instructions for executing the following control methods:
    在加密过程中控制所述红外光摄像头采集人脸的参考红外光图像;Controlling the infrared light camera to collect a reference infrared light image of a human face during the encryption process;
    判断所述当前红外光图像与所述参考红外光图像之间的第一相似度;Determine a first similarity between the current infrared light image and the reference infrared light image;
    在加密过程中控制所述飞行时间模组采集人脸的参考深度图像;Controlling the time-of-flight module to collect a reference depth image of a human face during the encryption process;
    判断所述当前深度图像与所述参考深度图像之间的第二相似度;Determine a second similarity between the current depth image and the reference depth image;
    在所述第一相似度大于第一阈值且所述第二相似度大于第二阈值时,控制所述电子装置解锁。And controlling the electronic device to unlock when the first similarity is greater than a first threshold and the second similarity is greater than a second threshold.
  19. 根据权利要求18所述的电子装置,其特征在于,所述程序还包括用于执行以下控制方法的指令:The electronic device according to claim 18, wherein the program further comprises instructions for executing the following control methods:
    在所述第一相似度大于第三阈值而所述第二相似度小于第四阈值时,锁定所述电子装置;Locking the electronic device when the first similarity is greater than a third threshold and the second similarity is less than a fourth threshold;
    其中,所述第三阈值大于所述第一阈值,所述第四阈值小于所述第二阈值。The third threshold is larger than the first threshold, and the fourth threshold is smaller than the second threshold.
  20. 根据权利要求18所述的电子装置,其特征在于,所述程序还包括用于执行以下控制方法的指令:The electronic device according to claim 18, wherein the program further comprises instructions for executing the following control methods:
    识别所述当前深度图像中的目标特征点;Identifying target feature points in the current depth image;
    根据所述目标特征点将所述当前深度图像划分为第一区域和第二区域,其中,所述第一区域包括所述目标特征点;Dividing the current depth image into a first region and a second region according to the target feature point, wherein the first region includes the target feature point;
    所述参考深度图像包括第一参考深度图像和第二参考深度图像,判断所述第一区域与所述第一参考深度图像之间的第一子相似度;The reference depth image includes a first reference depth image and a second reference depth image, and determines a first sub-similarity between the first region and the first reference depth image;
    判断所述第二区域与所述第二参考深度图像之间的第二子相似度;Determine a second sub-similarity between the second region and the second reference depth image;
    所述第二阈值包括第一子阈值和第二子阈值,所述第一子阈值大于所述第二子阈值,在所述 第一子相似度大于所述第一子阈值,所述第二子相似度大于所述第二子阈值,且所述第二相似度大于第二阈值时,控制所述电子装置解锁。The second threshold includes a first sub-threshold and a second sub-threshold. The first sub-threshold is greater than the second sub-threshold. At the first sub-similarity greater than the first sub-threshold, the second When the sub-similarity is greater than the second sub-threshold, and the second similarity is greater than the second threshold, the electronic device is controlled to be unlocked.
  21. 根据权利要求15所述的电子装置,其特征在于,所述程序还包括用于执行以下控制方法的指令:The electronic device according to claim 15, wherein the program further comprises instructions for executing the following control methods:
    控制所述红外光摄像头采集多帧所述当前红外光图像;Controlling the infrared light camera to collect multiple frames of the current infrared light image;
    识别每帧所述当前红外光图像中的多个目标特征点;Identifying multiple target feature points in each current infrared light image;
    根据多帧所述当前红外光图像中所述多个目标特征点之间的相对位置变化判断所述多个目标特征点是否处于运动状态;和Determining whether the plurality of target feature points are in a moving state according to a change in relative positions between the plurality of target feature points in the current infrared light image in multiple frames; and
    在所述多个目标特征点处于运动状态时,进入所述根据所述当前红外光图像进行人脸认证的步骤,或者进入所述控制所述飞行时间模组采集人脸的当前深度图像的步骤。When the plurality of target feature points are in a moving state, enter the step of performing face authentication based on the current infrared light image, or enter the step of controlling the time-of-flight module to collect a current depth image of a face .
  22. 一种计算机可读存储介质,其特征在于,包括与电子装置结合使用的计算机程序,所述计算机程序可被处理器执行以完成权利要求1至7任意一项所述的电子装置的控制方法。A computer-readable storage medium, comprising a computer program used in conjunction with an electronic device, the computer program being executable by a processor to complete the method for controlling an electronic device according to any one of claims 1 to 7.
PCT/CN2019/090018 2018-09-10 2019-06-04 Electronic apparatus, and control method and control apparatus therefor, and computer-readable storage medium WO2020052283A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811048780.1 2018-09-10
CN201811048780.1A CN109376515A (en) 2018-09-10 2018-09-10 Electronic device and its control method, control device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020052283A1 true WO2020052283A1 (en) 2020-03-19

Family

ID=65405315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090018 WO2020052283A1 (en) 2018-09-10 2019-06-04 Electronic apparatus, and control method and control apparatus therefor, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN109376515A (en)
WO (1) WO2020052283A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376515A (en) * 2018-09-10 2019-02-22 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium
CN109271916B (en) * 2018-09-10 2020-09-18 Oppo广东移动通信有限公司 Electronic device, control method thereof, control device, and computer-readable storage medium
CN109861757B (en) * 2019-03-26 2021-03-09 Oppo广东移动通信有限公司 Control method, time-of-flight component, electronic device and readable storage medium
CN112232324B (en) * 2020-12-15 2021-08-03 杭州宇泛智能科技有限公司 Face fake-verifying method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341481A (en) * 2017-07-12 2017-11-10 深圳奥比中光科技有限公司 It is identified using structure light image
US20170345146A1 (en) * 2016-05-30 2017-11-30 Beijing Kuangshi Technology Co., Ltd. Liveness detection method and liveness detection system
CN107527046A (en) * 2017-09-21 2017-12-29 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108496182A (en) * 2018-04-18 2018-09-04 深圳阜时科技有限公司 Identification authentication method, identification authentication device and electronic equipment
CN109271916A (en) * 2018-09-10 2019-01-25 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium
CN109376515A (en) * 2018-09-10 2019-02-22 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium
CN109391709A (en) * 2018-09-10 2019-02-26 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110064622A (en) * 2009-12-08 2011-06-15 삼성전자주식회사 3d edge extracting method and apparatus using tof camera
KR101907077B1 (en) * 2012-03-06 2018-10-11 삼성전자주식회사 Method and apparatus for motion recognition
CN104463146B (en) * 2014-12-30 2018-04-03 华南师范大学 Posture identification method and device based on near-infrared TOF camera depth information
CN106682594A (en) * 2016-12-13 2017-05-17 中国科学院软件研究所 Posture and motion identification method based on dynamic grid coding
CN106991378B (en) * 2017-03-09 2020-02-04 Oppo广东移动通信有限公司 Depth-based face orientation detection method and device and electronic device
CN106991376B (en) * 2017-03-09 2020-03-17 Oppo广东移动通信有限公司 Depth information-combined side face verification method and device and electronic device
CN107506752A (en) * 2017-09-18 2017-12-22 艾普柯微电子(上海)有限公司 Face identification device and method
CN107609383B (en) * 2017-10-26 2021-01-26 奥比中光科技集团股份有限公司 3D face identity authentication method and device
CN107729875A (en) * 2017-11-09 2018-02-23 上海快视信息技术有限公司 Three-dimensional face identification method and device
CN108427871A (en) * 2018-01-30 2018-08-21 深圳奥比中光科技有限公司 3D faces rapid identity authentication method and device
CN108496172A (en) * 2018-04-18 2018-09-04 深圳阜时科技有限公司 Electronic equipment and its personal identification method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170345146A1 (en) * 2016-05-30 2017-11-30 Beijing Kuangshi Technology Co., Ltd. Liveness detection method and liveness detection system
CN107341481A (en) * 2017-07-12 2017-11-10 深圳奥比中光科技有限公司 It is identified using structure light image
CN107527046A (en) * 2017-09-21 2017-12-29 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN108496182A (en) * 2018-04-18 2018-09-04 深圳阜时科技有限公司 Identification authentication method, identification authentication device and electronic equipment
CN109271916A (en) * 2018-09-10 2019-01-25 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium
CN109376515A (en) * 2018-09-10 2019-02-22 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium
CN109391709A (en) * 2018-09-10 2019-02-26 Oppo广东移动通信有限公司 Electronic device and its control method, control device and computer readable storage medium

Also Published As

Publication number Publication date
CN109376515A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
WO2020052283A1 (en) Electronic apparatus, and control method and control apparatus therefor, and computer-readable storage medium
WO2020052278A1 (en) Electronic device, control method and control device therefor, and computer-readable storage medium
WO2020052282A1 (en) Electronic device, control method for same, control device therefor, and computer-readable storage medium
US8966613B2 (en) Multi-frame depth image information identification
CN108664783B (en) Iris recognition-based recognition method and electronic equipment supporting same
US11928195B2 (en) Apparatus and method for recognizing an object in electronic device
US10188350B2 (en) Sensor device and electronic device having the same
KR102132442B1 (en) Sensor device and apparatus having the same
KR20200017267A (en) Electronic device and method for recognizing stylus pen
US11503198B2 (en) Electronic device comprising camera and electronic device control method
US20200264684A1 (en) Electronic device and method for controlling operation of display in same
EP3608813A1 (en) Verification system, electronic device, verification method, computer-readable storage medium, and computer apparatus
CN108921815A (en) It takes pictures exchange method, device, storage medium and terminal device
WO2020078277A1 (en) Structured light support and terminal device
CN108763903B (en) Authentication device and electronic apparatus
CN116134401A (en) Wearable electronic device including heat radiation structure
CN110362203A (en) Information processing method, device, storage medium and augmented reality equipment
US20240098912A1 (en) Circuit board module and electronic device including the same
CN110956577A (en) Control method of electronic device, and computer-readable storage medium
US11803624B2 (en) Electronic device and method for acquiring fingerprint information thereof
KR20230134348A (en) Electronic device for controlling operation based on a bio-signal and operating method thereof
US20240046530A1 (en) Method of controlling display module, and electronic device performing the method
US11968439B2 (en) Electronic device comprising camera and electronic device control method
US20230040498A1 (en) Wearable electronic device
US20220345802A1 (en) Speaker module mounting structure and electronic device including the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19860345

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19860345

Country of ref document: EP

Kind code of ref document: A1