WO2015003522A1 - 人脸识别方法、装置和移动终端 - Google Patents

人脸识别方法、装置和移动终端 Download PDF

Info

Publication number
WO2015003522A1
WO2015003522A1 PCT/CN2014/076513 CN2014076513W WO2015003522A1 WO 2015003522 A1 WO2015003522 A1 WO 2015003522A1 CN 2014076513 W CN2014076513 W CN 2014076513W WO 2015003522 A1 WO2015003522 A1 WO 2015003522A1
Authority
WO
WIPO (PCT)
Prior art keywords
face image
face
light
visible light
infrared
Prior art date
Application number
PCT/CN2014/076513
Other languages
English (en)
French (fr)
Inventor
郭峰
熊鑫
孙伟
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Publication of WO2015003522A1 publication Critical patent/WO2015003522A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns

Definitions

  • the present disclosure relates to the field of biometric identification, and in particular, to a face recognition method, apparatus, and mobile terminal. Background technique
  • the mobile terminal uses the configured camera device to collect the face image in real time and matches the previously collected template image. When the captured face image matches the template image, the verification passes.
  • face recognition is affected by ambient light. In dark or bright environments, the ambient light is different from the ambient light when the template image is pre-acquired. It is easy for the camera device to capture the face image that matches the template image, resulting in verification. failure.
  • the mobile terminal can be configured with a visible light imaging device and an infrared light imaging device to collect the face image.
  • the visible light face image is collected by the visible light camera device
  • the infrared light face image is collected by the infrared light camera device
  • the visible face image and the infrared face image and the template image are respectively subjected to face recognition, thereby realizing different ambient light conditions.
  • the mobile terminal needs to be equipped with a visible light imaging device and an infrared light imaging device at the same time, and has high requirements on hardware.
  • a visible light imaging device In order to realize acquisition and face recognition under different ambient light conditions, hardware cost is inevitably increased, and multiple imaging devices are configured.
  • the size of the mobile terminal is large, which is inconvenient for the user to carry and operate the mobile terminal. Summary of the invention
  • the embodiment of the present disclosure provides a face recognition method, device, and mobile terminal.
  • the technical solution is as follows:
  • a method for recognizing a face includes: acquiring a visible light face image set by using a dual light sensing camera according to a preset collection rule, where the visible light face image set includes At least one visible light face image;
  • the infrared light face image set includes at least one infrared light face image
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image, and a number of images;
  • the face recognition passes.
  • the method before the method of acquiring the visible light face image set by using the dual light sensing camera according to the preset collection rule, the method further includes:
  • the method before the method of acquiring the visible light face image set by using the dual light sensing camera according to the preset collection rule, the method further includes:
  • the frame rate and image resolution when the dual light-sensing camera captures an image are configured.
  • the dual-light-sensing camera is used to obtain the visible light face image set, including: when the dual-light-sensing camera captures the complete face, according to the preset collection rule, the dual-light-sensing camera is used according to the preset Obtaining a visible light face image by arranging light pixels of visible light;
  • the dual-light-sensing camera is used to obtain an infrared light face image set according to the arrangement of the light pixels of the infrared light, including:
  • the dual-light sensor is used to obtain an infrared light face image according to the arrangement of the light pixels of the infrared light;
  • the infrared light face image is continuously obtained until the number of acquired infrared light face images is the same as the number of infrared light face images in the preset acquisition rule, and the collection of the infrared light face image is ended.
  • the method further includes:
  • the face recognition fails, and the double light sensing is used again.
  • the camera acquires a visible light face image set and an infrared light face image set.
  • the method further includes:
  • the recognition result of the face recognition is displayed on the display screen of the local end.
  • a human face recognition device including: a visible light acquiring module, configured to acquire a visible light face image set by using a dual light sensing camera according to a preset collection rule, where the visible light face image set includes at least one visible light face image;
  • An infrared light acquiring module configured to acquire an infrared light facial image set by using the dual light sensing camera according to the preset collecting rule, where the infrared light facial image set includes at least one infrared light human face image;
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image, and a number of images;
  • a matching module configured to determine whether the local end has a face template image that matches the visible face image set and the infrared face image set;
  • the recognition pass module is configured to pass the face recognition when the local end exists with a face template image matching the visible face image set and the infrared face image set.
  • the device further includes:
  • the rule adjustment module is configured to adjust the number of images of the visible light face image and the infrared light face image in the preset collection rule according to the light condition of the current environment.
  • the device further includes:
  • the configuration module is configured to configure a frame rate and an image resolution when the dual light sensing camera captures an image.
  • the visible light acquiring module is configured to obtain a visible light face image according to a preset collection rule according to a preset collection rule according to a preset arrangement rule, according to a light pixel arrangement manner of visible light; Continue to obtain the visible light face image until the number of visible visible light face images is the same as the number of visible light face images in the preset collection rule, and the collection of the visible light face image is ended;
  • the infrared light acquiring module is configured to: when the dual light sensing camera captures a complete human face, use a dual light sensing camera to obtain an infrared light face according to a light pixel arrangement manner of infrared light according to a preset collection rule. The image continues to acquire the infrared light face image until the number of acquired infrared light face images is the same as the number of infrared light face images in the preset collection rule, and the infrared light face image is collected.
  • the device further includes:
  • the face recognition fails.
  • the dual light-sensing camera is used again to obtain a visible light face image set and an infrared light face image set.
  • the device further includes:
  • the display module is configured to display the recognition result of the face recognition on the display screen of the local end.
  • a mobile terminal comprising a memory, and one or more programs, wherein one or more programs are stored in a memory and configured to be one or more
  • the processor executing the one or more programs includes instructions for performing a method of acquiring a visible light face image set using a dual light sensing camera according to a preset acquisition rule, the visible light face image set including at least one visible light person Face image: Acquiring, according to the preset collection rule, the infrared light face image set by using the dual light sensing camera, wherein the infrared light face image set includes at least one infrared light face image;
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image, and a number of images;
  • the face recognition passes.
  • the method, the device and the mobile terminal provided by the embodiments of the present disclosure can realize face image collection and face recognition under different ambient light conditions by using a dual light-sensing camera for face recognition, thereby improving the accuracy of face recognition.
  • the mobile terminal is not required to configure multiple cameras, which saves hardware space, improves cost performance, and facilitates user carrying and operation of the mobile terminal.
  • FIG. 1 is a flowchart of a face recognition method according to an exemplary embodiment
  • FIG. 2 is a flowchart of a face recognition method according to still another exemplary embodiment
  • FIG. 3 is a schematic structural diagram of a face recognition apparatus according to an exemplary embodiment
  • FIG. 4 is a schematic structural diagram of a terminal device according to an exemplary embodiment. detailed description
  • FIG. 1 is a flowchart of a face recognition method according to an embodiment of the present disclosure.
  • the executor of the embodiment of the present invention is a mobile terminal. Referring to FIG. 1, the method includes:
  • 101 Obtain a visible light face image set by using a dual light sensing camera according to a preset collection rule, where the visible light face image set includes at least one visible light face image;
  • 102 Obtain an infrared light face image set by using the dual light sensing camera according to the preset collection rule, where the infrared light face image set includes at least one infrared light face image;
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image, and a number of images;
  • the method provided by the embodiment of the present disclosure obtains a visible light face image set and an infrared light face image set by using a dual light sensing camera according to a preset collection rule, and determines whether the local end exists with the visible light face image set and the infrared
  • the face image of the face image is matched by the face image of the face image, and the face template image matching the face image set of the visible light face image and the face image of the infrared light face image is present at the local end. , face recognition passed.
  • the method before the obtaining a visible light face image set by using the dual light sensing camera according to a preset collection rule, the method further includes:
  • the method before the obtaining a visible light face image set by using the dual light sensing camera according to a preset collection rule, the method further includes:
  • the dual-light-sensing camera is used to obtain a visible light face image set according to a preset collection rule, including:
  • the dual-light-sensing camera captures a complete human face, according to a preset collection rule, the dual-light-sensing camera is used to obtain a visible light face image according to the arrangement of the light pixels of the visible light;
  • the dual-light-sensing camera is used to obtain an infrared light face image set according to the arrangement of the light pixels of the infrared light, including:
  • the dual-light-sensing camera captures a complete human face, according to a preset collection rule, the dual-light-sensing camera is used to obtain an infrared light face image according to the arrangement of the light pixels of the infrared light;
  • the method further includes:
  • the face recognition fails, and the dual light-sensing camera is used again to obtain visible light. Face image set and infrared light face image set.
  • the method further includes:
  • the recognition result of the face recognition is displayed on the display screen of the local end.
  • FIG. 2 is a flowchart of a face recognition method according to an embodiment of the present disclosure.
  • the executor of the embodiment of the present invention is a mobile terminal. Referring to FIG. 2, the method includes:
  • This step specifically includes steps (1) and (2):
  • the dual-light sensor is used to obtain a visible light face image according to the arrangement of the light pixels of the visible light;
  • This step specifically includes steps (3) and (4):
  • the dual-light sensor is used to obtain an infrared light face image set according to the arrangement of the light pixels of the infrared light;
  • Steps 201 and 202 will be further explained below.
  • a face image when acquiring a face image, may be acquired from different directions, from the front side, the left side or the right side, to obtain a frontal face image, a left side face image, or The face image on the right side.
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image and a number of images.
  • the order of acquiring the visible light face image and the infrared light face image refers to the order of acquiring visible light face images from various directions and the order of acquiring infrared light face images from various directions, and accordingly, acquiring visible light face images and infrared
  • the number of images of the light human face image refers to the number of images of the visible light face image acquired from each direction and the number of images of the infrared light face image acquired from each direction.
  • the user is smashed on the display screen of the local end, and the image of the user is collected in turn, and the characters are acquired.
  • the face image set of the preset collection rule is smashed on the display screen of the local end, and the image of the user is collected in turn, and the characters are acquired.
  • the preset collection rule may be set by a technician, and may also be set by the user during use, which is not limited by the embodiment of the disclosure.
  • the preset collection rule is to first obtain a visible light face image from the front side, the left side, and the right side, and then obtain an infrared light face image from the front side, the left side, and the right side.
  • the preset acquisition rule is to first obtain a visible light face image and an infrared light face image from the front side, and then obtain a visible light face image and an infrared light face image from the left side.
  • the dual light sensing camera can acquire visible light images and infrared light images.
  • the dual-light-sensing camera acquires an image according to the arrangement of the light pixels of the visible light
  • the visible light image can be obtained.
  • the dual-light-sensing camera acquires the image according to the arrangement of the light pixels of the infrared light
  • the infrared light image can be acquired.
  • the dual-light-sensing camera is used to obtain a visible light face image and an infrared light face image, thereby avoiding an increase in hardware cost due to the simultaneous use of the visible light camera and the infrared light camera.
  • the step 201 and the step 202 may include: when the dual-light-sensing camera collects a complete human face, acquiring the sequence of the visible light face image and the infrared light face image and the number of images according to the preset collection rule, and sequentially acquiring At least one visible light face image and/or at least one infrared light face image, the acquired at least one visible light face image constitutes a visible light face image set, and the acquired at least one infrared light face image That is, it constitutes an infrared light face image set.
  • step 201 there is no absolute timing relationship between the step 201 and the step 202.
  • the face images are sequentially acquired according to the obtaining order in the preset collecting rule, until the obtained number of visible light face images and the preset collecting rule are
  • the number of visible face images is the same, and the number of acquired infrared face images is the same as the number of infrared face images in the preset collection rule.
  • the disclosed embodiment is exemplified by step 202 after step 201.
  • the arrangement of the light pixels used by the dual light sensing camera is switched from the visible light pixel arrangement to the visible light
  • the arrangement of the light pixels of the infrared light correspondingly, when the local end is switched from the collected infrared light face image to the collected visible light face image according to the preset collection rule, the light pixel arrangement manner adopted by the dual light sensing camera is adopted.
  • the arrangement of the light pixels of the infrared light is switched to the arrangement of the light pixels of the visible light.
  • Table 1 shows the arrangement of optical pixels used by a general visible light camera, wherein R represents red, G represents green, and B represents blue, and a visible light image is formed by acquiring three colors of RGB.
  • Table 2 shows the arrangement of the light pixels used by the dual-light-sensing camera. The three colors of RGB are the same as the general visible light camera.
  • the dual-light-sensing camera introduces the infrared light-sensing pixel IR. For example, when collecting visible light face images, IR does not work, RGB works, and realizes the acquisition of visible light face images.
  • IR When collecting infrared light face images, IR works, RGB works, and realizes infrared light face image acquisition. .
  • the use of the dual light-sensing camera to obtain the illuminable human image and the infrared light face image is avoided.
  • Use visible light and infrared light camera causes the camera hardware costs, improved cost t Table 1
  • the method further includes:
  • the lighting conditions of the environment include bright, moderate, dark, black, and the like.
  • the light condition of the current environment can be determined based on the intensity of the light collected by the dual-light sensor and the preset light intensity threshold for each light condition.
  • the embodiment of the present disclosure does not limit the determination of the lighting conditions of the current environment.
  • the visible light camera can accurately recognize the acquired visible light face image through automatic exposure; and when the current ambient light condition is dark or black
  • the infrared light camera can accurately recognize the acquired infrared light face image through automatic exposure. Therefore, according to the lighting conditions of the current environment, the number of images of the visible light face image and the infrared light face image in the preset collection rule is adjusted, including:
  • the preset collection rule is adjusted, and according to the intensity of the change of the light condition of the current environment, the number of images of the visible face image in the preset collection rule is correspondingly increased, and the preset is reduced.
  • the preset collection rule is adjusted, and according to the intensity of the change of the light condition of the current environment, the number of images of the visible light face image in the preset collection rule is correspondingly reduced, and the preset is increased.
  • the number of images of the infrared face image in the acquisition rule is adjusted, and according to the intensity of the change of the light condition of the current environment, the number of images of the visible light face image in the preset collection rule is correspondingly reduced, and the preset is increased.
  • Adjusting the number of images of the face image of the visible light face image in the preset acquisition rule The specific manner may be set by a technician at the time of development, and may also be set by the user during use, which is not limited by the embodiment of the disclosure.
  • the face template image is a face image saved in advance at the local end, and the face template image can be used as a verification standard for face recognition.
  • the method further comprises: acquiring at least one face template image;
  • the face template image processing instruction may be triggered to add or delete the at least one face template image, and the embodiment of the present disclosure does not do this. limited.
  • the step 203 may include: traversing the face template image saved by the local end, and determining, according to the preset face recognition algorithm, whether any of the face template images saved by the local end and the visible light face image set and the infrared light face image are concentrated. Any one of the face images matches.
  • a series of image processing such as discrete and binarization are performed on any acquired face image, and the processing result is obtained, and the processing result of the face image is calculated and saved by the local end.
  • the similarity of the processing result of the face template image when the similarity belongs to the preset range, determining that the face image matches the face template image, and when the similarity does not belong to the preset range, determining the face image Does not match the face template image.
  • the preset face recognition algorithm may be an algorithm such as subspace analysis and principal component analysis.
  • the preset face recognition algorithm can be set by the technician at the time of development, and can also be selected by the user during use. This embodiment of the present disclosure does not limit this.
  • the method further comprises: configuring a frame rate and an image resolution when the dual light-sensing camera acquires an image.
  • the frame rate and image resolution applicable to the preset face recognition algorithm the frame rate and image resolution when the dual light-sensing camera captures an image are configured.
  • the image collected by the local end can be previewed through the display screen of the local end, so that the user can confirm the position of the face and ensure that the complete face is collected.
  • the collected image may be previewed according to the resolution of the display screen of the local end.
  • the collected facial image is performed according to the image resolution applicable to the preset facial recognition algorithm. Obtain.
  • the resolution of the dual light camera is configured using a register.
  • the dual image camera is set to adopt the same image resolution ratio, which ensures a high transfer rate per minute, which is convenient for the user to
  • the dual-light camera is aligned to achieve an effective position for capturing the face image.
  • the dual-ray camera is set to obtain the face image by using the resolution applicable to the preset face recognition algorithm, to maximize The limit is captured to the valid information in the Ui face image.
  • step 205 When it is determined that there is no face template image matching the face image set of the visible light and the face image of the infrared light face image, the face recognition fails, and the dual light sensing camera is used again. Obtaining a visible light face image set and an infrared light face image set, and performing step 206;
  • the steps 204-205 can include the following two situations:
  • the local end When the local end has a face template image matching the visible face image set and the infrared face image set, the face recognition passes, and the result of the face recognition is displayed on the local display. On the screen, and continue to perform subsequent operations; in the embodiment of the present disclosure, it can be applied to systems such as identity verification, access control, and the like, and correspondingly, after the face recognition verification is passed, the user enters the identity verification system, or opens an access control or the like.
  • the face recognition fails, and the face recognition fails.
  • the result is displayed on the display screen of the local end, and the dual-light-sensing camera is used again to obtain the visible light face image set and the infrared light face image set.
  • the face recognition verification fails, the result that the face recognition fails is displayed on the display screen of the local end.
  • the "re-verification” button can be provided on the display screen of the local end.
  • the double-light-sensing camera is used again to obtain the visible light face image set and the infrared light face image. set.
  • the face recognition verification fails, the result that the face recognition fails is displayed on the display screen of the local end, and the dual-light-sensing camera is automatically triggered to obtain the visible light face image set and the infrared light face image set.
  • the process of exiting face recognition until the number of executions of the process reaches a preset threshold and the face recognition verification has not passed.
  • the specific embodiment of the present disclosure does not limit the specific processing manner when the face recognition verification fails.
  • the face recognition method provided by the embodiment of the present disclosure may be triggered by clicking a corresponding button, such as clicking an "authentication” button and a "continue verification” button.
  • initial configuration is required, including system initialization configuration and camera initialization configuration.
  • the system initialization configuration is for a face recognition system, such as an identity verification system, an access control system, and the like.
  • the camera initialization configuration for the dual light camera itself may include setting the power up sequence of the dual light camera, the starting and ending pixel positions, and associated optical image parameters, and the like. Setting the start and end pixel positions refers to setting the pixel start position and pixel end position of the camera at different acquisition image resolutions.
  • the relevant optical image parameters include, but are not limited to, default exposure parameters and digital analog gain parameters. For example, use registers for system initialization configuration and camera initialization configuration.
  • the method provided by the embodiment of the present disclosure obtains a visible light face image set and an infrared light face image set by using a dual light sensing camera according to a preset collection rule, and determines whether the local end exists with the visible light face image set and the infrared
  • the face image of the face image is matched by the face image of the face image, and the face template image matching the face image set of the visible light face image and the face image of the infrared light face image is present at the local end. , face recognition passed.
  • the device includes: a visible light acquiring module 301, configured to acquire a visible light face image by using a dual light sensing camera according to a preset collection rule.
  • the set of visible light face images includes at least one visible light face image;
  • the infrared light acquiring module 302 is configured to acquire an infrared light human face image set by using the dual light sensing camera according to the preset collection rule, where the infrared light human face image set includes at least one infrared light human face image;
  • the preset collection rule includes at least a sequence of obtaining a visible light face image and an infrared light face image and a number of images;
  • the matching module 303 is configured to determine, by the local end, whether there is a face template image that matches any one of the visible light face image set and the infrared light face image set;
  • the recognition pass module 304 is configured to pass the face recognition when the local end exists with a face template image matching the visible face image set and the infrared face image set.
  • the device further includes:
  • the rule adjustment module is configured to adjust the number of images of the visible light face image and the infrared light face image in the preset collection rule according to the light condition of the current environment.
  • the device further includes:
  • the configuration module is configured to configure a frame rate and an image resolution when the dual light sensing camera captures an image.
  • the visible light acquiring module 301 is configured to: when the dual light sensing camera captures a complete human face, use a dual light sensing camera to obtain visible light according to a light pixel arrangement of visible light according to a preset collection rule. a face image; continuing to acquire a visible light face image until the number of acquired visible light face images is the same as the number of visible light face images in the preset collection rule, and ending the collection of the visible light face image;
  • the infrared light acquiring module 302 is configured to: when the dual-light-sensing camera collects a complete human face, according to a preset collection rule, use a dual-light-sensing camera to obtain an infrared light person according to the arrangement of the light pixels of the infrared light.
  • the face image continues to acquire the infrared face image until the number of acquired infrared face images is the same as the number of infrared face images in the preset collection rule, and the collection of the infrared face image is ended.
  • the device further includes:
  • the face recognition fails.
  • the dual light-sensing camera is used again to obtain a visible light face image set and an infrared light face image set.
  • the device further includes:
  • the display module is configured to display the recognition result of the face recognition on the display screen of the local end.
  • the device provided by the embodiment of the present disclosure can realize face image collection and face recognition under different ambient light conditions by performing face recognition using a dual light-sensing camera, thereby improving the accuracy of face recognition without requiring mobile terminal configuration. Multiple cameras save hardware space, improve cost performance, and facilitate user carrying and operation of mobile terminals.
  • the device for recognizing a face according to the foregoing embodiment is exemplified by the division of each functional module in the face recognition. In actual applications, the function may be assigned to different functional modules according to requirements. Upon completion, the internal structure of the mobile terminal is divided into different functional modules to complete all or part of the functions described above.
  • the device for the face recognition provided by the foregoing embodiment is the same as the method for the method of the face recognition. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device may be used to implement the face recognition method provided in the foregoing embodiment. Specifically:
  • Terminal device 400 can include radio frequency circuit 110, memory 120 including one or more computer readable storage media, input unit 130, display unit 140, sensor 150, audio circuit 160, WiFi module 170, including one or more processes The core processor 180, and the power supply 190 and the like. It will be understood by those skilled in the art that the terminal device structure shown in Fig. 4 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or may be combined with some components, or different component arrangements. among them:
  • the radio frequency circuit 110 can be used to transmit and receive information and receive and transmit signals during a call. Specifically, the radio frequency circuit 110 receives the downlink information of the base station and then processes it by one or more processors 180; in addition, transmits the data related to the uplink to the base station.
  • a radio frequency circuit as a communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, and an LNA (Low Noise Amplifier, low) Noise amplifier), duplexer, etc.
  • radio frequency circuit 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • SMS Short Messaging Service
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal device 400 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 can also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 131 or on the touch-sensitive surface 131 The operation near the touch-sensitive surface 131), and driving the corresponding connection according to a preset program Set.
  • the touch-sensitive surface 131 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 140 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal device 400, which can be constructed from graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 400 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the terminal device 400 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device 400, other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., can be configured here. No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal device 400.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal device, for example, by the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 400.
  • the WiFi module 170 may be configured on the terminal device.
  • WiFi is a short-range wireless transmission technology
  • the terminal device 400 can help a user to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides wireless broadband Internet access for users.
  • FIG. 4 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal device 400, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is the control center of the terminal device 400, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the processor 180 may include one or more processing cores.
  • the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 400 further includes a power source 190 (such as a battery) for supplying power to the various components.
  • a power source 190 such as a battery
  • the power source can be logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal device 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal device is a touch screen display
  • the terminal device further includes a memory
  • the memory further includes one or more programs, and is configured to be executed by one or more processors 180.
  • One or more programs include a face recognition method for performing the embodiment shown in FIG. 1 and a face recognition method provided by the embodiment shown in FIG. 2.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Collating Specific Patterns (AREA)
  • Image Processing (AREA)

