WO2019052329A1 - Facial recognition method and related product - Google Patents

Facial recognition method and related product Download PDF

Info

Publication number
WO2019052329A1
WO2019052329A1 PCT/CN2018/102278 CN2018102278W WO2019052329A1 WO 2019052329 A1 WO2019052329 A1 WO 2019052329A1 CN 2018102278 W CN2018102278 W CN 2018102278W WO 2019052329 A1 WO2019052329 A1 WO 2019052329A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
face
display parameter
screen
face image
Prior art date
Application number
PCT/CN2018/102278
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 WO2019052329A1 publication Critical patent/WO2019052329A1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a face recognition method and related products.
  • face unlocking is increasingly favored by electronic device generators. Since face unlocking does not require the user to touch the electronic device, face image acquisition can be realized. Therefore, face image collection is very convenient, face image The collection is the key to unlocking the face. The quality of the face image directly determines the success or failure of the face unlocking. Therefore, how to improve the collection efficiency of the face image needs to be solved.
  • the embodiment of the present application provides a face recognition method and related products, so as to improve face recognition efficiency.
  • an embodiment of the present application provides an electronic device, including an application processor (AP), and a facial recognition device connected to the AP, where
  • AP application processor
  • a facial recognition device connected to the AP
  • the facial recognition device is configured to acquire ambient light, and capture a face according to the ambient light to obtain a first facial image
  • the AP is configured to: if a color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter; and light the screen according to the target display parameter, to The face is filled with light;
  • the face recognition device is configured to perform shooting to obtain a second face image.
  • the embodiment of the present application provides a face recognition method, which is applied to an electronic device including an application processor AP and a face recognition device connected to the AP, and the method includes:
  • the facial recognition device acquires ambient light, and photographs a human face according to the ambient light to obtain a first facial image
  • the AP adjusts a display parameter of the screen to obtain a target display parameter when the color of the first face image is color cast to a specified color; and illuminates the screen according to the target display parameter to face the face Fill light
  • the face recognition device performs shooting to obtain a second face image.
  • an embodiment of the present application provides a method for recognizing a face, including:
  • the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
  • the screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  • the embodiment of the present application provides a face recognition device, including:
  • a first photographing unit configured to acquire ambient light, and photograph a human face according to the ambient light to obtain a first facial image
  • An adjusting unit configured to adjust a display parameter of the screen to obtain a target display parameter if the color of the first face image is color cast in a specified color
  • the second photographing unit is configured to illuminate the screen according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  • an embodiment of the present application provides an electronic device, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory, and configured to Executed by the AP, the program includes instructions for some or all of the steps as described in the third aspect.
  • the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium is used to store a computer program, wherein the computer program causes the computer to perform the third aspect of the embodiment of the present application. Instructions for some or all of the steps described in the section.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Apply some or all of the steps described in the third aspect of the embodiment.
  • the computer program product can be a software installation package.
  • the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light
  • the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved.
  • the quality improves the efficiency of face unlocking.
  • FIG. 1A is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
  • FIG. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1C is a schematic flowchart of a face recognition method disclosed in an embodiment of the present application.
  • FIG. 1D is another schematic flowchart of a face recognition method according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart diagram of another face recognition method disclosed in an embodiment of the present application.
  • FIG. 3 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 4A is a schematic structural diagram of a face recognition device according to an embodiment of the present application.
  • FIG. 4B is still another schematic structural diagram of the face recognition device described in FIG. 4A provided by the embodiment of the present application.
  • FIG. 4C is a schematic structural diagram of an adjusting unit of the face recognition device described in FIG. 4B according to an embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the electronic device involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (user Equipment, UE), mobile station (MS), terminal device, etc.
  • user Equipment user Equipment
  • MS mobile station
  • terminal device etc.
  • the devices mentioned above are collectively referred to as electronic devices.
  • the facial recognition device of the electronic device 1000 may include a front camera 21, and the front camera may be at least one of the following: an infrared camera, a dual camera, a visible light camera, etc., a dual camera It can be at least one of the following: an infrared camera + an optical camera, a dual-visible camera, etc., in the face recognition process, the face image can be collected by the face recognition device, and the front camera can have a zoom function, which can be based on different The focal length captures the same target, and multiple images are obtained.
  • the above target can be a human face.
  • FIG. 1B is a schematic structural diagram of an electronic device 100.
  • the electronic device 100 includes an application processor AP110 and a facial recognition device 130.
  • the AP 110 is connected to the facial recognition device 130 via a bus 150. .
  • the electronic device described based on FIG. 1A or FIG. 1B can be used to implement the following functions:
  • the facial recognition device 130 is configured to acquire ambient light, and capture a human face according to the ambient light to obtain a first facial image
  • the AP 110 is configured to: if a color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter; and light the screen according to the target display parameter, to The face is filled with light;
  • the face recognition device 130 is configured to perform shooting to obtain a second face image.
  • the AP 110 is further specifically configured to:
  • the target display parameter the AP 110 is specifically configured to:
  • the AP 110 is specifically configured to:
  • a display parameter corresponding to the spectrum difference map is determined as the target display parameter.
  • the AP 110 is specifically configured to:
  • the screen is illuminated according to the target wallpaper.
  • a face recognition method as described below may be performed, as follows:
  • the facial recognition device 130 acquires ambient light, and photographs a human face according to the ambient light to obtain a first facial image
  • the AP 110 adjusts display parameters of the screen when the color of the first face image is color cast to a specified color to obtain a target display parameter; and illuminates the screen according to the target display parameter to face the face Fill light
  • the face recognition device 130 performs photographing to obtain a second face image.
  • the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light
  • the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved.
  • the quality improves the efficiency of face unlocking.
  • FIG. 1C is a schematic flowchart of an embodiment of a face recognition method according to an embodiment of the present application.
  • the face recognition method described in this embodiment is applied to an electronic device including a face recognition device and an application processor AP.
  • the physical map and the structure diagram can be seen in FIG. 1A or FIG. 1B, which includes the following steps:
  • the facial recognition device can acquire these ambient lights, and fill the face based on the ambient light, and then, the face is photographed, and First face image. Due to the complexity of the light in the environment, it may cause color cast of the face image. Especially in complex environments, it is easy to cause color cast of face images, for example, in a KTV environment, a dark visual environment, or an exposure environment.
  • the specified color can be one of the following: red, green or blue, and so on. If the color of the first face image is color cast in the specified color, the display parameters of the screen can be adjusted to neutralize the color cast phenomenon, and then, the photographing is performed again, and the color cast phenomenon in the obtained face image is alleviated.
  • the color cast of the first face image described above may be understood as the color cast of the entire first face image in a specified color, or the color corresponding to the face region in the first face image is colored to a specified color. .
  • the display parameter of the screen may be at least one of the following: a color temperature of the screen, a brightness of the screen, a color of the screen, a resolution of the screen, and the like. For example, if the color of the first face image is color cast to a specified color, the color temperature and color of the screen can be adjusted.
  • adjusting display parameters of the screen may include the following steps:
  • the ambient light can be acquired by the facial recognition device, and the ambient light is analyzed to obtain a first color spectrum map.
  • the preset second color spectrum map may be a color spectrum map in the case of non-color cast, and further, a spectrum difference map between the second color spectrogram and the first color spectrogram may be determined, for example, the second color may be A difference operation is performed between the spectrogram and the first color spectrogram, or an absolute value operation is performed to obtain a spectrum difference map.
  • the electronic device can pre-store the correspondence between the spectrogram and the display parameter. Further, after the spectrum difference map is determined, the display parameter corresponding to the spectrum difference map can be determined according to the correspondence as the target display parameter.
  • the screen can be illuminated according to the target display parameter, and then the face is filled with light through the screen. At this time, the screen is combined with the ambient light to fill the face at the same time, and the face recognition device is used to shoot, and the second is obtained. Face image.
  • the illuminating the screen according to the target display parameter may include the following steps:
  • N wallpapers may be pre-stored, and each wallpaper corresponds to a set of display parameters, and N sets of display parameters are obtained, where N is an integer greater than 1.
  • a set of display parameters whose color temperature is closest to the target display parameter in the N sets of display parameters may be selected, and a wallpaper corresponding to the closest set of display parameters, that is, a target wallpaper, may be acquired. Light up the screen to display the target wallpaper.
  • a set of display parameters whose color is closest to the target display parameter in the N sets of display parameters may be selected, and a wallpaper corresponding to the closest set of display parameters, that is, a target wallpaper, is acquired. Light up the screen to display the target wallpaper.
  • determining a weight value of each display parameter in the N sets of display parameters and further, determining a display effect value corresponding to each set of display parameters, and obtaining N display effect values, and similarly determining each display parameter in the target display parameter.
  • the weight value obtains a first target display effect value corresponding to the target display parameter. Selecting a display effect value that is closest to the first target display effect value from the N display effect values, obtaining a second target display effect value, obtaining a corresponding wallpaper, and obtaining a target wallpaper.
  • FIG. 1D is another embodiment of the face recognition method described in FIG. 1C according to the embodiment of the present application, which is compared with the face recognition method described in FIG. 1C.
  • Can include steps:
  • the preset face template may be pre-stored before the foregoing step 101, and the face recognition device is used to collect the face image of the user, and the preset face template may be saved in the face template library.
  • the second face image is matched with the preset face template, and when the matching value between the face image and the preset face template is greater than the face recognition threshold, If the matching is successful, the following unlocking process is performed.
  • the matching value between the second face image and the preset face template is less than or equal to the face recognition threshold, the entire process of the face recognition may be ended, or the user may be prompted. Perform face recognition again.
  • feature extraction may be performed on the second face image and the preset face template respectively, and then the features obtained after the feature extraction are feature-matched.
  • the above feature extraction can be implemented by using an algorithm such as a Harris corner detection algorithm, a scale invariant feature transform (SIFT), a SUSAN corner detection algorithm, and the like, and details are not described herein.
  • the face image may be pre-processed, and the pre-processing may include, but is not limited to, image enhancement processing, binarization processing, smoothing processing, color image conversion into grayscale image, etc.
  • the face template may be the original face image, or a group
  • the feature set performs feature matching on the feature set of the face image and the feature set of the face template to obtain a matching result, and determines whether the matching is successful according to the matching result.
  • the next unlocking process may be performed, and the next unlocking process may include, but is not limited to, implementing unlocking to enter the homepage. Face, or, the specified page of an app, or, go to the next biometric step.
  • matching the second face image with the preset face template may include the following steps:
  • D1 performing multi-scale decomposition on the second human face image by using a multi-scale decomposition algorithm to obtain a first high-frequency component image of the second human face image, and performing feature extraction on the first high-frequency component image. Obtaining a first feature set;
  • the multi-scale decomposition algorithm may be used to perform multi-scale decomposition on the second face image to obtain a low-frequency component image and a plurality of high-frequency component images, and the first high-frequency component image may be one of a plurality of high-frequency component images.
  • the multi-scale decomposition algorithm described above may include, but is not limited to, wavelet transform, Laplace transform, contourlet transform (CT), non-subsampled contourlet transform (NSCT), shear wave transform. Etc.
  • multi-scale decomposition of the face image by contour wave transform can obtain a low-frequency component image and a plurality of high-frequency component images, and the size of each of the plurality of high-frequency component images
  • a low-frequency component image and a plurality of high-frequency component images can be obtained, and each of the plurality of high-frequency component images has the same size.
  • the multi-scale decomposition algorithm can be used to perform multi-scale decomposition on the preset face template to obtain a low-frequency component image and a plurality of high-frequency component images
  • the second high-frequency component image can be one of a plurality of high-frequency component images.
  • a first high-frequency component image corresponding to a position between the second high-frequency component, that is, a hierarchical position between the two is the same as a scale position, for example, the first high-frequency component image is located on the second layer, At the 3 scale, the second high frequency component image is also located on the 2nd and 3rd scales.
  • the first feature set and the second feature set are filtered to obtain a first stable feature set and a second stable feature set.
  • the screening process may be as follows.
  • the first feature set may include multiple feature points
  • the second feature set also includes a plurality of feature points, each feature point is a vector, which includes a size and a direction. Therefore, the modulus of each feature point can be calculated. If the mode is larger than a certain threshold, the feature point is retained, and thus, The feature points can be filtered.
  • the preset number thresholds can be set by the user or the system defaults.
  • the number of matching feature points between the first stable feature set and the second stable feature set can be understood as a matching value between the two.
  • the preset number threshold can be understood as the above first identification threshold.
  • the main consideration is to achieve matching of the fine features between the second face image and the preset face template, which can improve the accuracy of the face recognition.
  • the more detailed the feature the harder it is. Forgery, this enhances the security of face unlocking.
  • step 103 the following steps may be further included:
  • Image enhancement processing is performed on the second face image.
  • the image enhancement processing may include, but is not limited to, image denoising (eg, wavelet transform for image denoising), image restoration (eg, Wiener filtering), dark visual enhancement algorithm (eg, histogram equalization, grayscale pull) Stretching, etc.), after the image enhancement processing of the face image, the quality of the face image can be improved to some extent.
  • image denoising eg, wavelet transform for image denoising
  • image restoration eg, Wiener filtering
  • dark visual enhancement algorithm eg, histogram equalization, grayscale pull
  • the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light
  • the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved.
  • the quality improves the efficiency of face unlocking.
  • FIG. 2 a schematic flowchart of an embodiment of a face recognition method according to an embodiment of the present application is provided.
  • the face recognition method described in this embodiment is applied to an electronic device including a face recognition device and an application processor AP.
  • the physical map and the structure diagram can be seen in FIG. 1A or FIG. 1B, which includes the following steps:
  • the performing spectrum analysis on the first face image may include: performing spectrum analysis on the entire image of the first face image; or performing spectrum analysis on the face region in the first face image. In this way, the color component of the first face image can be obtained.
  • the color component can see whether the image is color cast to a certain extent.
  • the above-described preset color component may be stored in advance in an electronic device, which is a color component in the case of non-color cast.
  • the color component of the first face image can be compared with the preset color component to obtain a color deviation degree. Since the color component can be expressed by the ratio, the color deviation can be easily calculated.
  • the color deviation degree is in a preset range, confirm that the color of the first face image is color cast in a specified color, adjust a display parameter of the screen, and obtain a target display parameter.
  • the preset range may be set by the system default, or the user may set the user, and further, when the color deviation degree is in the preset range, confirm that the color of the first face image is color cast in the specified color, and further, adjust the display parameter of the screen. , get the target display parameters.
  • adjusting the display parameters of the screen and the target display parameters may be implemented as follows:
  • Each of the degrees of deviation corresponds to a display parameter of a screen, which can be obtained in advance by experiments. Further, before the implementation of the embodiment of the present application, a mapping relationship between the preset degree of deviation and the display parameter of the screen can be obtained. Further, according to the mapping relationship, the target display parameter corresponding to the color deviation degree in the above step 203 is determined, so that different display parameters of the screen can be adjusted in different color cast situations to specifically target the face through the screen. Fill light to improve the collection efficiency of face images.
  • the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light
  • the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved.
  • the quality improves the efficiency of face unlocking.
  • FIG. 3 is an electronic device according to an embodiment of the present application, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory, And configured to be executed by the AP, the program comprising instructions for performing the following steps:
  • the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
  • the screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  • the program further includes instructions for performing the following steps:
  • the program includes instructions for performing the following steps:
  • the program includes instructions for performing the following steps:
  • a display parameter corresponding to the spectrum difference map is determined as the target display parameter.
  • the program includes instructions for performing the following steps:
  • the screen is illuminated according to the target wallpaper.
  • FIG. 4A is a schematic structural diagram of a face recognition device according to the embodiment.
  • the face recognition device is applied to an electronic device, and the face recognition device includes a first imaging unit 401, an adjustment unit 402, and a second imaging unit 403, where
  • the first photographing unit 401 is configured to acquire ambient light, and photograph the human face according to the ambient light to obtain a first human face image;
  • the adjusting unit 402 is configured to adjust a display parameter of the screen to obtain a target display parameter if the color of the first face image is color cast in a specified color;
  • the second photographing unit 403 is configured to illuminate the screen according to the target display parameter to fill the human face and perform photographing to obtain a second human face image.
  • FIG. 4B is a modified structure of the face recognition device described in FIG. 4A, and the device may further include: an analysis unit 404 and a comparison unit 405, as follows:
  • the analyzing unit 404 is configured to perform spectrum analysis on the first face image to obtain a color component of the first face image
  • the comparison unit 405 is configured to compare the color component with a preset color component to obtain a color deviation degree, and confirm the color deviation of the first face image when the color deviation degree is in a preset range Colors the specified color.
  • the adjusting unit 402 adjusts display parameters of the screen, and the specific implementation manner of the target display parameter is:
  • FIG. 4C is a specific detailed structure of the adjusting unit 402 of the face recognition device described in FIG. 4A, and the adjusting unit 402 may include: an obtaining module 4021 and a determining module 4022, as follows:
  • the acquiring module 4021 is configured to acquire a first color spectrum map of the ambient light, and acquire a preset second color spectrum map;
  • a determining module 4022 configured to determine a spectrum difference map between the second color spectrogram and the first color spectrogram; and determine a display parameter corresponding to the spectrum difference map as the target display parameter.
  • the specific implementation manner that the second shooting unit 402 illuminates the screen according to the target display parameter is:
  • the screen is illuminated according to the target wallpaper.
  • the face recognition device described in the embodiment of the present application can acquire ambient light, and capture a face according to the ambient light to obtain a first face image, if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light
  • the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved.
  • the quality improves the efficiency of face unlocking.
  • the embodiment of the present application further provides another electronic device. As shown in FIG. 5, for the convenience of description, only the parts related to the embodiment of the present application are shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present application. section.
  • the electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), an in-vehicle computer, and the like, and the electronic device is used as a mobile phone as an example:
  • FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, an application processor AP980, and a power supply. 990 and other components.
  • RF radio frequency
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 may include a touch display screen 933, a face recognition device 931, and other input devices 932.
  • the specific structural composition of the face recognition device 931 can be referred to the above description, and will not be described here.
  • the input unit 930 can also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of physical buttons, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the AP 980 is configured to perform the following steps:
  • the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
  • the screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  • the AP 980 is the control center of the handset, which utilizes various interfaces and lines to connect various portions of the entire handset, and executes the handset by running or executing software programs and/or modules stored in the memory 920, as well as invoking data stored in the memory 920. A variety of functions and processing data to monitor the phone as a whole.
  • the AP 980 may include one or more processing units, where the processing unit may be an artificial intelligence chip or a quantum chip; preferably, the AP 980 may integrate an application processor and a modem processor, where the application processor mainly processes operations.
  • the system, user interface, application, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the AP 980.
  • memory 920 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.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • LNA low noise amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division) Multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, short messaging service (SMS), and the like.
  • 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
  • the handset may also include at least one type of sensor 950, 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 can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display when the mobile phone moves to the ear. And / or backlight.
  • the accelerometer 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.
  • the mobile phone can be used to identify the 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 mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the 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
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then the audio data is played by the AP 980, sent to the other mobile phone via the RF circuit 910, or the audio data is played to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the mobile phone also includes a power source 990 (such as a battery) that supplies power to various components.
  • a power source 990 such as a battery
  • the power source can be logically connected to the AP980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to execute any one of the face recognition methods described in the foregoing method embodiments. Some or all of the steps.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Part or all of the steps of any face recognition method.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software program module.
  • the integrated unit if implemented in the form of a software program module and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer device which may be a personal computer, server or network device, etc.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Collating Specific Patterns (AREA)