Abstract

公开了一种人脸识别方法、装置和移动终端,属于生物特征识别领域。所述方法包括:根据预设采集规则,使用双光线感应摄像头获取可见光人脸图像集;根据所述预设采集规则,使用所述双光线感应摄像头获取红外光人脸图像集;判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图像匹配的人脸模板图像;当本端存在时,人脸识别通过。

Description

人脸识别方法、 装置和移动终端
本申请基于申请号为 201310289216.X、申请日为 2013/7/10的中国专利申请提出, 并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参 考。 技术领域
本公开涉及生物特征识别领域, 特别涉及一种人脸识别方法、 装置和移动终端。 背景技术
随着终端技术和生物特征识别技术的发展,越来越多的移动终端可以应用人脸识 别技术实现屏幕的解锁、 身份识别、 登录验证等多种功能。 在进行人脸识别时, 移动 终端利用配置的摄像设备实时采集人脸图像, 并与预先采集的模板图像进行匹配识 另 |J, 当采集到的人脸图像与模板图像匹配时, 验证通过。
但人脸识别会受到环境光线的影响, 在黑暗环境或亮光环境下, 环境光线与预先 采集模板图像时的环境光线不同,容易造成摄像设备无法采集到与模板图像匹配的人 脸图像, 导致验证失败。
为了避免环境光线对人脸图像的影响,移动终端可以同时配置有可见光摄像设备 和红外光摄像设备以进行人脸图像的采集。 由可见光摄像设备采集可见光人脸图像, 由红外光摄像设备采集红外光人脸图像,并分别将可见光人脸图像和红外光人脸图像 与模板图像进行人脸识别,实现了在不同环境光线条件下对人脸图像的采集和人脸识 别。
在实现本公开的过程中, 发明人发现至少存在以下问题:
移动终端需要同时配置有可见光摄像设备和红外光摄像设备, 对硬件的要求较 高, 为了实现不同环境光线条件下的采集和人脸识别, 就必然增加了硬件成本, 且配 置有多个摄像设备会使得移动终端的体积较大,为用户对移动终端的携带和操作带来 不便。 发明内容
为了解决增加了硬件成本, 且占用了较大的体积的问题, 本公开实施例提供了一 种人脸识别方法、 装置和移动终端。 所述技术方案如下:
根据本公开实施例的第一方面, 提供了一种人脸识别方法, 所述方法包括: 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 所述可见光 人脸图像集包括至少一张可见光人脸图像;
根据所述预设采集规则, 使用所述双光线感应摄像头获取红外光人脸图像集, 所 述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像;
当本端存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图 像匹配的人脸模板图像时, 人脸识别通过。
较佳的,根据预设采集规则,使用双光线感应摄像头获取可见光人脸图像集之前, 所述方法还包括:
根据当前环境的光线条件,调整所述预设采集规则中可见光人脸图像和红外光人 脸图像的图像个数。
较佳的,根据预设采集规则,使用双光线感应摄像头获取可见光人脸图像集之前, 所述方法还包括:
配置所述双光线感应摄像头采集图像时的帧率和图像分辨率。
较佳的, 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 包 括- 当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照可见光的光像素排列方式, 获取可见光人脸图像;
继续获取可见光人脸图像,直至获取到的可见光人脸图像数目与所述预设采集规 则中的可见光人脸图像个数相同, 结束对可见光人脸图像的采集;
相应地, 根据所述预设采集规则, 使用所述双光线感应摄像头按照红外光的光像 素排列方式, 获取红外光人脸图像集, 包括:
当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照红外光的光像素排列方式, 获取红外光人脸图像;
继续获取红外光人脸图像,直至获取到的红外光人脸图像数目与所述预设采集规 则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
较佳的,判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中 任一张人脸图像匹配的人脸模板图像之后, 所述方法还包括:
当确定本端不存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用所述双光线感应摄像头 获取可见光人脸图像集和红外光人脸图像集。
较佳的,判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中 任一张人脸图像匹配的人脸模板图像之后, 所述方法还包括:
将人脸识别的识别结果显示在本端的显示屏幕上。
根据本公开实施例的第二方面, 提供一种人睑识别装置, 包括: 可见光获取模块, 用于根据预设采集规则, 使用双光线感应摄像头获取可见光人 脸图像集, 所述可见光人脸图像集包括至少一张可见光人脸图像;
红外光获取模块, 用于根据所述预设采集规则, 使用所述双光线感应摄像头获取 红外光人脸图像集, 所述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
匹配模块,用于判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图 像集中任一张人脸图像匹配的人脸模板图像;
识别通过模块,用于当本端存在与所述可见光人脸图像集和所述红外光人脸图像 集中任一张人脸图像匹配的人脸模板图像时, 人脸识别通过。
较佳的, 所述装置还包括:
规则调整模块, 用于根据当前环境的光线条件, 调整所述预设采集规则中可见光 人脸图像和红外光人脸图像的图像个数。
较佳的, 所述装置还包括:
配置模块, 用于配置所述双光线感应摄像头采集图像时的帧率和图像分辨率。 较佳的, 所述可见光获取模块用于当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像头按照可见光的光像素排列方式, 获取可见 光人脸图像; 继续获取可见光人脸图像, 直至获取到的可见光人脸图像数目与所述预 设采集规则中的可见光人脸图像个数相同, 结束对可见光人脸图像的采集;
相应地, 所述红外光获取模块用于当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像头按照红外光的光像素排列方式, 获取红外 光人脸图像; 继续获取红外光人脸图像, 直至获取到的红外光人脸图像数目与所述预 设采集规则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
较佳的, 所述装置还包括:
识别未通过模块,用于当确定本端不存在与所述可见光人脸图像集和所述红外光 人脸图像集中任一张人脸图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用所 述双光线感应摄像头获取可见光人脸图像集和红外光人脸图像集。
较佳的, 所述装置还包括:
显示模块, 用于将人脸识别的识别结果显示在本端的显示屏幕上。
根据本公开实施例的第三方面, , 提供了一种移动终端, 包括有存储器, 以及一 个或者一个以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由 一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的 指令- 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 所述可见光 人脸图像集包括至少一张可见光人脸图像: 根据所述预设采集规则, 使用所述双光线感应摄像头获取红外光人脸图像集, 所 述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像;
当本端存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图 像匹配的人脸模板图像时, 人脸识别通过。
本公开的实施例提供的技术方案可以包括以下有益效果:
本公开实施例提供的方法、 装置和移动终端, 通过使用双光线感应摄像头进行人 脸识别, 能够实现不同环境光线条件下人脸图像的采集和人脸识别, 提高了人脸识别 的准确率, 且无需移动终端配置多个摄像头, 节省了硬件空间, 提高了性价比, 方便 用户对移动终端的携带和操作。
应当理解的是, 以上的一般描述和后文的细节描述仅是示例性和解释性的, 并不 能限制本发明。 附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍, 此处的附图被并入说明书中并构成本说明书的一部分, 示出了符合本 发明的实施例, 并与说明书一起用于解释本发明的原理。
图 1是根据一示例性实施例示出的一种人脸识别方法的流程图;
图 2是根据又一示例性实施例示出的一种人脸识别方法的流程图;
图 3是根据一示例性实施例示出的一种人脸识别装置结构示意图;
图 4是根据一示例性实施例提供示出的一种终端设备结构示意图。 具体实施方式
下面将结合本公开实施例中的附图, 对本公开实施例中的技术方案进行清楚、完整地 描述, 显然, 所描述的实施例是本公开一部分实施例, 而不是全部的实施例。 基于本公开 中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施 例, 都属于本公开保护的范围。
图 1是本公开实施例提供的一种人脸识别方法的流程图。该发明实施例的执行主体为 移动终端, 参见图 1, 所述方法包括:
101: 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 该可见光 人脸图像集包括至少一张可见光人脸图像; 102: 根据该预设采集规则, 使用该双光线感应摄像头获取红外光人脸图像集, 该红 外光人脸图像集包括至少一张红外光人脸图像;
其中,该预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序和图像 个数;
103: 判断本端是否存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸 图像匹配的人脸模板图像;
104: 当本端存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸图像匹 配的人脸模板图像时, 人脸识别通过。
本公开实施例提供的方法, 通过根据预设采集规则, 使用双光线感应摄像头获取可见 光人脸图像集和红外光人脸图像集,并判断本端是否存在与该可见光人脸图像集和该红外 光人脸图像集中任一张人脸图像匹配的人脸模板图像, 当本端存在与该可见光人脸图像集 和该红外光人脸图像集中任一张人脸图像匹配的人脸模板图像时, 人脸识别通过。采用本 公开的技术方案, 通过使用双光线感应摄像头进行人脸识别, 能够实现不同环境光线条件 下人脸图像的采集和人脸识别, 提高了人脸识别的准确率, 且无需移动终端配置多个摄像 头, 节省了硬件空间, 提高了性价比, 方便用户对移动终端的携带和操作。
在一个实施例中, , 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像 集之前, 该方法还包括:
根据当前环境的光线条件,调整该预设采集规则中可见光人脸图像和红外光人脸图像 的图像个数。
在一个实施例中, , 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像 集之前, 该方法还包括:
配置该双光线
感应摄像头采集图像时的帧率和图像分辨率。
在一个实施例中, , 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像 集, 包括:
当该双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像 头按照可见光的光像素排列方式, 获取可见光人脸图像;
继续获取可见光人脸图像,直至获取到的可见光人脸图像数目与该预设采集规则中的 可见光人脸图像个数相同, 结束对可见光人脸图像的采集;
相应地, 根据该预设采集规则, 使用该双光线感应摄像头按照红外光的光像素排列方 式, 获取红外光人脸图像集, 包括:
当该双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像 头按照红外光的光像素排列方式, 获取红外光人脸图像;
继续获取红外光人脸图像,直至获取到的红外光人脸图像数目与该预设采集规则中的 红外光人脸图像个数相同, 结束对红外光人睑阁像的妥隼。 在一个实施例中, , 判断本端是否存在与该可见光人脸图像集和该红外光人脸图像集 中任一张人脸图像匹配的人脸模板图像之后, 该方法还包括:
当确定本端不存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸图像 匹配的人脸模板图像时, 人脸识别未通过, 再次使用该双光线感应摄像头获取可见光人脸 图像集和红外光人脸图像集。
在一个实施例中, , 判断本端是否存在与该可见光人脸图像集和该红外光人脸图像集 中任一张人脸图像匹配的人脸模板图像之后, 该方法还包括:
将人脸识别的识别结果显示在本端的显示屏幕上。
上述所有可选技术方案, 可以采用任意结合形成本公开的可选实施例, 在此不再一一 赘述。
图 2是本公开实施例提供的一种人脸识别方法的流程图。该发明实施例的执行主体为 移动终端, 参见图 2, 所述方法包括:
201: 根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 该可见光 人脸图像集包括至少一张可见光人脸图像;
该步骤具体包括步骤 (一) 和 (二) :
(一) 当该双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照可见光的光像素排列方式, 获取可见光人脸图像;
(二)继续获取可见光人脸图像, 直至获取到的可见光人脸图像数目与该预设采集规 则中的可见光人脸图像个数相同, 结束对可见光人脸图像的采集。
202: 根据该预设采集规则, 使用该双光线感应摄像头获取红外光人脸图像集, 该红 外光人脸图像集包括至少一张红外光人脸图像;
该步骤具体包括步骤 (三) 和 (四) :
(三) 当该双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照红外光的光像素排列方式, 获取红外光人脸图像集;
(四)继续获取红外光人脸图像, 直至获取到的红外光人脸图像数目与该预设采集规 则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
以下将对步骤 201和步骤 202进一步说明。
本公开实施例中, 在获取人脸图像时, 可以从不同的方向获取人脸图像, 从正前方、 左侧方或右侧方等, 以获得正面人脸图像、 左侧面人脸图像或右侧面人脸图像。 其中, 该 预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序和图像个数。 例如, 获取可见光人脸图像和红外光人脸图像的顺序是指从各个方向获取可见光人脸图像的顺 序以及从各个方向获取红外光人脸图像的顺序, 相应地, 获取可见光人脸图像和红外光人 脸图像的图像个数是指从各个方向获取的可见光人脸图像的图像个数以及从各个方向获 取的红外光人脸图像的图像个数。优选地, 按照该预设采集规则中获取的人脸图像的顺序 和图像个数, 在本端的显示屏幕上对用户进行榲 , P傾依次采集用户的图像, 获取到符 合该预设采集规则的人脸图像集。
该预设采集规则可以由技术人员设置, 还可以由用户在使用过程中设置, 本公开实施 例对此不做限定。
如, 该预设采集规则为首先从正前方、 左侧方和右侧方各获取一张可见光人脸图像, 再从正前方、 左侧方和右侧方各获取一张红外光人脸图像。 或者, 该预设采集规则为首先 从正前方获取可见光人脸图像和红外光人脸图像,再从左侧方获取可见光人脸图像和红外 光人脸图像。
其中, 该双光线感应摄像头可以获取可见光图像和红外光图像。 当该双光线感应摄像 头按照可见光的光像素排列方式获取图像时, 即可获取可见光图像, 当该双光线感应摄像 头按照红外光的光像素排列方式获取图像时, 即可获取红外光图像。本公开实施例中使用 该双光线感应摄像头获取可见光人脸图像和红外光人脸图像,避免了由于同时使用可见光 摄像头和红外光摄像头而造成的硬件成本上升。
该步骤 201和步骤 202可以包括: 当该双光线感应摄像头采集到完整人脸时, 根据该 预设采集规则包括的获取可见光人脸图像和红外光人脸图像的顺序和图像个数,依次获取 至少一张可见光人脸图像和 /或至少一张红外光人脸图像, 该获取到的至少一张可见光人 脸图像即构成可见光人脸图像集,该获取到的至少一张红外光人脸图像即构成红外光人脸 图像集。
需要说明的是, 该步骤 201和步骤 202之间不存在绝对的时序关系。在分别获取可见 光人脸图像集和红外光人脸图像集时,按照该预设采集规则中的获取顺序依次获取人脸图 像, 直至获取到的可见光人脸图像数目与该预设采集规则中的可见光人脸图像个数相同, 且获取到的红外光人脸图像数目与该预设采集规则中的红外光人脸图像个数相同即可。本 公开实施例以步骤 202在步骤 201之后执行为例。
其中, 当按照该预设采集规则确定将本端由采集可见光人脸图像切换为采集红外光人 脸图像时,将该双光线感应摄像头采用的光像素排列方式由可见光的光像素排列方式切换 为红外光的光像素排列方式, 相应地, 当按照该预设采集规则确定将本端由采集红外光人 脸图像切换为采集可见光人脸图像时,将该双光线感应摄像头采用的光像素排列方式由红 外光的光像素排列方式切换为可见光的光像素排列方式。
以下将对一般可见光摄像头和该双光线感应摄像头使用的光像素排列方式进行对比 说明。表 1为一般可见光摄像头使用的光像素排列方式, 其中, R代表红色, G代表绿色, B代表蓝色, 通过对 RGB三种颜色的获取, 形成可见光图像。 表 2为该双光线感应摄像 头使用的光像素排列方式, 其中, RGB 三种颜色与一般可见光摄像头一致, 而与一般可 见光摄像头不同的是, 该双光线感应摄像头引入了红外光感光像素 IR。例如, 在采集可见 光人脸图像时, IR不工作, RGB工作, 实现了可见光人脸图像的获取; 在采集红外光人 脸图像时, IR工作, RGB工作, 实现了红外光人脸图像的获取。 通过对光像素排列方式 的切换, 实现了使用该双光线感应摄像头获取可 光人睑图像和红外光人脸图像, 避免了 同时使用可见光摄像头和红外光摄像头造成的硬件成本上升, 提高了性价比 t 表 1
Figure imgf000010_0001
表 2
Figure imgf000010_0002
在该步骤 201和步骤 202之前, 该方法还包括:
根据当前环境的光线条件,调整该预设采集规则中可见光人脸图像和红外光人脸图像 的图像个数。
其中, 该环境的光线条件包括亮、 适中、 暗、 黑等状态。 例如, 可以根据该双光线感 应摄像头采集到的光线强度, 以及各个光线条件的预设光线强度阈值, 确定当前环境的光 线条件。 本公开实施例对当前环境的光线条件的确定不做限定。
实际上, 在当前环境的光线条件为亮或适中状态时, 可见光摄像头通过自动曝光, 即 可对获取到的可见光人脸图像进行精确地识别; 而在当前环境的光线条件为暗或黑状态 时,红外光摄像头通过自动曝光, 即可对获取到的红外光人脸图像进行精确地识别。因此, 根据当前环境的光线条件,调整该预设采集规则中可见光人脸图像和红外光人脸图像的图 像个数, 包括:
当前环境的光线条件变亮时, 对该预设采集规则进行调整, 根据当前环境的光线条件 的变化强度, 相应增加该预设采集规则中的可见光人脸图像的图像个数, 减少该预设采集 规则中的红外光人脸图像的图像个数;
当前环境的光线条件变暗时, 对该预设采集规则进行调整, 根据当前环境的光线条件 的变化强度, 相应减少该预设采集规则中的可见光人脸图像的图像个数, 增加该预设采集 规则中的红外光人脸图像的图像个数。
上述对该预设采集规则中可见光人脸图 ¾¾^々1 脸图像的图像个数进行调整的 具体方式可以由技术人员在开发时设置, 还可以由用户在使用过程中设置, 本公开实施例 对此不做限定。
203: 判断本端是否存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸 图像匹配的人脸模板图像;
其中, 该人脸模板图像为预先保存在本端的人脸图像, 该人脸模板图像可以作为人脸 识别的验证标准。 相应地, 在步骤 201和步骤 202之前, 该方法还包括: 获取至少一张人 脸模板图像;
需要说明的是, 在接收到用户的点击相应按键等操作时, 可以触发人脸模板图像处理 指令, 对该至少一张人脸模板图像进行添加或删除等操作, 本公开实施例对此不做限定。
该步骤 203可以包括: 遍历本端保存的人脸模板图像, 根据预设人脸识别算法, 判断 本端保存的任一人脸模板图像是否与该可见光人脸图像集和该红外光人脸图像集中任一 张人脸图像匹配。
例如, 根据该预设人脸识别算法, 对获取到的任一人脸图像进行离散、 二值化等一系 列图像处理, 得到处理结果, 并计算该人脸图像的处理结果与本端保存的任一人脸模板图 像的处理结果的相似度, 当该相似度属于预设范围时, 确定该人脸图像与该人脸模板图像 匹配, 当该相似度不属于预设范围时, 确定该人脸图像与该人脸模板图像不匹配。
其中, 该预设人脸识别算法可以为子空间分析、 主成分分析等算法。 该预设人脸识别 算法可以由技术人员在开发时设置, 还可以由用户在使用过程中选择。本公开实施例对此 不做限定。
需要说明的是, 由于使用的预设人脸识别算法的不同, 导致在获取人脸图像时, 需要 对帧率和图像分辨率进行配置,使得获取到的人脸图像的帧率和图像分辨率适用于当前使 用的预设人脸识别算法。 相应地, 在步骤 201和步骤 202之前, 该方法还包括: 配置该双 光线感应摄像头采集图像时的帧率和图像分辨率。
例如, 根据该预设人脸识别算法适用的帧率和图像分辨率, 配置该双光线感应摄像头 采集图像时的帧率和图像分辨率。
需要说明的是, 在获取人脸图像集时, 可以通过本端的显示屏幕对本端采集到的图像 进行预览, 以便于用户对人脸位置进行确认, 确保采集到完整人脸。 其中, 可以将采集到 的图像按照本端的显示屏幕的分辨率的比例进行预览, 在采集到完整人脸时, 将采集到的 人脸图像按照该预设人脸识别算法适用的图像分辨率进行获取。 在一个实施例中, , 使用 寄存器对该双光线摄像头的分辨率进行配置。
例如, 在显示屏幕的分辨率的比例为 16:9 时, 设置该双光线摄像头采用相同的图像 分辨率比例, 保证了每分钟的传送速率较高, 便于在进行预览时, 保证用户能够与该双光 线摄像头对准, 进而达到有效的采集人脸图像的位置。 当达到有效的采集人脸图像的位置 时, 获取当前采集到的人脸图像, 此时, 设置该双光线摄像头采用该预设人脸识别算法适 用的分辨率进行人脸图像的获取, 以最大限度的莸取至 Ui 人脸图像中的有效信息。 204: 当本端存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸图像匹 配的人脸模板图像时, 人脸识别通过, 执行步骤 206;
205: 当确定本端不存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸 图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用该双光线感应摄像头获取可见光 人脸图像集和红外光人脸图像集, 执行步骤 206;
206: 将人脸识别的识别结果显示在本端的显示屏幕上。
该步骤 204-205可以包括以下两种情况:
当本端存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸图像匹配的 人脸模板图像时, 人脸识别通过, 将人脸识别通过的结果显示在本端的显示屏幕上, 并继 续执行后续操作; 本公开实施例中可应用于身份验证、 门禁等系统中, 相应地, 在人脸识 别验证通过后, 执行进入该身份验证系统, 或打开门禁等操作。
或, 当确定本端不存在与该可见光人脸图像集和该红外光人脸图像集中任一张人脸图 像匹配的人脸模板图像时, 人脸识别未通过, 将人脸识别未通过的结果显示在本端的显示 屏幕上, 并再次使用该双光线感应摄像头获取可见光人脸图像集和红外光人脸图像集。
当人脸识别验证未通过时,将人脸识别未通过的结果显示在本端的显示屏幕上。同时, 可以在本端的显示屏幕上提供"重新验证"按键, 当检测到用户对"重新验证"按键的点击操 作时, 再次使用该双光线感应摄像头获取可见光人脸图像集和红外光人脸图像集。 或者, 当人脸识别验证未通过时, 将人脸识别未通过的结果显示在本端的显示屏幕上, 同时自动 触发再次使用该双光线感应摄像头获取可见光人脸图像集和红外光人脸图像集的过程,直 至当该过程的执行次数达到预设阈值, 且人脸识别验证仍未通过时, 退出人脸识别。 本公 开实施例对在人脸识别验证未通过时的具体处理方式不做限定。
需要说明的是,本公开实施例提供的人脸识别方法,可以由点击相应的按键进行触发, 如点击 "身份验证"按键和 "继续验证 "按键等。 在触发后, 需要进行初始化配置, 包括系统 初始化配置和摄像头初始化配置。 其中, 系统初始化配置针对人脸识别系统, 如身份验证 系统、 门禁系统等。 摄像头初始化配置针对该双光线摄像头本身, 可以包括设置该双光线 摄像头的上电顺序、起始和结束的像素位置以及相关的光学图像参数等。 设置起始和结束 的像素位置是指设置不同采集图像分辨率下的摄像头的像素起始位置和像素结束位置,相 关的光学图像参数包括但不限于默认的曝光参数和数字模拟增益参数。例如, 使用寄存器 进行系统初始化配置和摄像头初始化配置。
本公开实施例提供的方法, 通过根据预设采集规则, 使用双光线感应摄像头获取可见 光人脸图像集和红外光人脸图像集,并判断本端是否存在与该可见光人脸图像集和该红外 光人脸图像集中任一张人脸图像匹配的人脸模板图像, 当本端存在与该可见光人脸图像集 和该红外光人脸图像集中任一张人脸图像匹配的人脸模板图像时, 人脸识别通过。采用本 公开的技术方案, 通过使用双光线感应摄像头进行人脸识别, 能够实现不同环境光线条件 下人脸图像的采集和人脸识别, 提高了人脸 iR别的准确率, 且无需移动终端配置多个摄像 头, 节省了硬件空间, 提高了性价比, 方便用户对移动终端的携带和操作。
图 3是本公开实施例提供的一种人脸识别装置结构示意图,参见图 3,所述装置包括: 可见光获取模块 301, 用于根据预设采集规则, 使用双光线感应摄像头获取可见光人 脸图像集, 所述可见光人脸图像集包括至少一张可见光人脸图像;
红外光获取模块 302, 用于根据所述预设采集规则, 使用所述双光线感应摄像头获取 红外光人脸图像集, 所述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序和图 像个数;
匹配模块 303, 用于判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图 像集中任一张人脸图像匹配的人脸模板图像;
识别通过模块 304, 用于当本端存在与所述可见光人脸图像集和所述红外光人脸图像 集中任一张人脸图像匹配的人脸模板图像时, 人脸识别通过。
在一个实施例中, , 所述装置还包括:
规则调整模块, 用于根据当前环境的光线条件, 调整所述预设采集规则中可见光人脸 图像和红外光人脸图像的图像个数。
在一个实施例中, , 所述装置还包括:
配置模块, 用于配置所述双光线感应摄像头采集图像时的帧率和图像分辨率。
在一个实施例中, , 所述可见光获取模块 301用于当所述双光线感应摄像头采集到完 整人脸时, 根据预设采集规则, 使用双光线感应摄像头按照可见光的光像素排列方式, 获 取可见光人脸图像; 继续获取可见光人脸图像, 直至获取到的可见光人脸图像数目与所述 预设采集规则中的可见光人脸图像个数相同, 结束对可见光人脸图像的采集;
相应地, 所述红外光获取模块 302用于当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像头按照红外光的光像素排列方式, 获取红外光人 脸图像; 继续获取红外光人脸图像, 直至获取到的红外光人脸图像数目与所述预设采集规 则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
在一个实施例中, , 所述装置还包括:
识别未通过模块,用于当确定本端不存在与所述可见光人脸图像集和所述红外光人脸 图像集中任一张人脸图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用所述双光线 感应摄像头获取可见光人脸图像集和红外光人脸图像集。
在一个实施例中, , 所述装置还包括:
显示模块, 用于将人脸识别的识别结果显示在本端的显示屏幕上。
本公开实施例提供的装置, 通过使用双光线感应摄像头进行人脸识别, 能够实现不同 环境光线条件下人脸图像的采集和人脸识别, 提高了人脸识别的准确率, 且无需移动终端 配置多个摄像头, 节省了硬件空间, 提高了性价比, 方便用户对移动终端的携带和操作。 需要说明的是: 上述实施例提供的人脸识别的装置在人脸识别时, 仅以上述各功能模 块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配由不同的功能模块 完成, 即将移动终端的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分 功能。 另外, 上述实施例提供的人脸识别的装置与人脸识别的方法实施例属于同一构思, 其具体实现过程详见方法实施例, 这里不再赘述。
图 4是本公开实施例提供的一种终端设备结构示意图, 参见图 4, 该终端设备可以用 于实施上述实施例中提供的人脸识别方法。 具体来讲:
终端设备 400可以包括射频电路 110、 包括有一个或一个以上计算机可读存储介质的 存储器 120、 输入单元 130、 显示单元 140、 传感器 150、 音频电路 160、 WiFi模块 170、 包括有一个或者一个以上处理核心的处理器 180、 以及电源 190等部件。 本领域技术人员 可以理解, 图 4中示出的终端设备结构并不构成对终端设备的限定, 可以包括比图示更多 或更少的部件, 或者组合某些部件, 或者不同的部件布置。 其中:
射频电路 110可用于收发信息或通话过程中, 信号的接收和发送。 特别地, 射频电路 110将基站的下行信息接收后, 交由一个或者一个以上处理器 180处理; 另外, 将涉及上 行的数据发送给基站。 通常, 作为通信单元的射频电路包括但不限于天线、 至少一个放大 器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、 LNA (Low Noise Amplifier, 低噪声放大器) 、 双工器等。 此外, 射频电路 110还可以通过无线通信 与网络和其他设备通信。 所述无线通信可以使用任一通信标准或协议, 包括但不限于 GSM(Global System of Mobile communication, 全球移动通讯系统)、 GPRS(General Packet Radio Service, 通用分组无线服务)、 CDMA(Code Division Multiple Access, 码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽带码分多址)、 LTE(Long Term Evolution, 长期演进)、 电子邮件、 SMS(Short Messaging Service, 短消息服务)等。 存储器 120可用于存储软件程序以及模块, 处理器 180通过运行存储在存储器 120的软件程序以 及模块, 从而执行各种功能应用以及数据处理。存储器 120可主要包括存储程序区和存储 数据区, 其中, 存储程序区可存储操作系统、 至少一个功能所需的应用程序 (比如声音播 放功能、 图像播放功能等)等; 存储数据区可存储根据终端设备 400的使用所创建的数据 (比如音频数据、 电话本等) 等。 此外, 存储器 120可以包括高速随机存取存储器, 还可 以包括非易失性存储器, 例如至少一个磁盘存储器件、 闪存器件、 或其他易失性固态存储 器件。 相应地, 存储器 120还可以包括存储器控制器, 以提供处理器 180和输入单元 130 对存储器 120的访问。
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功能控制 有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入单元 130可包括触 敏表面 131 以及其他输入设备 132。 触敏表面 131, 也称为触摸显示屏或者触控板, 可收 集用户在其上或附近的触摸操作(比如用户使用手指、 触笔等任何适合的物体或附件在触 敏表面 131上或在触敏表面 131附近的操作), 并枏据预先设定的程式驱动相应的连接装 置。 可选的, 触敏表面 131可包括触摸检测装置和触摸控制器两个部分。 其中, 触摸检测 装置检测用户的触摸方位, 并检测触摸操作带来的信号, 将信号传送给触摸控制器; 触摸 控制器从触摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并 能接收处理器 180发来的命令并加以执行。 此外, 可以采用电阻式、 电容式、 红外线以及 表面声波等多种类型实现触敏表面 131。 除了触敏表面 131, 输入单元 130还可以包括其 他输入设备 132。 具体地, 其他输入设备 132可以包括但不限于物理键盘、 功能键 (比如 音量控制按键、 开关按键等) 、 轨迹球、 鼠标、 操作杆等中的一种或多种。
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端设备 400的 各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意组合来构 成。 显示单元 140可包括显示面板 141, 可选的, 可以采用 LCD(Liquid Crystal Display, 液晶显示器)、 OLED(Organic Light-Emitting Diode, 有机发光二极管)等形式来配置显示面 板 141。 进一步的, 触敏表面 131可覆盖显示面板 141, 当触敏表面 131检测到在其上或 附近的触摸操作后, 传送给处理器 180以确定触摸事件的类型, 随后处理器 180根据触摸 事件的类型在显示面板 141上提供相应的视觉输出。 虽然在图 4中, 触敏表面 131与显示 面板 141是作为两个独立的部件来实现输入和输入功能, 但是在某些实施例中, 可以将触 敏表面 131与显示面板 141集成而实现输入和输出功能。
终端设备 400还可包括至少一种传感器 150, 比如光传感器、 运动传感器以及其他传 感器。 具体地, 光传感器可包括环境光传感器及接近传感器, 其中, 环境光传感器可根据 环境光线的明暗来调节显示面板 141的亮度,接近传感器可在终端设备 400移动到耳边时, 关闭显示面板 141 和 /或背光。 作为运动传感器的一种, 重力加速度传感器可检测各个方 向上(一般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于识别手机 姿态的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准) 、 振动识别相关功能 (比如 计步器、 敲击) 等; 至于终端设备 400还可配置的陀螺仪、 气压计、 湿度计、 温度计、 红 外线传感器等其他传感器, 在此不再赘述。
音频电路 160、 扬声器 161, 传声器 162可提供用户与终端设备 400之间的音频接口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161, 由扬声器 161 转换为声音信号输出; 另一方面, 传声器 162将收集的声音信号转换为电信号, 由音频电 路 160接收后转换为音频数据, 再将音频数据输出处理器 180处理后, 经 RF电路 110以 发送给比如另一终端设备, 或者将音频数据输出至存储器 120以便进一步处理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与终端设备 400的通信。
为了实现无线通信, 该终端设备上可以配置有 WiFi模块 170。 WiFi属于短距离无线 传输技术, 终端设备 400通过 WiFi模块 170可以帮助用户收发电子邮件、 浏览网页和访 问流式媒体等, 它为用户提供了无线的宽带互联网访问。 虽然图 4示出了 WiFi模块 170, 但是可以理解的是, 其并不属于终端设备 400的必须构成, 完全可以根据需要在不改变发 明的本质的范围内而省略。 处理器 180是终端设备 400的控制中心,利用各种接口和线路连接整个手机的各个部 分, 通过运行或执行存储在存储器 120 内的软件程序和 /或模块, 以及调用存储在存储器 120内的数据, 执行终端设备 400的各种功能和处理数据, 从而对手机进行整体监控。 可 选的, 处理器 180可包括一个或多个处理核心; 优选的, 处理器 180可集成应用处理器和 调制解调处理器, 其中, 应用处理器主要处理操作系统、 用户界面和应用程序等, 调制解 调处理器主要处理无线通信。可以理解的是, 上述调制解调处理器也可以不集成到处理器 180中。
终端设备 400还包括给各个部件供电的电源 190 (比如电池) , 优选的, 电源可以通 过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理充电、 放电、 以 及功耗管理等功能。电源 190还可以包括一个或一个以上的直流或交流电源、再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源状态指示器等任意组件。
尽管未示出, 终端设备 400还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 具体在 本实施例中, 终端设备的显示单元是触摸屏显示器, 终端设备还包括有存储器, 所述存储 器还包括一个或者一个以上的程序,且经配置以由一个或者一个以上处理器 180执行所述 一个或者一个以上程序包含用于执行图 1所示实施例所提供的人脸识别方法和图 2所示实 施例所提供的人脸识别方法。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储 介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上所述仅为本公开的较佳实施例, 并不用以限制本公开, 凡在本公开的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本公开的保护范围之内。

Claims

权利要求
1、 一种人脸识别方法, 其特征在于, 所述方法包括:
根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 所述可见光 人脸图像集包括至少一张可见光人脸图像;
根据所述预设采集规则, 使用所述双光线感应摄像头获取红外光人脸图像集, 所 述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像;
当本端存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图 像匹配的人脸模板图像时, 人脸识别通过。
2、 根据权利要求 1所述的方法, 其特征在于, 根据预设采集规则, 使用双光线 感应摄像头获取可见光人脸图像集之前, 所述方法还包括:
根据当前环境的光线条件,调整所述预设采集规则中可见光人脸图像和红外光人 脸图像的图像个数。
3、 根据权利要求 1所述的方法, 其特征在于, 根据预设采集规则, 使用双光线 感应摄像头获取可见光人脸图像集之前, 所述方法还包括:
配置所述双光线感应摄像头采集图像时的帧率和图像分辨率。
4、 根据权利要求 1所述的方法, 其特征在于, 根据预设采集规则, 使用双光线 感应摄像头获取可见光人脸图像集, 包括:
当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照可见光的光像素排列方式, 获取可见光人脸图像;
继续获取可见光人脸图像,直至获取到的可见光人脸图像数目与所述预设采集规 则中的可见光人脸图像个数相同, 结束对可见光人脸图像的采集;
相应地, 根据所述预设采集规则, 使用所述双光线感应摄像头按照红外光的光像 素排列方式, 获取红外光人脸图像集, 包括:
当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感 应摄像头按照红外光的光像素排列方式, 获取红外光人脸图像;
继续获取红外光人脸图像,直至获取到的红外光人脸图像数目与所述预设采集规 则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 判断本端是否存在与所 述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图像匹配的人脸模板图 像之后, 所述方法还包括:
当确定本端不存在与所述可见光人脸阁像隼禾 Π所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用所述双光线感应摄像头 获取可见光人脸图像集和红外光人脸图像集。
6、 根据权利要求 1-4任一项所述的方法, 其特征在于, 判断本端是否存在与所 述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图像匹配的人脸模板图 像之后, 所述方法还包括:
将人脸识别的识别结果显示在本端的显示屏幕上。
7、 一种人脸识别装置, 其特征在于, 所述装置包括:
可见光获取模块, 用于根据预设采集规则, 使用双光线感应摄像头获取可见光人 脸图像集, 所述可见光人脸图像集包括至少一张可见光人脸图像;
红外光获取模块, 用于根据所述预设采集规则, 使用所述双光线感应摄像头获取 红外光人脸图像集, 所述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
匹配模块,用于判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图 像集中任一张人脸图像匹配的人脸模板图像;
识别通过模块,用于当本端存在与所述可见光人脸图像集和所述红外光人脸图像 集中任一张人脸图像匹配的人脸模板图像时, 人脸识别通过。
8、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括:
规则调整模块, 用于根据当前环境的光线条件, 调整所述预设采集规则中可见光 人脸图像和红外光人脸图像的图像个数。
9、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括:
配置模块, 用于配置所述双光线感应摄像头采集图像时的帧率和图像分辨率。
10、 根据权利要求 7所述的装置, 其特征在于, 所述可见光获取模块用于当所述 双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像头按 照可见光的光像素排列方式, 获取可见光人脸图像; 继续获取可见光人脸图像, 直至 获取到的可见光人脸图像数目与所述预设采集规则中的可见光人脸图像个数相同,结 束对可见光人脸图像的采集;
相应地, 所述红外光获取模块用于当所述双光线感应摄像头采集到完整人脸时, 根据预设采集规则, 使用双光线感应摄像头按照红外光的光像素排列方式, 获取红外 光人脸图像; 继续获取红外光人脸图像, 直至获取到的红外光人脸图像数目与所述预 设采集规则中的红外光人脸图像个数相同, 结束对红外光人脸图像的采集。
1 1、 根据权利要求 7-10任一项所述的装置, 其特征在于, 所述装置还包括: 识别未通过模块,用于当确定本端不存在与所述可见光人脸图像集和所述红外光 人脸图像集中任一张人脸图像匹配的人脸模板图像时, 人脸识别未通过, 再次使用所 述双光线感应摄像头获取可见光人脸图像隼禾 Π红外光人脸图像集。
12、 根据权利要求 7-10任一项所述的装置, 其特征在于, 所述装置还包括: 显示模块, 用于将人脸识别的识别结果显示在本端的显示屏幕上。
13、一种移动终端, 其特征在于, 包括有存储器, 以及一个或者一个以上的程序, 其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器 执行所述一个或者一个以上程序包含用于进行以下操作的指令:
根据预设采集规则, 使用双光线感应摄像头获取可见光人脸图像集, 所述可见光 人脸图像集包括至少一张可见光人脸图像;
根据所述预设采集规则, 使用所述双光线感应摄像头获取红外光人脸图像集, 所 述红外光人脸图像集包括至少一张红外光人脸图像;
其中,所述预设采集规则至少包括获取可见光人脸图像和红外光人脸图像的顺序 和图像个数;
判断本端是否存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张 人脸图像匹配的人脸模板图像;
当本端存在与所述可见光人脸图像集和所述红外光人脸图像集中任一张人脸图 像匹配的人脸模板图像时, 人脸识别通过。
PCT/CN2014/076513 2013-07-10 2014-04-29 人脸识别方法、装置和移动终端 WO2015003522A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310289216.XA CN103400108B (zh) 2013-07-10 2013-07-10 人脸识别方法、装置和移动终端
CN201310289216.X 2013-07-10