Abstract

Disclosed in embodiments of the present application are a facial recognition method and a related product. The method comprises: obtaining ambient light, and photographing a face according to the ambient light to obtain a first face image; if the color of the first face image deviates from a specified color, adjusting the display parameter of a screen to obtain a target display parameter; and according to the target display parameter, lighting the screen to supplement light to the face, and photographing the face to obtain a second face image. According to the embodiments of the present application, when the ambient light is used for capturing a face image, if a color deviation occurs, the display parameter of the screen can be adjusted, then the screen assists in supplementing light to the face, the deviation of the color of the captured face image can be reduced as much as possible, so as to improve the quality of the face image, thereby improving face unlocking efficiency.

Description

人脸识别方法及相关产品Face recognition method and related products
本申请要求2017年9月12日递交的发明名称为“人脸识别方法及相关产品”的申请号201710818693.9的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present application claims priority to the priority of the application Serial No. PCT Application No.
技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种人脸识别方法及相关产品。The present application relates to the field of electronic device technologies, and in particular, to a face recognition method and related products.
背景技术Background technique
随着电子设备(手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread use of electronic devices (mobile phones, tablets, etc.), electronic devices can support more and more applications, and their functions are becoming more and more powerful. Electronic devices are developing in a diversified and personalized way, becoming a user's life. Missing electronic supplies.
目前来看,人脸解锁越来越受到电子设备生成商的青睐,由于人脸解锁不需要用户接触到电子设备,便可以实现人脸图像采集,因此,人脸图像采集非常方便,人脸图像的采集作为人脸解锁的关键,人脸图像的好坏直接决定了人脸解锁的成败,因此,如何提升人脸图像的采集效率的问题亟待解决。At present, face unlocking is increasingly favored by electronic device generators. Since face unlocking does not require the user to touch the electronic device, face image acquisition can be realized. Therefore, face image collection is very convenient, face image The collection is the key to unlocking the face. The quality of the face image directly determines the success or failure of the face unlocking. Therefore, how to improve the collection efficiency of the face image needs to be solved.
发明内容Summary of the invention
本申请实施例提供了一种人脸识别方法及相关产品,以期提高人脸识别效率。The embodiment of the present application provides a face recognition method and related products, so as to improve face recognition efficiency.
第一方面,本申请实施例提供一种电子设备,包括应用处理器(application processor,AP),以及与所述AP连接的面部识别装置,其中,In a first aspect, an embodiment of the present application provides an electronic device, including an application processor (AP), and a facial recognition device connected to the AP, where
所述面部识别装置,用于获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device is configured to acquire ambient light, and capture a face according to the ambient light to obtain a first facial image;
所述AP,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP is configured to: if a color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter; and light the screen according to the target display parameter, to The face is filled with light;
所述面部识别装置,用于进行拍摄,得到第二人脸图像。The face recognition device is configured to perform shooting to obtain a second face image.
第二方面,本申请实施例提供了一种人脸识别方法,应用于包括应用处理器AP,以及与所述AP连接的面部识别装置的电子设备,所述方法包括:In a second aspect, the embodiment of the present application provides a face recognition method, which is applied to an electronic device including an application processor AP and a face recognition device connected to the AP, and the method includes:
所述面部识别装置获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device acquires ambient light, and photographs a human face according to the ambient light to obtain a first facial image;
所述AP在所述第一人脸图像的颜色偏色于指定颜色时,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP adjusts a display parameter of the screen to obtain a target display parameter when the color of the first face image is color cast to a specified color; and illuminates the screen according to the target display parameter to face the face Fill light
所述面部识别装置进行拍摄,得到第二人脸图像。The face recognition device performs shooting to obtain a second face image.
第三方面,本申请实施例提供了一种人脸识别方法,包括:In a third aspect, an embodiment of the present application provides a method for recognizing a face, including:
获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;Obtaining ambient light, and capturing a face according to the ambient light to obtain a first face image;
若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;If the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
第四方面,本申请实施例提供了一种人脸识别装置,包括:In a fourth aspect, the embodiment of the present application provides a face recognition device, including:
第一拍摄单元,用于获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;a first photographing unit, configured to acquire ambient light, and photograph a human face according to the ambient light to obtain a first facial image;
调整单元,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;An adjusting unit, configured to adjust a display parameter of the screen to obtain a target display parameter if the color of the first face image is color cast in a specified color;
第二拍摄单元,用于根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The second photographing unit is configured to illuminate the screen according to the target display parameter to fill the face and perform shooting to obtain a second face image.
第五方面,本申请实施例提供了一种电子设备,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于如第三方面中所描述的部分或全部步骤的指令。In a fifth aspect, an embodiment of the present application provides an electronic device, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory, and configured to Executed by the AP, the program includes instructions for some or all of the steps as described in the third aspect.
第六方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第三方面中所描述的部分或全部步骤的指令。In a sixth aspect, the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium is used to store a computer program, wherein the computer program causes the computer to perform the third aspect of the embodiment of the present application. Instructions for some or all of the steps described in the section.
第七方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第三方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a seventh aspect, an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Apply some or all of the steps described in the third aspect of the embodiment. The computer program product can be a software installation package.
实施本申请实施例,具有如下有益效果:The implementation of the embodiment of the present application has the following beneficial effects:
可以看出,本申请实施例中所描述的人脸识别方法,可获取环境光,根据环境光对人脸进行拍摄,得到第一人脸图像,若第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数,根据目标显示参数点亮屏幕,以对人脸进行补光,并进行拍摄,得到第二人脸图像,从而,可以在利用环境光对人脸图像进行拍摄时,若出现偏色现象,可以调整屏幕的显示参数,进而,通过屏幕辅助对人脸进行补光,拍摄后的人脸图像可以尽可能少地存在偏色,提升了人脸图像的质量,进而,提升了人脸解锁效率。It can be seen that the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light When the image is shot, if the color cast phenomenon occurs, the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved. The quality, in turn, improves the efficiency of face unlocking.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1A是本申请实施例提供的一种示例电子设备的架构示意图;1A is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application;
图1B是本申请实施例提供的一种电子设备的结构示意图;1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图1C是本申请实施例公开的一种人脸识别方法的流程示意图;1C is a schematic flowchart of a face recognition method disclosed in an embodiment of the present application;
图1D是本申请实施例公开的一种人脸识别方法的另一流程示意图;FIG. 1D is another schematic flowchart of a face recognition method according to an embodiment of the present application; FIG.
图2是本申请实施例公开的另一种人脸识别方法的流程示意图;2 is a schematic flowchart diagram of another face recognition method disclosed in an embodiment of the present application;
图3是本申请实施例提供的一种电子设备的另一结构示意图;3 is another schematic structural diagram of an electronic device according to an embodiment of the present application;
图4A是本申请实施例提供的一种人脸识别装置的结构示意图;4A is a schematic structural diagram of a face recognition device according to an embodiment of the present application;
图4B是本申请实施例提供的图4A所描述的人脸识别装置的又一结构示意图;FIG. 4B is still another schematic structural diagram of the face recognition device described in FIG. 4A provided by the embodiment of the present application; FIG.
图4C是本申请实施例提供的图4B所描述的人脸识别装置的调整单元的结构示意图;4C is a schematic structural diagram of an adjusting unit of the face recognition device described in FIG. 4B according to an embodiment of the present application;
图5是本申请实施例公开的另一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。The electronic device involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (user Equipment, UE), mobile station (MS), terminal device, etc. For convenience of description, the devices mentioned above are collectively referred to as electronic devices.
下面对本申请实施例进行详细介绍。如图1A所示的一种示例电子设备1000,该电子设备1000的面部识别装置可以包括前置摄像头21,前置摄像头可为以下至少一种:红外摄像头、双摄像头、可见光摄像头等,双摄像头可为以下至少一种:红外摄像头+可将光摄像头、双可见光摄像头等,在人脸识别过程中,可以通过面部识别装置采集人脸图像,上述前置摄像头可以具备变焦功能,可以基于不同的焦距对同一目标进行拍摄,得到多个图像,上述目标可以为人脸。The embodiments of the present application are described in detail below. As shown in FIG. 1A, an example of the electronic device 1000, the facial recognition device of the electronic device 1000 may include a front camera 21, and the front camera may be at least one of the following: an infrared camera, a dual camera, a visible light camera, etc., a dual camera It can be at least one of the following: an infrared camera + an optical camera, a dual-visible camera, etc., in the face recognition process, the face image can be collected by the face recognition device, and the front camera can have a zoom function, which can be based on different The focal length captures the same target, and multiple images are obtained. The above target can be a human face.
请参阅图1B,图1B是所示的一种电子设备100的结构示意图,所述电子设备100包括:应用处理器AP110、面部识别装置130,其中,所述AP110通过总线150连接面部识别装置130。Referring to FIG. 1B , FIG. 1B is a schematic structural diagram of an electronic device 100. The electronic device 100 includes an application processor AP110 and a facial recognition device 130. The AP 110 is connected to the facial recognition device 130 via a bus 150. .
基于图1A或图1B所描述的电子设备,可以用于实现如下功能:The electronic device described based on FIG. 1A or FIG. 1B can be used to implement the following functions:
所述面部识别装置130,用于获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device 130 is configured to acquire ambient light, and capture a human face according to the ambient light to obtain a first facial image;
所述AP110,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP 110 is configured to: if a color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter; and light the screen according to the target display parameter, to The face is filled with light;
所述面部识别装置130,用于进行拍摄,得到第二人脸图像。The face recognition device 130 is configured to perform shooting to obtain a second face image.
可选地,所述AP110还具体用于:Optionally, the AP 110 is further specifically configured to:
对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;Performing spectrum analysis on the first face image to obtain a color component of the first face image;
将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度;Comparing the color component with a preset color component to obtain a color deviation degree;
在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。When the color deviation degree is within a preset range, it is confirmed that the color of the first face image is color cast to the specified color.
可选地,在所述调整屏幕的显示参数,目标显示参数方面,所述AP110具体用于:Optionally, in the aspect of the display parameter of the adjustment screen, the target display parameter, the AP 110 is specifically configured to:
按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
可选地,在所述调整屏幕的显示参数方面,所述AP110具体用于:Optionally, in the aspect of the display parameter of the adjustment screen, the AP 110 is specifically configured to:
获取所述环境光的第一颜色频谱图;Obtaining a first color spectrum map of the ambient light;
获取预设的第二颜色频谱图;Obtaining a preset second color spectrum map;
确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;Determining a spectrum difference map between the second color spectrogram and the first color spectrogram;
确定与所述频谱差异图对应的显示参数作为所述目标显示参数。A display parameter corresponding to the spectrum difference map is determined as the target display parameter.
可选地,在所述根据所述目标显示参数点亮所述屏幕方面,所述AP110具体用于:Optionally, in the lighting the screen according to the target display parameter, the AP 110 is specifically configured to:
获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
进一步可选地,基于上述图1A或图1B所描述的电子设备,可以执行如下所描述的一种人脸识别方法,具体如下:Further optionally, based on the electronic device described above with reference to FIG. 1A or FIG. 1B, a face recognition method as described below may be performed, as follows:
所述面部识别装置130获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device 130 acquires ambient light, and photographs a human face according to the ambient light to obtain a first facial image;
所述AP110在所述第一人脸图像的颜色偏色于指定颜色时,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP 110 adjusts display parameters of the screen when the color of the first face image is color cast to a specified color to obtain a target display parameter; and illuminates the screen according to the target display parameter to face the face Fill light
所述面部识别装置130进行拍摄,得到第二人脸图像。The face recognition device 130 performs photographing to obtain a second face image.
可以看出,本申请实施例中所描述的人脸识别方法,可获取环境光,根据环境光对人脸进行拍摄,得到第一人脸图像,若第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数,根据目标显示参数点亮屏幕,以对人脸进行补光,并进行拍摄,得到第二人脸图像,从而,可以在利用环境光对人脸图像进行拍摄时,若出现偏色现象,可以调整屏幕的显示参数,进而,通过屏幕辅助对人脸进行补光,拍摄后的人脸图像可以尽可能少地存在偏色,提升了人脸图像的质量,进而,提升了人脸解锁效率。It can be seen that the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light When the image is shot, if the color cast phenomenon occurs, the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved. The quality, in turn, improves the efficiency of face unlocking.
请参阅图1C,为本申请实施例提供的一种人脸识别方法的实施例流程示意图。本实施例中所描述的人脸识别方法,应用于包括面部识别装置以及应用处理器AP的电子设备,其实物图以及结构图可参见图1A或图1B,其包括以下步骤:1C is a schematic flowchart of an embodiment of a face recognition method according to an embodiment of the present application. The face recognition method described in this embodiment is applied to an electronic device including a face recognition device and an application processor AP. The physical map and the structure diagram can be seen in FIG. 1A or FIG. 1B, which includes the following steps:
101、获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像。101. Acquire ambient light, and photograph a face according to the ambient light to obtain a first face image.
其中,由于环境中存在着不同的发光物体,以及不同的反射光线,因而,面部识别装置可以获取这些环境光,并基于这些环境光对人脸进行补光,进而,对人脸进行拍摄,得到第一人脸图像。由于环境中光线的复杂性,因而,会导致人脸图像有可能会出现偏色现象。尤其在复杂环境下,容易导致人脸图像偏色,例如,在KTV环境,暗视觉环境,或者,曝光环境。Among them, because there are different illuminating objects in the environment, and different reflected light, the facial recognition device can acquire these ambient lights, and fill the face based on the ambient light, and then, the face is photographed, and First face image. Due to the complexity of the light in the environment, it may cause color cast of the face image. Especially in complex environments, it is easy to cause color cast of face images, for example, in a KTV environment, a dark visual environment, or an exposure environment.
102、若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数。102. If the color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter.
其中,指定颜色可为以下一种:红色、绿色或者蓝色等等。若第一人脸图像的颜色偏色于指定颜色,可以调整屏幕的显示参数,以对偏色现象进行中和,进而,再次进行拍摄,得到的人脸图像中的偏色现象得以缓解。上述第一人脸图像的颜色偏色于指定颜色可以理解为整个第一人脸图像的颜色偏色于指定颜色,或者第一人脸图像中的人脸区域所对应的颜色偏色于指定颜色。Among them, the specified color can be one of the following: red, green or blue, and so on. If the color of the first face image is color cast in the specified color, the display parameters of the screen can be adjusted to neutralize the color cast phenomenon, and then, the photographing is performed again, and the color cast phenomenon in the obtained face image is alleviated. The color cast of the first face image described above may be understood as the color cast of the entire first face image in a specified color, or the color corresponding to the face region in the first face image is colored to a specified color. .
可选地,屏幕的显示参数可为以下至少一种:屏幕的色温、屏幕的亮度、屏幕的颜色、屏幕的分辨率等等。例如,在第一人脸图像的颜色偏色于指定颜色,可以调整屏幕的色温和颜色。Optionally, the display parameter of the screen may be at least one of the following: a color temperature of the screen, a brightness of the screen, a color of the screen, a resolution of the screen, and the like. For example, if the color of the first face image is color cast to a specified color, the color temperature and color of the screen can be adjusted.
可选地,上述步骤102中,调整屏幕的显示参数,可包括如下步骤:Optionally, in the foregoing step 102, adjusting display parameters of the screen may include the following steps:
21、获取所述环境光的第一颜色频谱图;21. Obtaining a first color spectrum diagram of the ambient light;
22、获取预设的第二颜色频谱图;22. Obtain a preset second color spectrum map;
23、确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;23. Determine a spectrum difference diagram between the second color spectrum map and the first color spectrum map;
24、确定与所述频谱差异图对应的显示参数作为所述目标显示参数。24. Determine a display parameter corresponding to the spectrum difference map as the target display parameter.
其中,可以通过面部识别装置获取环境光,并对该环境光进行分析,得到第一颜色频谱图。上述预设的第二颜色频谱图可为非偏色情况下的颜色频谱图,进而,可以确定第二颜色频谱图与第一颜色频谱图之间的频谱差异图,例如,可以将第二颜色频谱图与第一颜色频谱图之间进行作差运算,或者,进行绝对值运算,得到频谱差异图。电子设备中可预先存频谱图与显示参数之间的对应关系,进而,在确定了频谱差异图之后,可以根据该对应关系确定与频谱差异图对应的显示参数,作为目标显示参数。Wherein, the ambient light can be acquired by the facial recognition device, and the ambient light is analyzed to obtain a first color spectrum map. The preset second color spectrum map may be a color spectrum map in the case of non-color cast, and further, a spectrum difference map between the second color spectrogram and the first color spectrogram may be determined, for example, the second color may be A difference operation is performed between the spectrogram and the first color spectrogram, or an absolute value operation is performed to obtain a spectrum difference map. The electronic device can pre-store the correspondence between the spectrogram and the display parameter. Further, after the spectrum difference map is determined, the display parameter corresponding to the spectrum difference map can be determined according to the correspondence as the target display parameter.
103、根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。103. Light the screen according to the target display parameter, fill the face with a light, and perform shooting to obtain a second face image.
其中,可以根据目标显示参数点亮屏幕,进而,通过屏幕对人脸加以补光,这时候,相当于屏幕与环境光同时给人脸进行补光,并通过面部识别装置进行拍摄,得到第二人脸图像。Wherein, the screen can be illuminated according to the target display parameter, and then the face is filled with light through the screen. At this time, the screen is combined with the ambient light to fill the face at the same time, and the face recognition device is used to shoot, and the second is obtained. Face image.
可选地,上述步骤103中,根据所述目标显示参数点亮所述屏幕,可包括如下步骤:Optionally, in the foregoing step 103, the illuminating the screen according to the target display parameter may include the following steps:
31、获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;31. Obtain display parameters of pre-stored N wallpapers, and obtain N sets of display parameters, where N is an integer greater than 1.
32、从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;32. Select a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and obtain a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper.
33、根据所述目标壁纸点亮所述屏幕。33. Lighting the screen according to the target wallpaper.
其中,电子设备中可以预先存储N张壁纸,每一壁纸对应一组显示参数,得到N组显示参数,N为大于1的整数。In the electronic device, N wallpapers may be pre-stored, and each wallpaper corresponds to a set of display parameters, and N sets of display parameters are obtained, where N is an integer greater than 1.
例如,在执行上述步骤32的过程中,可以选取N组显示参数中色温与目标显示参数最接近的一组显示参数,并获取与该最接近的一组显示参数对应的壁纸,即目标壁纸,点亮屏幕,显示该目标壁纸。For example, in the process of performing step 32 above, a set of display parameters whose color temperature is closest to the target display parameter in the N sets of display parameters may be selected, and a wallpaper corresponding to the closest set of display parameters, that is, a target wallpaper, may be acquired. Light up the screen to display the target wallpaper.
例如,在执行上述步骤32的过程中,可以选取N组显示参数中颜色与目标显示参数最接近的一组显示参数,并获取与该最接近的一组显示参数对应的壁纸,即目标壁纸,点亮屏幕,显示该目标壁纸。For example, in the process of performing step 32 above, a set of display parameters whose color is closest to the target display parameter in the N sets of display parameters may be selected, and a wallpaper corresponding to the closest set of display parameters, that is, a target wallpaper, is acquired. Light up the screen to display the target wallpaper.
又例如,确定N组显示参数中每一显示参数的权重值,进而,确定每组显示参数对应的显示效果值,得到N个显示效果值,同理,确定目标显示参数中每一显示参数的权重值,得到该目标显示参数对应的第一目标显示效果值。从N个显示效果值中选取与该第一目标 显示效果值最接近的一个显示效果值,得到第二目标显示效果值,获取其对应的壁纸,得到目标壁纸。For example, determining a weight value of each display parameter in the N sets of display parameters, and further, determining a display effect value corresponding to each set of display parameters, and obtaining N display effect values, and similarly determining each display parameter in the target display parameter. The weight value obtains a first target display effect value corresponding to the target display parameter. Selecting a display effect value that is closest to the first target display effect value from the N display effect values, obtaining a second target display effect value, obtaining a corresponding wallpaper, and obtaining a target wallpaper.
可选地,如图1D所示,图1D为本申请实施例提供的基于图1C所描述的人脸识别方法的另一实施例,其与图1C所描述的人脸识别方法相比较,还可以包含步骤:Optionally, as shown in FIG. 1D, FIG. 1D is another embodiment of the face recognition method described in FIG. 1C according to the embodiment of the present application, which is compared with the face recognition method described in FIG. 1C. Can include steps:
104、将所述第二人脸图像与预设人脸模板进行匹配,在所述第二人脸图像与所述预设人脸模板匹配成功时,执行解锁操作。104. Match the second face image with a preset face template, and perform an unlocking operation when the second face image and the preset face template are successfully matched.
其中,预设人脸模板可执行上述步骤101之前预先存储,通过面部识别装置采集用户的人脸图像实现,预设人脸模板可保存在人脸模板库中。The preset face template may be pre-stored before the foregoing step 101, and the face recognition device is used to collect the face image of the user, and the preset face template may be saved in the face template library.
可选地,在执行上述步骤104的过程中,将第二人脸图像与预设人脸模板进行匹配,在人脸图像与预设人脸模板之间的匹配值大于人脸识别阈值时,则匹配成功,进而,执行以下解锁流程,在第二人脸图像与预设人脸模板之间的匹配值小于或等于人脸识别阈值时,可结束人脸识别的整个流程,或者,提示用户重新进行人脸识别。Optionally, in the process of performing the foregoing step 104, the second face image is matched with the preset face template, and when the matching value between the face image and the preset face template is greater than the face recognition threshold, If the matching is successful, the following unlocking process is performed. When the matching value between the second face image and the preset face template is less than or equal to the face recognition threshold, the entire process of the face recognition may be ended, or the user may be prompted. Perform face recognition again.
具体地,在执行上述步骤104的过程中,可分别对第二人脸图像以及预设人脸模板进行特征提取,再将特征提取后得到的特征进行特征匹配。上述特征提取可采用如下算法实现:Harris角点检测算法、尺度不变特征变换(scale invariant feature transform,SIFT)、SUSAN角点检测算法等等,在此不再赘述。Specifically, in the process of performing the foregoing step 104, feature extraction may be performed on the second face image and the preset face template respectively, and then the features obtained after the feature extraction are feature-matched. The above feature extraction can be implemented by using an algorithm such as a Harris corner detection algorithm, a scale invariant feature transform (SIFT), a SUSAN corner detection algorithm, and the like, and details are not described herein.
在执行步骤104过程中,可先对人脸图像进行预处理,预处理可包括但不仅限于:图像增强处理、二值化处理、平滑处理、彩色图像转化为灰度图像等等,再对预处理之后的第二人脸图像进行特征提取,得到人脸图像的特征集,再从人脸模板库中选择至少一个人脸模板,该人脸模板可以是原始人脸图像,或者,是一组特征集合,进而,将人脸图像的特征集合与人脸模板的特征集合进行特征匹配,得到匹配结果,依据该匹配结果判断是否匹配成功。During the execution of step 104, the face image may be pre-processed, and the pre-processing may include, but is not limited to, image enhancement processing, binarization processing, smoothing processing, color image conversion into grayscale image, etc. Performing feature extraction on the processed second face image to obtain a feature set of the face image, and then selecting at least one face template from the face template library, the face template may be the original face image, or a group The feature set, in turn, performs feature matching on the feature set of the face image and the feature set of the face template to obtain a matching result, and determines whether the matching is successful according to the matching result.
其中,在第二人脸图像与预设人脸模板之间的匹配值大于人脸识别阈值时,则可执行下一解锁流程,下一解锁流程可包括但不仅限于:实现解锁,以进入主页面,或者,某个应用的指定页面,或者,进入下一步生物识别步骤。Wherein, when the matching value between the second face image and the preset face template is greater than the face recognition threshold, the next unlocking process may be performed, and the next unlocking process may include, but is not limited to, implementing unlocking to enter the homepage. Face, or, the specified page of an app, or, go to the next biometric step.
可选地,上述步骤104中,将所述第二人脸图像与预设人脸模板进行匹配,可包括如下步骤:Optionally, in the foregoing step 104, matching the second face image with the preset face template may include the following steps:
D1、采用多尺度分解算法对所述第二人脸图像进行多尺度分解,得到所述第二人脸图像的第一高频分量图像,并对所述第一高频分量图像进行特征提取,得到第一特征集;D1, performing multi-scale decomposition on the second human face image by using a multi-scale decomposition algorithm to obtain a first high-frequency component image of the second human face image, and performing feature extraction on the first high-frequency component image. Obtaining a first feature set;
D2、采用所述多尺度分解算法对所述预设人脸模板进行多尺度分解,得到所述预设人脸模板的第二高频分量图像,并对所述第二高频分量图像进行特征提取,得到第二特征集;D2, performing multi-scale decomposition on the preset face template by using the multi-scale decomposition algorithm, obtaining a second high-frequency component image of the preset face template, and performing features on the second high-frequency component image Extracting to obtain a second feature set;
D3、对所述第一特征集和所述第二特征集进行筛选,得到第一稳定特征集和所述第二稳定特征集;D3. Perform screening on the first feature set and the second feature set to obtain a first stable feature set and the second stable feature set.
D4、将所述第一稳定特征集与所述第二稳定特征集进行特征匹配,并在所述第一稳定特征集与所述第二稳定特征集之间匹配的特征点数目大于预设数量阈值时,确认所述第二人脸图像与预设人脸模板匹配成功。D4. Perform feature matching on the first stable feature set and the second stable feature set, and match the number of feature points between the first stable feature set and the second stable feature set to be greater than a preset number. At the threshold, it is confirmed that the second face image is successfully matched with the preset face template.
其中,可采用多尺度分解算法对第二人脸图像进行多尺度分解,得到低频分量图像和多个高频分量图像,上述第一高频分量图像可为多个高频分量图像中的一个,上述多尺度分解算法可包括但不仅限于:小波变换、拉普拉斯变换、轮廓波变换(contourlet transform,CT)、非下采样轮廓波变换(non-subsampled contourlet transform,NSCT)、剪切波变换等等,以轮廓波为例,采用轮廓波变换对人脸图像进行多尺度分解,可以得到一个低频分量图像和多个高频分量图像,并且该多个高频分量图像中每一图像的尺寸大小不一,以NSCT为例,采用NSCT对人脸图像进行多尺度分解,可以得到一个低频分量图像和多个高频分量图像,并且该多个高频分量图像中每一图像的尺寸大小一样。对于高频分量图像而言,其包含了较多原始图像的细节信息。同理,可采用多尺度分解算法对预设人脸模板进行多尺度分解,得到低频分量图像和多个高频分量图像,上述第二高频分量图像可为多个高频分量图像中的一个,上述第一高频分量图像与上述第二高频分量之间的位置相对应,即其两者之间的层次位置与尺度位置相同,例如,第一高频分量图像位于第2层、第3尺度,则第二高频分量图像也位于第2层、第3尺度。上述步骤D3中,对第一特征集和第二特征集进行筛选,得到第一稳定特征集和第二稳定特征集,筛选过程可采用如下方式,第一特征集中可包含多个特征点,第二特征集中也包含多个特征点,每个特征点为一个矢量,其包含大小和方向,因而,可计算每一特征点的模,若模大于某一阈值,则保留该特征点,如此,可实现对特征点进行筛选,上述预设数量阈值可由用户自行设置或者系统默认,第一稳定特征集与第二稳定特征集之间匹配的特征点数目可理解为两者之间的匹配值,预设数量阈值可理解为上述第一识别阈值。上述步骤D1-D4,主要考虑实现对第二人脸图像与预设人脸模板之间的精细特征进行匹配,可提高人脸识别的精度,往往情况下,越是细节性的特征,越难伪造,如此,提升人脸解锁的安全性。Wherein, the multi-scale decomposition algorithm may be used to perform multi-scale decomposition on the second face image to obtain a low-frequency component image and a plurality of high-frequency component images, and the first high-frequency component image may be one of a plurality of high-frequency component images. The multi-scale decomposition algorithm described above may include, but is not limited to, wavelet transform, Laplace transform, contourlet transform (CT), non-subsampled contourlet transform (NSCT), shear wave transform. Etc. Taking the contour wave as an example, multi-scale decomposition of the face image by contour wave transform can obtain a low-frequency component image and a plurality of high-frequency component images, and the size of each of the plurality of high-frequency component images Different sizes, taking NSCT as an example, using NSCT to perform multi-scale decomposition of face images, a low-frequency component image and a plurality of high-frequency component images can be obtained, and each of the plurality of high-frequency component images has the same size. . For high frequency component images, it contains more detailed information of the original image. Similarly, the multi-scale decomposition algorithm can be used to perform multi-scale decomposition on the preset face template to obtain a low-frequency component image and a plurality of high-frequency component images, and the second high-frequency component image can be one of a plurality of high-frequency component images. a first high-frequency component image corresponding to a position between the second high-frequency component, that is, a hierarchical position between the two is the same as a scale position, for example, the first high-frequency component image is located on the second layer, At the 3 scale, the second high frequency component image is also located on the 2nd and 3rd scales. In the foregoing step D3, the first feature set and the second feature set are filtered to obtain a first stable feature set and a second stable feature set. The screening process may be as follows. The first feature set may include multiple feature points, The second feature set also includes a plurality of feature points, each feature point is a vector, which includes a size and a direction. Therefore, the modulus of each feature point can be calculated. If the mode is larger than a certain threshold, the feature point is retained, and thus, The feature points can be filtered. The preset number thresholds can be set by the user or the system defaults. The number of matching feature points between the first stable feature set and the second stable feature set can be understood as a matching value between the two. The preset number threshold can be understood as the above first identification threshold. In the above steps D1-D4, the main consideration is to achieve matching of the fine features between the second face image and the preset face template, which can improve the accuracy of the face recognition. In general, the more detailed the feature, the harder it is. Forgery, this enhances the security of face unlocking.
可选地,在上述步骤103与步骤104之间,还可以包含如下步骤:Optionally, between the foregoing step 103 and step 104, the following steps may be further included:
对所述第二人脸图像进行图像增强处理。Image enhancement processing is performed on the second face image.
其中,图像增强处理可包括但不仅限于:图像去噪(例如,小波变换进行图像去噪)、图像复原(例如,维纳滤波)、暗视觉增强算法(例如,直方图均衡化、灰度拉伸等等),在对人脸图像进行图像增强处理之后,人脸图像的质量可在一定程度上得到提升。Wherein, the image enhancement processing may include, but is not limited to, image denoising (eg, wavelet transform for image denoising), image restoration (eg, Wiener filtering), dark visual enhancement algorithm (eg, histogram equalization, grayscale pull) Stretching, etc.), after the image enhancement processing of the face image, the quality of the face image can be improved to some extent.
可以看出,本申请实施例中所描述的人脸识别方法,可获取环境光,根据环境光对人脸进行拍摄,得到第一人脸图像,若第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数,根据目标显示参数点亮屏幕,以对人脸进行补光,并进行拍摄,得到第二人脸图像,从而,可以在利用环境光对人脸图像进行拍摄时,若出现偏色现 象,可以调整屏幕的显示参数,进而,通过屏幕辅助对人脸进行补光,拍摄后的人脸图像可以尽可能少地存在偏色,提升了人脸图像的质量,进而,提升了人脸解锁效率。It can be seen that the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light When the image is shot, if the color cast phenomenon occurs, the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved. The quality, in turn, improves the efficiency of face unlocking.
与上述一致地,请参阅图2,为本申请实施例提供的一种人脸识别方法的实施例流程示意图。本实施例中所描述的人脸识别方法,应用于包括面部识别装置以及应用处理器AP的电子设备,其实物图以及结构图可参见图1A或图1B,其包括以下步骤:With reference to FIG. 2, a schematic flowchart of an embodiment of a face recognition method according to an embodiment of the present application is provided. The face recognition method described in this embodiment is applied to an electronic device including a face recognition device and an application processor AP. The physical map and the structure diagram can be seen in FIG. 1A or FIG. 1B, which includes the following steps:
201、获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像。201. Acquire ambient light, and capture a face according to the ambient light to obtain a first face image.
202、对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分。202. Perform spectrum analysis on the first face image to obtain a color component of the first face image.
其中,上述步骤201中,对第一人脸图像进行频谱分析,可以包括:对第一人脸图像的整个图像进行频谱分析;或者,对第一人脸图像中的人脸区域进行频谱分析。通过该方式,可以得到第一人脸图像的颜色成分。The performing spectrum analysis on the first face image may include: performing spectrum analysis on the entire image of the first face image; or performing spectrum analysis on the face region in the first face image. In this way, the color component of the first face image can be obtained.
203、将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度。203. Compare the color component with a preset color component to obtain a color deviation degree.
其中,颜色成分在一定程度上可以看出图像是否偏色。上述预设颜色成分可以预先存储在电子设备中,其为非偏色情况下的颜色成分。可以将第一人脸图像的颜色成分与预设颜色成分进行比对,得到颜色偏离度。由于颜色成分可以用比值进行表示,进行可以方便地计算得到颜色偏离度。Among them, the color component can see whether the image is color cast to a certain extent. The above-described preset color component may be stored in advance in an electronic device, which is a color component in the case of non-color cast. The color component of the first face image can be compared with the preset color component to obtain a color deviation degree. Since the color component can be expressed by the ratio, the color deviation can be easily calculated.
204、在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数。204. When the color deviation degree is in a preset range, confirm that the color of the first face image is color cast in a specified color, adjust a display parameter of the screen, and obtain a target display parameter.
其中,上述预设范围可以由系统默认,或者,用户自行设置,进而,在颜色偏离度处于预设范围时,确认第一人脸图像的颜色偏色于指定颜色,进而,调整屏幕的显示参数,得到目标显示参数。Wherein, the preset range may be set by the system default, or the user may set the user, and further, when the color deviation degree is in the preset range, confirm that the color of the first face image is color cast in the specified color, and further, adjust the display parameter of the screen. , get the target display parameters.
可选地,上述步骤204中,调整屏幕的显示参数,目标显示参数,可按照如下方式实施:Optionally, in the above step 204, adjusting the display parameters of the screen and the target display parameters may be implemented as follows:
按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
其中,每一偏离度对应一屏幕的显示参数,这些可以通过实验预先得到,进而,可以在实施本申请实施例之前,得到预设的偏离度与所述屏幕的显示参数之间的映射关系,进而,根据该映射关系,确定上述步骤203中的颜色偏离度对应的目标显示参数,如此,可以在不同偏色情况下,调节屏幕不同的显示参数,以针对性地对通过屏幕对人脸进行补光,提升人脸图像的采集效率。Each of the degrees of deviation corresponds to a display parameter of a screen, which can be obtained in advance by experiments. Further, before the implementation of the embodiment of the present application, a mapping relationship between the preset degree of deviation and the display parameter of the screen can be obtained. Further, according to the mapping relationship, the target display parameter corresponding to the color deviation degree in the above step 203 is determined, so that different display parameters of the screen can be adjusted in different color cast situations to specifically target the face through the screen. Fill light to improve the collection efficiency of face images.
205、根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。205. Light the screen according to the target display parameter, fill the face with a light, and perform shooting to obtain a second face image.
其中,上述步骤201、步骤205的具体描述可参照图1C所描述的人脸识别方法的对应 步骤,在此不再赘述。For a detailed description of the foregoing steps 201 and 205, reference may be made to the corresponding steps of the face recognition method described in FIG. 1C, and details are not described herein again.
可以看出,本申请实施例中所描述的人脸识别方法,可获取环境光,根据环境光对人脸进行拍摄,得到第一人脸图像,若第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数,根据目标显示参数点亮屏幕,以对人脸进行补光,并进行拍摄,得到第二人脸图像,从而,可以在利用环境光对人脸图像进行拍摄时,若出现偏色现象,可以调整屏幕的显示参数,进而,通过屏幕辅助对人脸进行补光,拍摄后的人脸图像可以尽可能少地存在偏色,提升了人脸图像的质量,进而,提升了人脸解锁效率。It can be seen that the face recognition method described in the embodiment of the present application can obtain ambient light, and the face is photographed according to the ambient light to obtain the first face image, and if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light When the image is shot, if the color cast phenomenon occurs, the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved. The quality, in turn, improves the efficiency of face unlocking.
请参阅图3,图3是本申请实施例提供的一种电子设备,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于执行以下步骤的指令:Referring to FIG. 3, FIG. 3 is an electronic device according to an embodiment of the present application, including: an application processor AP and a memory; and one or more programs, where the one or more programs are stored in the memory, And configured to be executed by the AP, the program comprising instructions for performing the following steps:
获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;Obtaining ambient light, and capturing a face according to the ambient light to obtain a first face image;
若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;If the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program further includes instructions for performing the following steps:
对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;Performing spectrum analysis on the first face image to obtain a color component of the first face image;
将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度;Comparing the color component with a preset color component to obtain a color deviation degree;
在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。When the color deviation degree is within a preset range, it is confirmed that the color of the first face image is color cast to the specified color.
在一个可能的示例中,在所述调整屏幕的显示参数,目标显示参数方面,所述程序包括用于执行以下步骤的指令:In one possible example, in terms of the display parameters of the adjustment screen, the target display parameters, the program includes instructions for performing the following steps:
按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
在一个可能的示例中,在所述调整屏幕的显示参数方面,所述程序包括用于执行以下步骤的指令:In one possible example, in terms of the display parameters of the adjustment screen, the program includes instructions for performing the following steps:
获取所述环境光的第一颜色频谱图;Obtaining a first color spectrum map of the ambient light;
获取预设的第二颜色频谱图;Obtaining a preset second color spectrum map;
确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;Determining a spectrum difference map between the second color spectrogram and the first color spectrogram;
确定与所述频谱差异图对应的显示参数作为所述目标显示参数。A display parameter corresponding to the spectrum difference map is determined as the target display parameter.
在一个可能的示例中,在所述根据所述目标显示参数点亮所述屏幕方面,所述程序包括用于执行以下步骤的指令:In one possible example, in the illuminating the screen according to the target display parameter, the program includes instructions for performing the following steps:
获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
请参阅图4A,图4A是本实施例提供的一种人脸识别装置的结构示意图。该人脸识别装置应用于电子设备,人脸识别装置包括第一拍摄单元401、调整单元402和第二拍摄单元403,其中,Referring to FIG. 4A, FIG. 4A is a schematic structural diagram of a face recognition device according to the embodiment. The face recognition device is applied to an electronic device, and the face recognition device includes a first imaging unit 401, an adjustment unit 402, and a second imaging unit 403, where
第一拍摄单元401,用于获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;The first photographing unit 401 is configured to acquire ambient light, and photograph the human face according to the ambient light to obtain a first human face image;
调整单元402,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;The adjusting unit 402 is configured to adjust a display parameter of the screen to obtain a target display parameter if the color of the first face image is color cast in a specified color;
第二拍摄单元403,用于根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The second photographing unit 403 is configured to illuminate the screen according to the target display parameter to fill the human face and perform photographing to obtain a second human face image.
可选地,如图4B,图4B为图4A所描述的人脸识别装置的变型结构,所述装置还可包括:分析单元404和比对单元405,具体如下:Optionally, as shown in FIG. 4B, FIG. 4B is a modified structure of the face recognition device described in FIG. 4A, and the device may further include: an analysis unit 404 and a comparison unit 405, as follows:
分析单元404,用于对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;The analyzing unit 404 is configured to perform spectrum analysis on the first face image to obtain a color component of the first face image;
比对单元405,用于将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度,且在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。The comparison unit 405 is configured to compare the color component with a preset color component to obtain a color deviation degree, and confirm the color deviation of the first face image when the color deviation degree is in a preset range Colors the specified color.
可选地,所述调整单元402调整屏幕的显示参数,目标显示参数的具体实现方式为:Optionally, the adjusting unit 402 adjusts display parameters of the screen, and the specific implementation manner of the target display parameter is:
按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
可选地,如图4C,图4C是图4A所描述的人脸识别装置的调整单元402的具体细节结构,所述调整单元402可包括:获取模块4021和确定模块4022,具体如下:Optionally, as shown in FIG. 4C, FIG. 4C is a specific detailed structure of the adjusting unit 402 of the face recognition device described in FIG. 4A, and the adjusting unit 402 may include: an obtaining module 4021 and a determining module 4022, as follows:
获取模块4021,用于获取所述环境光的第一颜色频谱图;以及获取预设的第二颜色频谱图;The acquiring module 4021 is configured to acquire a first color spectrum map of the ambient light, and acquire a preset second color spectrum map;
确定模块4022,用于确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;以及确定与所述频谱差异图对应的显示参数作为所述目标显示参数。a determining module 4022, configured to determine a spectrum difference map between the second color spectrogram and the first color spectrogram; and determine a display parameter corresponding to the spectrum difference map as the target display parameter.
可选地,上述第二拍摄单元402根据所述目标显示参数点亮所述屏幕的具体实现方式为:Optionally, the specific implementation manner that the second shooting unit 402 illuminates the screen according to the target display parameter is:
获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所 述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
可以看出,本申请实施例中所描述的人脸识别装置,可获取环境光,根据环境光对人脸进行拍摄,得到第一人脸图像,若第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数,根据目标显示参数点亮屏幕,以对人脸进行补光,并进行拍摄,得到第二人脸图像,从而,可以在利用环境光对人脸图像进行拍摄时,若出现偏色现象,可以调整屏幕的显示参数,进而,通过屏幕辅助对人脸进行补光,拍摄后的人脸图像可以尽可能少地存在偏色,提升了人脸图像的质量,进而,提升了人脸解锁效率。It can be seen that the face recognition device described in the embodiment of the present application can acquire ambient light, and capture a face according to the ambient light to obtain a first face image, if the color of the first face image is color cast in the specified Color, adjust the display parameters of the screen, get the target display parameters, light up the screen according to the target display parameters, fill the face with the light, and shoot to obtain the second face image, so that the face can be used in the ambient light When the image is shot, if the color cast phenomenon occurs, the display parameters of the screen can be adjusted, and then the face is complemented by the screen assist, and the face image after the shooting can have the color cast as little as possible, and the face image is improved. The quality, in turn, improves the efficiency of face unlocking.
可以理解的是,本实施例的人脸识别装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is to be understood that the functions of the program modules of the face recognition device of the present embodiment may be specifically implemented according to the method in the foregoing method embodiments, and the specific implementation process may refer to the related description of the foregoing method embodiments, and details are not described herein again. .
本申请实施例还提供了另一种电子设备,如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、POS(point of sales,销售终端)、车载电脑等任意终端设备,以电子设备为手机为例:The embodiment of the present application further provides another electronic device. As shown in FIG. 5, for the convenience of description, only the parts related to the embodiment of the present application are shown. If the specific technical details are not disclosed, refer to the method of the embodiment of the present application. section. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), an in-vehicle computer, and the like, and the electronic device is used as a mobile phone as an example:
图5示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图5,手机包括:射频(radio frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、应用处理器AP980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图5对手机的各个构成部件进行具体的介绍:FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. Referring to FIG. 5, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, an application processor AP980, and a power supply. 990 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 5 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged. The following describes the components of the mobile phone in detail with reference to FIG. 5:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、面部识别装置931以及其他输入设备932。面部识别装置931具体结构组成可参照上述描述,在此不过多赘述。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 may include a touch display screen 933, a face recognition device 931, and other input devices 932. The specific structural composition of the face recognition device 931 can be referred to the above description, and will not be described here. The input unit 930 can also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of physical buttons, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
其中,所述AP980,用于执行如下步骤:The AP 980 is configured to perform the following steps:
获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;Obtaining ambient light, and capturing a face according to the ambient light to obtain a first face image;
若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;If the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
AP980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,AP980可包括一个或多个处理单元,该处理单元可为人工智能芯片、量子芯片;优选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。The AP 980 is the control center of the handset, which utilizes various interfaces and lines to connect various portions of the entire handset, and executes the handset by running or executing software programs and/or modules stored in the memory 920, as well as invoking data stored in the memory 920. A variety of functions and processing data to monitor the phone as a whole. Optionally, the AP 980 may include one or more processing units, where the processing unit may be an artificial intelligence chip or a quantum chip; preferably, the AP 980 may integrate an application processor and a modem processor, where the application processor mainly processes operations. The system, user interface, application, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the AP 980.
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Moreover, memory 920 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.
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The RF circuit 910 can be used for receiving and transmitting information. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division) Multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), e-mail, short messaging service (SMS), and the like.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display when the mobile phone moves to the ear. And / or backlight. As a kind of motion sensor, the accelerometer 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. It can be used to identify the 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 mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then the audio data is played by the AP 980, sent to the other mobile phone via the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变 发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access. Although FIG. 5 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。The mobile phone also includes a power source 990 (such as a battery) that supplies power to various components. Preferably, the power source can be logically connected to the AP980 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述图1C、图1D或图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 1C, FIG. 1D or FIG. 2, each step method flow can be implemented based on the structure of the mobile phone.
前述图3、图4A~图4C所示的实施例中,各单元功能可以基于该手机的结构实现。In the embodiments shown in FIG. 3 and FIG. 4A to FIG. 4C, each unit function can be implemented based on the structure of the mobile phone.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种人脸识别方法的部分或全部步骤。The embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to execute any one of the face recognition methods described in the foregoing method embodiments. Some or all of the steps.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种人脸识别方法的部分或全部步骤。The embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Part or all of the steps of any face recognition method.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software program module.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可 以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software program module and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , ROM, RAM, disk or CD.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the method and core ideas of the present application. A person skilled in the art will have a change in the specific embodiments and the scope of the application according to the idea of the present application. In summary, the content of the present specification should not be construed as limiting the present application.

Claims (20)

  1. 一种电子设备,其特征在于,包括应用处理器AP,以及与所述AP连接的面部识别装置,其中,An electronic device, comprising: an application processor AP, and a face recognition device connected to the AP, wherein
    所述面部识别装置,用于获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device is configured to acquire ambient light, and capture a face according to the ambient light to obtain a first facial image;
    所述AP,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP is configured to: if a color of the first face image is color cast in a specified color, adjust a display parameter of the screen to obtain a target display parameter; and light the screen according to the target display parameter, to The face is filled with light;
    所述面部识别装置,用于进行拍摄,得到第二人脸图像。The face recognition device is configured to perform shooting to obtain a second face image.
  2. 根据权利要求1所述的电子设备,其特征在于,所述AP还具体用于:The electronic device according to claim 1, wherein the AP is further configured to:
    对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;Performing spectrum analysis on the first face image to obtain a color component of the first face image;
    将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度;Comparing the color component with a preset color component to obtain a color deviation degree;
    在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。When the color deviation degree is within a preset range, it is confirmed that the color of the first face image is color cast to the specified color.
  3. 根据权利要求2所述的电子设备,其特征在于,在所述调整屏幕的显示参数,目标显示参数方面,所述AP具体用于:The electronic device according to claim 2, wherein in the aspect of the display screen of the adjustment screen, the target display parameter, the AP is specifically used to:
    按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
  4. 根据权利要求1所述的电子设备,其特征在于,在所述调整屏幕的显示参数方面,所述AP具体用于:The electronic device according to claim 1, wherein the AP is specifically configured to:
    获取所述环境光的第一颜色频谱图;Obtaining a first color spectrum map of the ambient light;
    获取预设的第二颜色频谱图;Obtaining a preset second color spectrum map;
    确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;Determining a spectrum difference map between the second color spectrogram and the first color spectrogram;
    确定与所述频谱差异图对应的显示参数作为所述目标显示参数。A display parameter corresponding to the spectrum difference map is determined as the target display parameter.
  5. 根据权利要求1-4任一项所述的电子设备,其特征在于,在所述根据所述目标显示参数点亮所述屏幕方面,所述AP具体用于:The electronic device according to any one of claims 1 to 4, wherein the AP is specifically used to: illuminate the screen according to the target display parameter:
    获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
    从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
    根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
  6. 一种人脸识别方法,其特征在于,应用于包括应用处理器AP,以及与所述AP连接的面部识别装置的电子设备,所述方法包括:A face recognition method, which is applied to an electronic device including an application processor AP and a face recognition device connected to the AP, the method comprising:
    所述面部识别装置获取环境光,并根据所述环境光对人脸进行拍摄,得到第一人脸图像;The facial recognition device acquires ambient light, and photographs a human face according to the ambient light to obtain a first facial image;
    所述AP在所述第一人脸图像的颜色偏色于指定颜色时,调整屏幕的显示参数,得到目标显示参数;以及根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光;The AP adjusts a display parameter of the screen to obtain a target display parameter when the color of the first face image is color cast to a specified color; and illuminates the screen according to the target display parameter to face the face Fill light
    所述面部识别装置进行拍摄,得到第二人脸图像。The face recognition device performs shooting to obtain a second face image.
  7. 一种人脸识别方法,其特征在于,包括:A face recognition method, comprising:
    获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;Obtaining ambient light, and capturing a face according to the ambient light to obtain a first face image;
    若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;If the color of the first face image is color cast in a specified color, adjusting a display parameter of the screen to obtain a target display parameter;
    根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The screen is illuminated according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;Performing spectrum analysis on the first face image to obtain a color component of the first face image;
    将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度;Comparing the color component with a preset color component to obtain a color deviation degree;
    在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。When the color deviation degree is within a preset range, it is confirmed that the color of the first face image is color cast to the specified color.
  9. 根据权利要求8所述的方法,其特征在于,所述调整屏幕的显示参数,目标显示参数,包括:The method according to claim 8, wherein the adjusting the display parameters of the screen, the target display parameters, comprises:
    按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
  10. 根据权利要求7所述的方法,其特征在于,所述调整屏幕的显示参数,包括:The method according to claim 7, wherein the adjusting display parameters of the screen comprises:
    获取所述环境光的第一颜色频谱图;Obtaining a first color spectrum map of the ambient light;
    获取预设的第二颜色频谱图;Obtaining a preset second color spectrum map;
    确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;Determining a spectrum difference map between the second color spectrogram and the first color spectrogram;
    确定与所述频谱差异图对应的显示参数作为所述目标显示参数。A display parameter corresponding to the spectrum difference map is determined as the target display parameter.
  11. 根据权利要求7-10任一项所述的方法,其特征在于,所述根据所述目标显示参数点亮所述屏幕,包括:The method according to any one of claims 7 to 10, wherein the lighting the screen according to the target display parameter comprises:
    获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
    从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
    根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
  12. 根据权利要求7-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 7 to 11, wherein the method further comprises:
    将所述第二人脸图像与预设人脸模板进行匹配,在所述第二人脸图像与所述预设人脸模板匹配成功时,执行解锁操作。And matching the second face image with the preset face template, and performing an unlocking operation when the second face image and the preset face template are successfully matched.
  13. 一种人脸识别装置,其特征在于,包括:A face recognition device, comprising:
    第一拍摄单元,用于获取环境光,根据所述环境光对人脸进行拍摄,得到第一人脸图像;a first photographing unit, configured to acquire ambient light, and photograph a human face according to the ambient light to obtain a first facial image;
    调整单元,用于若所述第一人脸图像的颜色偏色于指定颜色,调整屏幕的显示参数,得到目标显示参数;An adjusting unit, configured to adjust a display parameter of the screen to obtain a target display parameter if the color of the first face image is color cast in a specified color;
    第二拍摄单元,用于根据所述目标显示参数点亮所述屏幕,以对所述人脸进行补光,并进行拍摄,得到第二人脸图像。The second photographing unit is configured to illuminate the screen according to the target display parameter to fill the face and perform shooting to obtain a second face image.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    分析单元,用于对所述第一人脸图像进行频谱分析,得到所述第一人脸图像的颜色成分;An analyzing unit, configured to perform spectrum analysis on the first face image to obtain a color component of the first face image;
    比对单元,用于将所述颜色成分与预设颜色成分进行比对,得到颜色偏离度;在所述颜色偏离度处于预设范围时,确认所述第一人脸图像的颜色偏色于所述指定颜色。Aligning unit, configured to compare the color component with a preset color component to obtain a color deviation degree; and when the color deviation degree is in a preset range, confirming a color color cast of the first human face image The specified color.
  15. 根据权利要求14所述的装置,其特征在于,在所述调整屏幕的显示参数,目标显示参数方面,所述调整单元具体用于:The device according to claim 14, wherein in the aspect of the display parameter of the adjustment screen, the target display parameter, the adjusting unit is specifically configured to:
    按照预设的偏离度与所述屏幕的显示参数之间的映射关系确定所述颜色偏离度对应的所述目标显示参数。Determining the target display parameter corresponding to the color deviation degree according to a mapping relationship between a preset degree of deviation and a display parameter of the screen.
  16. 根据权利要求13所述的装置,其特征在于,在所述调整屏幕的显示参数方面,所述调整单元包括:The apparatus according to claim 13, wherein in the adjusting parameters of the adjustment screen, the adjusting unit comprises:
    获取模块,用于获取所述环境光的第一颜色频谱图;以及获取预设的第二颜色频谱图;An acquiring module, configured to acquire a first color spectrum map of the ambient light; and obtain a preset second color spectrum map;
    确定模块,用于确定所述第二颜色频谱图与所述第一颜色频谱图之间的频谱差异图;以及确定与所述频谱差异图对应的显示参数作为所述目标显示参数。a determining module, configured to determine a spectrum difference map between the second color spectrogram and the first color spectrogram; and determine a display parameter corresponding to the spectrum difference map as the target display parameter.
  17. 根据权利要求13-16任一项所述的装置,其特征在于,在所述根据所述目标显示参数点亮所述屏幕方面,所述第二拍摄单元具体用于:The device according to any one of claims 13 to 16, wherein the second photographing unit is specifically configured to: in the lighting the screen according to the target display parameter:
    获取预先存储的N张壁纸的显示参数,得到N组显示参数,所述N为大于1的整数;Obtaining display parameters of pre-stored N pieces of wallpaper, and obtaining N sets of display parameters, wherein N is an integer greater than 1;
    从所述N组显示参数中选取与所述目标显示参数最接近的一组显示参数,并获取与所述最接近的一组显示参数对应的壁纸,得到目标壁纸;Selecting a set of display parameters that are closest to the target display parameter from the N sets of display parameters, and acquiring a wallpaper corresponding to the closest set of display parameters to obtain a target wallpaper;
    根据所述目标壁纸点亮所述屏幕。The screen is illuminated according to the target wallpaper.
  18. 一种电子设备,其特征在于,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述 程序包括用于如权利要求7-12任一项方法的指令。An electronic device, comprising: an application processor AP and a memory; and one or more programs, the one or more programs being stored in the memory and configured to be executed by the AP, The program includes instructions for use in a method according to any of claims 7-12.
  19. 一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求7-12任一项所述的方法。A computer readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method of any of claims 7-12.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求7-12任一项所述的方法。A computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform as claimed in any one of claims 7-12 The method described.