Publications (1)

Publication Number Publication Date
WO2015003522A1 true WO2015003522A1 (zh) 2015-01-15

Family

ID=49563726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076513 WO2015003522A1 (zh) 2013-07-10 2014-04-29 人脸识别方法、装置和移动终端

Country Status (2)

Country Link
CN (1) CN103400108B (zh)
WO (1) WO2015003522A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106695810A (zh) * 2016-11-25 2017-05-24 塔米智能科技(北京)有限公司 一种基于视觉的迎宾服务机器人及工作方法
CN107220623A (zh) * 2017-05-27 2017-09-29 湖南德康慧眼控制技术股份有限公司 一种人脸识别方法及系统
CN110127468A (zh) * 2019-04-12 2019-08-16 深圳壹账通智能科技有限公司 电梯控制方法、装置、计算机可读存储介质和计算机设备
CN111274940A (zh) * 2020-01-19 2020-06-12 厦门中控智慧信息技术有限公司 一种人脸识别方法、装置、设备和储存介质
CN111419200A (zh) * 2020-04-30 2020-07-17 内蒙古智萃科技信息咨询有限公司 人脸识别智能测温系统、设备及存储介质
EP3608813A4 (en) * 2018-05-29 2020-07-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. VERIFICATION SYSTEM, ELECTRONIC DEVICE, VERIFICATION PROCESS, STORAGE MEDIA READABLE BY COMPUTER AND COMPUTER DEVICE

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103400108B (zh) * 2013-07-10 2017-07-14 小米科技有限责任公司 人脸识别方法、装置和移动终端
TWI559771B (zh) * 2014-07-31 2016-11-21 義隆電子股份有限公司 主動式像素感測裝置及其操作方法
CN104777904A (zh) * 2015-03-28 2015-07-15 深圳市金立通信设备有限公司 一种终端
CN105023005B (zh) * 2015-08-05 2018-12-07 王丽婷 人脸识别装置及其识别方法
CN106815983A (zh) * 2015-11-30 2017-06-09 东莞酷派软件技术有限公司 移动终端携带提醒方法、装置及系统
CN105931316A (zh) * 2015-12-18 2016-09-07 许昌学院 一种智能区域监控方法
CN106815914A (zh) * 2017-01-25 2017-06-09 辛明江 一种基于人脸识别技术的门禁系统及解锁方法
CN106980838A (zh) * 2017-03-29 2017-07-25 中控智慧科技股份有限公司 一种身份识别方法及系统
CN110826516B (zh) 2017-05-03 2023-04-18 Oppo广东移动通信有限公司 光学指纹验证方法及相关产品
CN108985134B (zh) * 2017-06-01 2021-04-16 重庆中科云从科技有限公司 基于双目摄像机的人脸活体检测及刷脸交易方法及系统
CN107292285B (zh) * 2017-07-14 2020-01-14 Oppo广东移动通信有限公司 虹膜活体检测方法及相关产品
JP7210872B2 (ja) * 2017-07-19 2023-01-24 富士フイルムビジネスイノベーション株式会社 画像処理装置及び画像処理プログラム
CN107507380A (zh) * 2017-09-13 2017-12-22 深圳传音制造有限公司 一种基于智能设备的监控方法及监控装置
CN107679481B (zh) * 2017-09-27 2021-09-14 Oppo广东移动通信有限公司 解锁控制方法及相关产品
CN107527048B (zh) * 2017-09-29 2020-09-01 Oppo广东移动通信有限公司 指纹识别方法、装置、存储介质及移动终端
CN109977741A (zh) * 2017-12-28 2019-07-05 北京京东尚科信息技术有限公司 人脸识别方法、装置、系统及介质
CN110226169A (zh) * 2018-01-04 2019-09-10 深圳阜时科技有限公司 电子设备及其面部识别方法
CN108491815B (zh) * 2018-03-29 2024-03-12 福建海景科技开发有限公司 一种双屏人脸识别设备
CN108446665B (zh) * 2018-03-30 2020-04-17 维沃移动通信有限公司 一种人脸识别方法和移动终端
CN108427939B (zh) * 2018-03-30 2022-09-23 百度在线网络技术(北京)有限公司 模型生成方法和装置
CN108875338A (zh) * 2018-05-04 2018-11-23 北京旷视科技有限公司 解锁方法、装置和系统及存储介质
CN110619200B (zh) * 2018-06-19 2022-04-08 Oppo广东移动通信有限公司 验证系统和电子装置
CN109002786B (zh) * 2018-07-06 2022-02-18 深圳市富士智能系统有限公司 人脸检测方法、设备及计算机可读存储介质
CN110751753A (zh) * 2018-07-06 2020-02-04 北京驭光科技发展有限公司 进门控制方法和系统
CN109063620A (zh) * 2018-07-25 2018-12-21 维沃移动通信有限公司 一种身份识别方法及终端设备
CN110826366A (zh) * 2018-08-10 2020-02-21 北京魔门塔科技有限公司 一种夜晚用于数据分析的人脸图像采集系统
CN109145801B (zh) * 2018-08-13 2021-02-02 浙江宇视科技有限公司 一种人脸识别方法及人脸识别系统
CN109635539B (zh) * 2018-10-30 2022-10-14 荣耀终端有限公司 一种人脸识别方法及电子设备
CN109284597A (zh) * 2018-11-22 2019-01-29 北京旷视科技有限公司 一种人脸解锁方法、装置、电子设备和计算机可读介质
CN112052706B (zh) * 2019-06-06 2022-07-29 鸿富锦精密工业(武汉)有限公司 电子装置及人脸识别方法
CN110532992B (zh) * 2019-09-04 2023-01-10 深圳市捷顺科技实业股份有限公司 一种基于可见光和近红外的人脸识别方法
CN110929575A (zh) * 2019-10-22 2020-03-27 苏州雷泰智能科技有限公司 放射治疗病人身份验证方法、装置及放射治疗设备
CN112989866B (zh) * 2019-12-02 2024-04-09 浙江宇视科技有限公司 对象识别方法、装置、电子设备和可读存储介质
CN111200707A (zh) * 2019-12-24 2020-05-26 杭州宇泛智能科技有限公司 人脸识别设备的红外参数调整方法、装置及电子设备
CN111881822A (zh) * 2020-07-27 2020-11-03 深圳市爱深盈通信息技术有限公司 基于人脸识别的门禁方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964056A (zh) * 2010-10-26 2011-02-02 徐勇 一种具有活体检测功能的双模态人脸认证方法和系统
CN102831379A (zh) * 2011-06-14 2012-12-19 汉王科技股份有限公司 人脸图像识别方法及装置
CN103136516A (zh) * 2013-02-08 2013-06-05 上海交通大学 可见光与近红外信息融合的人脸识别方法及系统
CN103400108A (zh) * 2013-07-10 2013-11-20 北京小米科技有限责任公司 人脸识别方法、装置和移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639891B (zh) * 2008-07-28 2012-05-02 汉王科技股份有限公司 一种双摄像头人脸识别装置和方法
CN202150141U (zh) * 2011-08-12 2012-02-22 桑田智能工程技术(上海)有限公司 一种人脸识别门禁系统
CN102957917B (zh) * 2011-08-30 2016-03-30 比亚迪股份有限公司 一种像素阵列、摄像头及基于该阵列的色彩处理方法
CN102595064B (zh) * 2012-02-23 2014-07-09 中国科学院上海高等研究院 Cmos图像传感器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964056A (zh) * 2010-10-26 2011-02-02 徐勇 一种具有活体检测功能的双模态人脸认证方法和系统
CN102831379A (zh) * 2011-06-14 2012-12-19 汉王科技股份有限公司 人脸图像识别方法及装置
CN103136516A (zh) * 2013-02-08 2013-06-05 上海交通大学 可见光与近红外信息融合的人脸识别方法及系统
CN103400108A (zh) * 2013-07-10 2013-11-20 北京小米科技有限责任公司 人脸识别方法、装置和移动终端

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106695810A (zh) * 2016-11-25 2017-05-24 塔米智能科技(北京)有限公司 一种基于视觉的迎宾服务机器人及工作方法
CN106695810B (zh) * 2016-11-25 2023-09-01 塔米智能科技(北京)有限公司 一种基于视觉的迎宾服务机器人及工作方法
CN107220623A (zh) * 2017-05-27 2017-09-29 湖南德康慧眼控制技术股份有限公司 一种人脸识别方法及系统
EP3608813A4 (en) * 2018-05-29 2020-07-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. VERIFICATION SYSTEM, ELECTRONIC DEVICE, VERIFICATION PROCESS, STORAGE MEDIA READABLE BY COMPUTER AND COMPUTER DEVICE
US11580779B2 (en) 2018-05-29 2023-02-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Verification system, electronic device, and verification method
CN110127468A (zh) * 2019-04-12 2019-08-16 深圳壹账通智能科技有限公司 电梯控制方法、装置、计算机可读存储介质和计算机设备
CN110127468B (zh) * 2019-04-12 2023-02-07 深圳壹账通智能科技有限公司 电梯控制方法、装置、计算机可读存储介质和计算机设备
CN111274940A (zh) * 2020-01-19 2020-06-12 厦门中控智慧信息技术有限公司 一种人脸识别方法、装置、设备和储存介质
CN111419200A (zh) * 2020-04-30 2020-07-17 内蒙古智萃科技信息咨询有限公司 人脸识别智能测温系统、设备及存储介质

Also Published As

Publication number Publication date
CN103400108A (zh) 2013-11-20
CN103400108B (zh) 2017-07-14

Similar Documents

Publication Publication Date Title
WO2015003522A1 (zh) 人脸识别方法、装置和移动终端
WO2018103525A1 (zh) 人脸关键点跟踪方法和装置、存储介质
WO2018121428A1 (zh) 一种活体检测方法、装置及存储介质
CN107977144B (zh) 一种截屏处理方法及移动终端
CN108459797B (zh) 一种折叠屏的控制方法及移动终端
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
EP4109218B1 (en) Mobile phone comprising a touch screen with an in-display fingerprint sensor
CN108427876A (zh) 一种指纹识别方法及移动终端
JP6522124B2 (ja) ジェスチャ制御方法、デバイス、およびシステム
WO2018219170A1 (zh) 控制对焦的方法、计算机设备及计算机可读存储介质
CN110913139B (zh) 拍照方法及电子设备
US10922846B2 (en) Method, device and system for identifying light spot
US11843715B2 (en) Photographing method and terminal
WO2019105237A1 (zh) 图像处理方法、计算机设备和计算机可读存储介质
EP4131931A1 (en) Image capturing method and electronic device
CN108111676B (zh) 一种应用程序控制方法、移动终端及计算机可读存储介质
CN107241552B (zh) 一种图像获取方法、装置、存储介质和终端
WO2019144956A1 (zh) 图像传感器、镜头模组、移动终端、人脸识别方法及装置
WO2019047862A1 (zh) 一种指纹采集方法及终端设备、存储介质
WO2021129571A1 (zh) 拍摄控制方法及电子设备
CN109542325B (zh) 双面屏触控方法、双面屏终端、可读存储介质
CN104573437B (zh) 信息认证方法、装置和终端
CN110944114B (zh) 拍照方法及电子设备
CN109814799A (zh) 屏幕响应控制方法及终端设备
WO2021204101A1 (zh) 显示方法及电子设备

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: 14823148

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: 14823148

Country of ref document: EP

Kind code of ref document: A1