PCT/CN2018/102278 2017-09-12 2018-08-24 Facial recognition method and related product WO2019052329A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710818693.9 2017-09-12
CN201710818693.9A CN107609514B (en) 2017-09-12 2017-09-12 Face recognition method and related product

Publications (1)

Publication Number Publication Date
WO2019052329A1 true WO2019052329A1 (en) 2019-03-21

Family

ID=61063366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102278 WO2019052329A1 (en) 2017-09-12 2018-08-24 Facial recognition method and related product

Country Status (2)

Country Link
CN (1) CN107609514B (en)
WO (1) WO2019052329A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738250A (en) * 2019-10-09 2020-01-31 陈浩能 Fruit and vegetable freshness identification method and related products
CN111694530A (en) * 2020-06-09 2020-09-22 北京百度网讯科技有限公司 Screen adaptation method and device, electronic equipment and storage medium
CN111696058A (en) * 2020-05-27 2020-09-22 重庆邮电大学移通学院 Image processing method, device and storage medium
CN111752516A (en) * 2020-06-10 2020-10-09 Oppo(重庆)智能科技有限公司 Screen adjustment method and device for terminal equipment, terminal equipment and storage medium
CN112487232A (en) * 2019-09-11 2021-03-12 深圳云天励飞技术有限公司 Face retrieval method and related product
CN113361349A (en) * 2021-05-25 2021-09-07 北京百度网讯科技有限公司 Face living body detection method and device, electronic equipment and storage medium
CN113379609A (en) * 2020-03-10 2021-09-10 Tcl科技集团股份有限公司 Image processing method, storage medium and terminal equipment
US11123505B2 (en) 2018-12-05 2021-09-21 Aires Medical LLC Breathing apparatus with breath detection software
CN113609958A (en) * 2021-08-02 2021-11-05 金茂智慧科技(广州)有限公司 Light adjusting method and related device
CN113630535A (en) * 2021-08-06 2021-11-09 深圳创维-Rgb电子有限公司 Television-based face shooting light supplementing method, equipment, storage medium and device
CN116168658A (en) * 2023-02-20 2023-05-26 深圳新视光电科技有限公司 LCD color difference adjusting method, device, equipment and medium based on radial reflection
CN118116088A (en) * 2024-04-30 2024-05-31 交通银行股份有限公司江西省分行 Banking business processing method, electronic equipment and storage medium

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609514B (en) * 2017-09-12 2021-08-06 Oppo广东移动通信有限公司 Face recognition method and related product
CN108288044B (en) * 2018-01-31 2020-11-20 Oppo广东移动通信有限公司 Electronic device, face recognition method and related product
CN110472459B (en) * 2018-05-11 2022-12-27 华为技术有限公司 Method and device for extracting feature points
CN111145194B (en) * 2019-12-31 2024-09-20 联想(北京)有限公司 Processing method, processing device and electronic equipment
CN111486950B (en) * 2020-04-20 2022-04-19 Oppo广东移动通信有限公司 Ambient light detection method, ambient light detection device, electronic apparatus, and storage medium
CN111652131A (en) * 2020-06-02 2020-09-11 浙江大华技术股份有限公司 Face recognition device, light supplementing method thereof and readable storage medium
CN113359734B (en) * 2021-06-15 2022-02-22 苏州工业园区报关有限公司 Logistics auxiliary robot based on AI

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744174A (en) * 2016-02-15 2016-07-06 广东欧珀移动通信有限公司 Selfie method and device and mobile terminal
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
CN107609514A (en) * 2017-09-12 2018-01-19 广东欧珀移动通信有限公司 Face identification method and Related product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8913005B2 (en) * 2011-04-08 2014-12-16 Fotonation Limited Methods and systems for ergonomic feedback using an image analysis module
CN104320578B (en) * 2014-10-22 2018-07-10 厦门美图之家科技有限公司 A kind of method that self-timer sheen compensation is carried out based on screen intensity
CN104683701A (en) * 2015-03-12 2015-06-03 成都品果科技有限公司 Method and system for optimizing human face colors in self-shot photos of front camera
CN105657267B (en) * 2016-04-22 2019-09-13 上海斐讯数据通信技术有限公司 A kind of device and method of self-timer light filling
CN106454081B (en) * 2016-09-29 2019-03-22 宇龙计算机通信科技(深圳)有限公司 Photographic method and device
CN106899768A (en) * 2017-03-22 2017-06-27 广东小天才科技有限公司 Terminal photographing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744174A (en) * 2016-02-15 2016-07-06 广东欧珀移动通信有限公司 Selfie method and device and mobile terminal
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
CN107609514A (en) * 2017-09-12 2018-01-19 广东欧珀移动通信有限公司 Face identification method and Related product

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11123505B2 (en) 2018-12-05 2021-09-21 Aires Medical LLC Breathing apparatus with breath detection software
CN112487232A (en) * 2019-09-11 2021-03-12 深圳云天励飞技术有限公司 Face retrieval method and related product
CN110738250B (en) * 2019-10-09 2024-02-27 陈浩能 Fruit and vegetable freshness identification method and related products
CN110738250A (en) * 2019-10-09 2020-01-31 陈浩能 Fruit and vegetable freshness identification method and related products
CN113379609A (en) * 2020-03-10 2021-09-10 Tcl科技集团股份有限公司 Image processing method, storage medium and terminal equipment
CN113379609B (en) * 2020-03-10 2023-08-04 Tcl科技集团股份有限公司 Image processing method, storage medium and terminal equipment
CN111696058A (en) * 2020-05-27 2020-09-22 重庆邮电大学移通学院 Image processing method, device and storage medium
CN111694530B (en) * 2020-06-09 2023-05-23 阿波罗智联(北京)科技有限公司 Screen adaptation method and device, electronic equipment and storage medium
CN111694530A (en) * 2020-06-09 2020-09-22 北京百度网讯科技有限公司 Screen adaptation method and device, electronic equipment and storage medium
CN111752516A (en) * 2020-06-10 2020-10-09 Oppo(重庆)智能科技有限公司 Screen adjustment method and device for terminal equipment, terminal equipment and storage medium
CN113361349B (en) * 2021-05-25 2023-08-04 北京百度网讯科技有限公司 Face living body detection method, device, electronic equipment and storage medium
CN113361349A (en) * 2021-05-25 2021-09-07 北京百度网讯科技有限公司 Face living body detection method and device, electronic equipment and storage medium
CN113609958A (en) * 2021-08-02 2021-11-05 金茂智慧科技(广州)有限公司 Light adjusting method and related device
CN113630535A (en) * 2021-08-06 2021-11-09 深圳创维-Rgb电子有限公司 Television-based face shooting light supplementing method, equipment, storage medium and device
CN113630535B (en) * 2021-08-06 2023-08-11 深圳创维-Rgb电子有限公司 Face camera light supplementing method, equipment, storage medium and device based on television
CN116168658A (en) * 2023-02-20 2023-05-26 深圳新视光电科技有限公司 LCD color difference adjusting method, device, equipment and medium based on radial reflection
CN116168658B (en) * 2023-02-20 2023-08-15 深圳新视光电科技有限公司 LCD color difference adjusting method, device, equipment and medium based on radial reflection
CN118116088A (en) * 2024-04-30 2024-05-31 交通银行股份有限公司江西省分行 Banking business processing method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107609514B (en) 2021-08-06
CN107609514A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2019052329A1 (en) Facial recognition method and related product
CN108594997B (en) Gesture skeleton construction method, device, equipment and storage medium
RU2731370C1 (en) Method of living organism recognition and terminal device
US11074466B2 (en) Anti-counterfeiting processing method and related products
CN107423699B (en) Biopsy method and Related product
WO2019011099A1 (en) Iris living-body detection method and related product
CN107590461B (en) Face recognition method and related product
WO2019020014A1 (en) Unlocking control method and related product
CN110650379B (en) Video abstract generation method and device, electronic equipment and storage medium
CN107566749B (en) Shooting method and mobile terminal
US11055547B2 (en) Unlocking control method and related products
WO2019011098A1 (en) Unlocking control method and relevant product
CN107451454B (en) Unlocking control method and related product
EP3623973A1 (en) Unlocking control method and related product
CN107730460B (en) Image processing method and mobile terminal
WO2019024718A1 (en) Anti-counterfeiting processing method, anti-counterfeiting processing apparatus and electronic device
CN113507558A (en) Method and device for removing image glare, terminal equipment and storage medium
CN110363702B (en) Image processing method and related product
US10706282B2 (en) Method and mobile terminal for processing image and storage medium
CN110807769A (en) Image display control method and device
WO2019015574A1 (en) Unlocking control method and related product
WO2019015432A1 (en) Iris living-body recognition method and related product
WO2019001253A1 (en) Method for iris liveness detection and related product
CN107194363B (en) Image saturation processing method and device, storage medium and computer equipment
CN113676718A (en) Image processing method, mobile terminal and readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1