Infrared light supplementing method, device and system and computer readable storage medium

By calculating the average brightness of local areas of the face and reducing the brightness of the infrared fill light, the problem of low face recognition efficiency of smart devices in different ambient lights is solved, and the effect of accurately recognizing face images in different environments is achieved.

CN118590765APending Publication Date: 2024-09-03HANGZHOU MOREDIAN TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410700648.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Smart devices cannot accurately recognize face images in different ambient lights, resulting in low face recognition efficiency.

Method used

By obtaining the target object's face image to be recognized under the initial infrared light brightness, determine the face area and calculate the average brightness of the local area of ​​the face. If the average brightness exceeds the exposure brightness threshold, reduce the brightness of the infrared fill light to avoid Faces are overexposed.

Benefits of technology

It improves the face recognition efficiency of face recognition terminals in different environments, solves the problem of face overexposure, and ensures clear face images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590765A
    Figure CN118590765A
Patent Text Reader

Abstract

The invention relates to an infrared light supplement method, and the method comprises the steps: obtaining a to-be-recognized face image of a target object under the initial infrared lamp brightness, and determining a face region in the to-be-recognized face image, the face region comprising face features; determining a face local area in the face area, and obtaining the average brightness of the face local area according to the brightness of pixel points in the face local area; and according to the average brightness and an exposure brightness threshold, determining that the to-be-recognized face image has an overexposure condition, and reducing the brightness of an infrared light supplement lamp. Through the method and the device, the problems that the intelligent equipment cannot accurately recognize the obtained face image in different ambient light and the face recognition efficiency is low are solved, the average brightness of the local face image is calculated to judge that the face image is in an overexposure state, so that an infrared light supplement lamp is reduced, a clear face image is obtained, and the user experience is improved. Therefore, the face recognition efficiency of the face recognition terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of face recognition, and in particular to an infrared fill light method, device, system, computer equipment and computer-readable storage medium. Background Art

[0002] With the rapid development of smart devices, the types of smart devices are becoming more and more diverse. Smart devices involving face recognition, such as face payment tablets, face recognition access control, face door locks, face attendance machines and clock-in machines, have made people's lives more convenient.

[0003] In order to enable smart devices to obtain high-quality facial images, infrared fill lights with fixed brightness are added to ensure that there is sufficient light for the camera to recognize faces. However, in an environment with sufficient light, the infrared fill lights with fixed brightness will overexpose the facial images obtained by the smart devices, making it impossible for the smart devices to accurately recognize the facial images obtained in different ambient light conditions, resulting in low facial recognition efficiency. Summary of the invention

[0004] The embodiment of the present application provides an infrared fill light method to at least solve the problem in the related art that the smart device cannot accurately recognize the obtained facial image in different ambient lights, thereby resulting in low facial recognition efficiency.

[0005] In a first aspect, an embodiment of the present application provides an infrared fill light method, comprising:

[0006] Obtaining a face image of a target object to be identified under the initial infrared light brightness, and determining a face region in the face image to be identified, wherein the face region includes face features;

[0007] Determine a local face region within the face region, and obtain an average brightness of the local face region based on the brightness of pixels within the local face region;

[0008] According to the average brightness and the exposure brightness threshold, it is determined that the face image to be recognized is overexposed, and the brightness of the infrared fill light is reduced.

[0009] In one embodiment, based on the face region, the face region coordinates are determined;

[0010] The local area of ​​the face is determined according to the coordinates of the face area and a preset area reduction ratio, where the preset area reduction ratio is less than or equal to 0.6 and the preset area reduction ratio is greater than or equal to 0.2.

[0011] In one embodiment, the acquired face image of the target object to be identified under the initial infrared light brightness includes:

[0012] Obtaining ranging face image;

[0013] Determine the distance between the target object and the terminal according to the ranging face image;

[0014] In response to the distance being less than or equal to the first preset threshold, the ranging facial image is used as the facial image to be recognized.

[0015] In one embodiment, determining the distance from the target object to the terminal according to the ranging face image includes:

[0016] Get the pixel size of the ranging face image;

[0017] The pixel size is compared with a second preset threshold, and the distance from the target object to the terminal is determined according to the comparison result.

[0018] In one embodiment, determining whether the face image to be recognized is overexposed according to the average brightness and the exposure brightness threshold includes:

[0019] In response to the average brightness being greater than or equal to the exposure brightness threshold, it is determined that the to-be-recognized face image is overexposed.

[0020] In one embodiment, determining whether the face image to be recognized is overexposed according to the average brightness and the exposure brightness threshold includes:

[0021] Obtaining a set number of consecutive frames of face images to be identified, and determining the average brightness of a local face image in each frame of the face image to be identified;

[0022] If the average brightness of the local images in the facial images to be recognized in consecutive frames is greater than or equal to the exposure brightness threshold, it is determined that the facial images to be recognized are overexposed.

[0023] In a second aspect, an embodiment of the present application provides an infrared fill light device, including:

[0024] A first acquisition module is used to acquire a face image of a target object to be identified under the initial infrared light brightness, and determine a face area in the face image, wherein the face area includes face features;

[0025] The second acquisition module is used to determine the local face area in the face area, and obtain the average brightness of the local face area according to the brightness of the pixels in the local face area;

[0026] The adjustment module is used to compare the average brightness with a first preset threshold value, and if the average brightness is greater than the first preset threshold value, the brightness of the infrared fill light is reduced.

[0027] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the infrared fill light method as described in the first aspect above when executing the computer program.

[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the infrared fill light method as described in the first aspect above.

[0029] An infrared fill light method provided in an embodiment of the present application has at least the following technical effects.

[0030] The face area in the target face image is obtained through the camera, and the local face area is determined based on the face area. The average brightness of the local face area is calculated. At this time, the average brightness of the local face area is similar to the average brightness of the face area, and the average brightness is compared with the preset threshold. If the average brightness is greater than the preset threshold, it is judged that the face image is overexposed, and the brightness of the infrared fill light is reduced. Accordingly, the problem of overexposure of the face during face recognition is solved, thereby improving the recognition efficiency of the face recognition terminal in different environments.

[0031] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0033] Figure 1 is a flow chart of an infrared fill light method provided according to an exemplary embodiment;

[0034] Figure 2 is a flowchart of step S101 according to an exemplary embodiment;

[0035] Figure 3 is a flowchart of step S102 according to an exemplary embodiment;

[0036] Figure 4 is a schematic diagram of face coordinates provided according to an exemplary embodiment;

[0037] Figure 5 is a schematic diagram of a local area of ​​a human face provided according to an exemplary embodiment;

[0038] Figure 6is a flow chart for determining overexposure of images in consecutive frames according to an exemplary embodiment;

[0039] Figure 7 is a flow chart of an infrared fill light method provided according to another exemplary embodiment;

[0040] Figure 8 is a flow chart of an infrared fill light method provided according to an exemplary embodiment;

[0041] Fig. 9 is a block diagram of an infrared fill light device according to an exemplary embodiment;

[0042] Fig.10 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

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

[0044] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0045] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0046] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0047] In a first aspect, an embodiment of the present application provides an infrared fill light method. Figure 1 is a flow chart of an infrared fill light method provided according to an exemplary embodiment. Figure 1 As shown, an infrared fill light method includes:

[0048] Step S101: acquiring a face image of a target object to be identified under an initial infrared light brightness, and determining a face region in the face image to be identified, wherein the face region includes face features.

[0049] The face recognition terminal determines the face area according to the face features in the face image to be recognized. As an example, the face recognition terminal determines the coordinates of the face feature points based on the face image to be recognized, and obtains the face area in the face image to be recognized according to the coordinates of the face feature points. Optionally, the face area includes at least 90% of the face features. In this way, it is convenient to determine the exposure degree of the face area in the subsequent steps.

[0050] In the embodiments of the present application, Figure 2 is a flowchart of step S101 according to an exemplary embodiment. Figure 2 As shown, the face image of the target object to be recognized under the initial infrared light brightness obtained in step S101 specifically includes:

[0051] Step S1011, obtaining a ranging face image.

[0052] The face recognition terminal recognizes the target object and obtains a ranging face image.

[0053] Optionally, when the target object appears within the recognition range of the face recognition terminal, the face recognition terminal is triggered to recognize the target object and obtain a range-measured face image. There is no specific restriction on the recognition range, which is determined according to the specific performance of the face recognition terminal.

[0054] Step S1012: determine the distance from the target object to the terminal according to the ranging face image.

[0055] Specifically, the face recognition terminal obtains the pixel size of the ranging face image through the built-in face recognition algorithm, for example, obtains the length and width of the ranging face image, compares the pixel size of the ranging face image with the second preset threshold, and determines the distance from the target object to the terminal according to the comparison result.

[0056] The size of the ranging face image is related to the distance between the target object and the terminal. The closer the target object is to the terminal, the larger the ranging face image is, and the farther the target object is from the terminal, the smaller the ranging face image is. Therefore, the distance between the target object and the terminal can be inferred from the ranging face image.

[0057] As an example, the second preset threshold includes thresholds for the length and width of the face region. In step S1012, the width and height of the pixel size of the ranging face image are compared with the width and height in the second preset threshold to determine the distance.

[0058] As shown in Table 1, the second preset threshold is specifically 186*241 (that is, the pixel size corresponding to 1 meter). If the pixel width of the ranging face image is 150 and the pixel height is 200, that is, the pixel width and height of the ranging face image are both less than the second preset threshold, then it is determined that the distance from the target object to the terminal is greater than 1 meter. If the pixel width of the ranging face image is 249 and the pixel height is 323, that is, the pixel width and height of the ranging face image are both greater than the second preset threshold, then it is determined that the distance from the target object to the terminal is less than 1 meter. When the distance from the target object to the terminal is less than 1 meter, the face image is prone to being overexposed.

[0059] Table 1 Comparison table of distance between target object and face recognition terminal

[0060]

[0061] In addition, it is specially noted that the target object and face recognition terminal distance comparison table is set based on the resolution of the face recognition terminal.

[0062] By measuring the distance between the target object and the face recognition terminal through the face image, it can be preliminarily determined whether the subsequent face images are in an exposed state.

[0063] Step S1013: In response to the distance being less than or equal to the first preset threshold, taking the distance-measured facial image as the facial image to be recognized.

[0064] Optionally, the first preset threshold is a minimum distance at which the face image will not be overexposed when the face recognition terminal recognizes the face, wherein the minimum distance is not specifically limited and is set according to different face recognition devices.

[0065] When it is determined that the distance between the target object and the face recognition device is less than or equal to a first preset threshold, the ranging face image is used as the face image to be recognized; when it is determined that the distance between the target object and the face recognition device is greater than the first preset threshold, the ranging face image is not used as the face image to be recognized.

[0066] When the distance between the target object and the face recognition terminal is less than or equal to the first preset threshold, it means that the face image at this distance is prone to overexposure. Therefore, the face image at this distance is used as the face image to be recognized to facilitate subsequent adjustment of the infrared fill light.

[0067] The face recognition terminal identifies the target object, obtains the distance-measured face image, and determines the distance between the target object and the face recognition terminal through the distance-measured face image. Based on the distance between the target object and the face recognition terminal, it can be preliminarily determined whether the face image is prone to overexposure. If the face image is prone to overexposure, the distance-measured face image is the face image to be recognized, so that detection can be performed based on the face image to be recognized, which provides a prerequisite for improving the efficiency of face recognition in the future.

[0068] Continue to refer to Figure 1 , after step S101, step S102 is performed, which is as follows:

[0069] Step S102: determine a local face region within the face region, and obtain an average brightness of the local face region based on the brightness of pixels within the local face region.

[0070] Figure 3 is a flowchart of step S102 according to an exemplary embodiment. Figure 3 As shown, in step S102, determining a partial face region within the face region includes:

[0071] Step S1021: Determine the coordinates of the face region based on the face region.

[0072] Optionally, the face region coordinates include face feature coordinates and face region boundary coordinates, wherein the face feature coordinates are features of the face physiological structure, such as nose, eyes and other physiological structures.

[0073] Step S1022: determine the local face area according to the face area coordinates and a preset area reduction ratio, wherein the preset area reduction ratio is less than or equal to 0.6 and the preset area reduction ratio is greater than or equal to 0.2.

[0074] When the face region coordinates are face region boundary coordinates, the preset area reduction ratio is less than or equal to 0.6 and the preset area reduction ratio is greater than or equal to 0.2, which is used to ensure that the obtained partial face region can be used to subsequently reflect the average brightness of the face image. If the partial face region is too small, the subsequent calculation of the average brightness of the partial face region cannot be similar to the average brightness of the face image.

[0075] There is no limitation on the preset area and the shape of the local face area. For example, the preset area includes 1 / 2, 1 / 3, 1 / 4, etc. of the original area; the shape of the local face area is rectangular, circular or triangular.

[0076] Optionally, the local area of ​​the face is determined according to the coordinates of the face area and the preset area reduction ratio, and according to the variation coefficient, wherein the location of the local area of ​​the face is not specifically limited and may be at any location in the face area, and the variation coefficient includes a width variation coefficient a and a height variation coefficient b. At this time, the variation expression of the local area of ​​the face is X=x+w*a, Y=y+h*a, W=w*b, H=h*b, wherein, Figure 4 is a schematic diagram of face coordinates provided according to an exemplary embodiment. Figure 4 As shown, x, y, w, and h are four parameters of the face region boundary. x is the horizontal distance from the starting position of the face region boundary to the starting position of the ranging face image, y is the vertical distance from the starting position of the face region boundary to the starting position of the ranging face image, w is the width of the face region boundary, and h is the height of the face region boundary. X, Y, W, and H are four parameters of the local face region boundary. X is the horizontal distance from the starting position of the local face region boundary to the starting position of the ranging face image, Y is the vertical distance from the starting position of the local face region boundary to the starting position of the ranging face image, W is the width of the local face region boundary, and H is the height of the local face region boundary.

[0077] Preferably, Figure 5 is a schematic diagram of a local area of ​​a face provided according to an exemplary embodiment. Figure 5 As shown, the local face area is selected at the center of the face area, and the preset area is selected as 1 / 2, wherein the width variation coefficient a is selected as 0.25, and the height variation coefficient b is selected as 0.5.

[0078] Step S1023: In response to the average brightness being greater than or equal to the exposure brightness threshold, it is determined that the face image to be recognized is overexposed.

[0079] Based on the partial face image, the face recognition terminal obtains the Y component in the partial face image through the face recognition algorithm, traverses the Y component according to the coordinates of the partial face image, and counts the average brightness Y_face of the partial face image.

[0080] The average brightness Y_face is obtained by accumulating all the pixels of the local face image and averaging the sum of the pixels. The expression of Y_face is:

[0081]

[0082] Among them, f(x) represents the pixel value at point x, and m and n represent the length and width of the local face image respectively.

[0083] Optionally, the exposure brightness threshold is the average brightness of the overexposed images obtained by the face recognition terminal. For example, the face recognition terminal obtains an overexposed image in an actual scene, and after counting the average brightness of the image, the average brightness of the overexposed image is greater than 200, so the exposure brightness threshold is set to 200.

[0084] Since the average brightness of the partial face image is consistent with the average brightness of the entire face image, the average brightness of the partial face can be used to determine whether the entire face image is overexposed. At the same time, the time to calculate the average brightness of the partial face image is less than the time to calculate the average brightness of the entire face image, thereby reducing the calculation time and improving the calculation efficiency. For example, when a person approaches the face recognition terminal at a close distance, the face recognition terminal needs to calculate 470*600 pixels for the entire face image, and the calculation time is about 18ms. The face recognition terminal needs to calculate 230*300 pixels for the partial face image, and the calculation time is 5ms.

[0085] If the average brightness of the local facial image is greater than the exposure brightness threshold, it can be determined that the facial image to be identified is overexposed; if the average brightness is less than or equal to the exposure brightness threshold, it can be determined that the facial image to be identified is not overexposed.

[0086] By reducing the area of ​​the face image, a partial face image is obtained. Since the average brightness of the partial face image is similar to the average brightness of the complete face image, the average brightness of the face image is obtained by calculating the average brightness of the partial face image, thereby reducing the time for calculating the average brightness and improving the efficiency of calculating the average brightness of the face image.

[0087] Step S103: determining whether the face image to be recognized is overexposed according to the average brightness and the exposure brightness threshold, and reducing the brightness of the infrared fill light.

[0088] The above determination of whether the face image to be recognized is overexposed based on the average brightness and exposure brightness threshold is a judgment of a single frame face image. It is a dynamic process for the face recognition terminal to obtain the face image facing the target object. Therefore, it is necessary to judge whether the image in the continuous frame is overexposed. Figure 6 is a flow chart for determining overexposure of images in consecutive frames according to an exemplary embodiment. Figure 6 As shown, the specific method for determining whether the images in the continuous frames are overexposed includes:

[0089] Step S1031 : obtaining a set number of consecutive frames of face images to be recognized, and determining the average brightness of a local face image in each frame of the face image to be recognized.

[0090] N is the number of consecutive frames, and N is set according to the adaptation of the FaceAE function and environment. The FaceAE function adjusts exposure parameters such as exposure time and gain based on the statistical results of the face area so that the average brightness of the face area tends to the target brightness, and the effective time of FaceAE is about 1 to 3 frames, so N should be set to be greater than 3.

[0091] The face recognition terminal preferentially calls the FaceAE function, and improves the overexposure of the face by adjusting the exposure method of the face recognition terminal, and detects whether the obtained face image is in an overexposed state. If the image adjusted by the FaceAE function is still in an overexposed state, the infrared fill light will be adjusted later.

[0092] Preferably, N is set to 5, which adapts the FaceAE function on the one hand, and eliminates the abnormality of a certain frame caused by sudden environmental changes on the other hand. The average brightness of the face image of each frame in N consecutive frames is calculated according to the above method to detect whether the face image to be identified is overexposed.

[0093] Step S1032: If the average brightness of the local images in the facial images to be identified in consecutive frames is greater than or equal to the exposure brightness threshold, it is determined that the facial images to be identified are overexposed.

[0094] If the average brightness of the local image in the face image to be recognized in each frame of N consecutive frames is greater than the exposure brightness threshold, it can be determined that the face image to be recognized is overexposed, and the brightness of the infrared fill light is reduced to one level.

[0095] Overexposure detection is performed on each face image within a set number of consecutive frames to avoid temporary overexposure of the face image due to accidental factors, thereby ensuring that the state of the face image at the moment can be effectively judged when the face recognition terminal performs face recognition.

[0096] Figure 7 is a flow chart of an infrared fill light method according to another exemplary embodiment. As another exemplary embodiment, before obtaining the face image of the target object to be recognized under the initial infrared light brightness in step S101, the method further includes:

[0097] Step S104, detecting whether there is a face. If there is no face, turning off the infrared fill light. If there is a face, adjusting the infrared fill light to an initial brightness.

[0098] The face recognition terminal detects in real time whether there is a face in the picture. If there is no face, the infrared fill light is turned off. If there is a face, the infrared fill light is adjusted to the initial brightness.

[0099] Optionally, the infrared fill light brightness adjustment method includes adjusting multiple brightness levels and real-time adjustment.

[0100] Preferably, the brightness of the infrared fill light is set to two levels, the second level is higher than the first level and the brightness value of the first level is half of the second level, avoiding frequent changes in the brightness of the fill light, thereby ensuring the stability of the operation of the infrared fill light.

[0101] Optionally, the initial brightness of the infrared fill light is set to a second level of brightness.

[0102] Optionally, if the face recognition terminal still cannot detect a face within a certain period of time, the infrared fill light is turned off. For example, if the face recognition terminal cannot detect a face, it polls every 120 seconds, and if it still cannot detect a face, the infrared fill light is turned off.

[0103] Optionally, if the face recognition terminal detects a face, it determines the current state of the infrared fill light. If the infrared fill light is off, it turns on the infrared fill light and adjusts it to the second level; if the infrared fill light is on, it determines the brightness level of the infrared fill light, and if it is the first level, it maintains the current brightness for face recognition; if it is the second level, the face recognition terminal obtains the face image to be recognized, and performs subsequent distance judgment between the target object and the face recognition terminal.

[0104] In summary, whether a face exists is determined based on the ranging face image, and the face recognition terminal is used to determine whether to turn on the infrared fill light, so that the face recognition terminal can turn on the corresponding infrared fill light when performing face recognition, effectively reducing the energy consumption of the face recognition terminal in the non-working state.

[0105] Figure 8 FIG. 1 is a flow chart of an infrared fill light method provided according to an exemplary embodiment. Figure 8 As shown in the figure, i is the image frame number parameter, which is used to judge whether a set number of consecutive frames are overexposed. i is initialized to 0. After i judges the set number of consecutive frames, i is cleared to judge whether the set number of consecutive frames are overexposed next time. T is the exposure brightness threshold, which is the average brightness of the overexposed images obtained by the face recognition terminal.

[0106] To sum up, an infrared fill light method provided in an embodiment of the present application obtains a partial face image from a face image to be identified, and then calculates the average brightness of the partial face image to obtain the average brightness of the face image to be identified. According to the average brightness of the face image to be identified in continuous frames being greater than an exposure brightness threshold, it is judged that the face image is in an overexposed state, thereby reducing the brightness of the infrared fill light, so that the face recognition terminal can obtain a clear face image, so that the face recognition terminal can adapt to the light of different environments, improve the efficiency of face recognition, and solve the problem in the related technology that the face image is overexposed due to the influence of different ambient light, thereby reducing the efficiency of face recognition of the face recognition terminal.

[0107] In a second aspect, an embodiment of the present application provides an infrared fill light device. Fig. 9 FIG. 1 is a block diagram of an infrared fill light device according to an exemplary embodiment. Fig. 9 As shown, the infrared fill light device includes:

[0108] A first acquisition module is used to acquire a face image of a target object to be identified under the initial infrared light brightness, and determine a face area in the face image, wherein the face area includes face features;

[0109] The second acquisition module is used to determine the local face area in the face area, and obtain the average brightness of the local face area according to the brightness of the pixels in the local face area;

[0110] The adjustment module is used to compare the average brightness with a first preset threshold value, and if the average brightness is greater than the first preset threshold value, the brightness of the infrared fill light is reduced.

[0111] To summarize, the infrared fill light device provided by the present application obtains a face image to be identified and determines the face area through a first acquisition module, and obtains a local face image and the average brightness of the local face image through a second acquisition module, thereby obtaining the average brightness of the face image based on the average brightness of the local face image. In the adjustment module, when the average brightness is greater than a first preset threshold, the brightness of the infrared fill light is reduced, thereby enabling the face recognition terminal to adjust the brightness of the infrared fill light when the face is overexposed, thereby enabling the face recognition terminal to obtain a clear face image and improving the efficiency of face recognition.

[0112] It should be noted that the infrared fill light device provided in this embodiment is used to implement the above-mentioned implementation mode, and the descriptions that have been made will not be repeated. As used above, the terms "module", "unit", "sub-unit", etc. can implement a combination of software and / or hardware for predetermined functions. Although the device described in the above embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0113] In a third aspect, an embodiment of the present application provides an electronic device, Fig.10 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Fig.10 As shown, the electronic device may include a processor 81 and a memory 82 storing computer program instructions.

[0114] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0115] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0116] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .

[0117] The processor 81 implements any one of the infrared fill light methods in the above embodiments by reading and executing computer program instructions stored in the memory 82 .

[0118] In one embodiment, an infrared fill light device may further include a communication interface 83 and a bus 80. Fig.10 As shown, the processor 81, the memory 82, and the communication interface 83 are connected via a bus 80 and communicate with each other.

[0119] The communication interface 83 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 83 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0120] The bus 80 includes hardware, software or both, and couples the components of an infrared fill light device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0121] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, an infrared fill light method provided in the first aspect is implemented.

[0122] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0123] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of an infrared fill light method provided in the first aspect.

[0124] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0125] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0126] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An infrared fill light method, characterized in that: The method is applied to a face recognition terminal, and the face recognition terminal is used to control the operation of an infrared fill light. The method includes: Acquire a face image of a target object to be identified under initial infrared brightness, and determine a face region in the face image to be identified, wherein the face region includes face features; Determine a local face region within the face region, and obtain an average brightness of the local face region based on the brightness of pixels within the local face region; According to the average brightness and the exposure brightness threshold, it is determined that the face image to be recognized is overexposed, and the brightness of the infrared fill light is reduced.

2. The infrared fill light method according to claim 1, characterized in that: Determining a local face area within the face area includes: Based on the face area, determining the coordinates of the face area; The partial face area is determined according to the face area coordinates and a preset area reduction ratio, wherein the preset area reduction ratio is less than or equal to 0.6 and the preset area reduction ratio is greater than or equal to 0.

2.

3. The infrared fill light method according to claim 1, characterized in that: The acquired face image of the target object to be identified under the initial infrared light brightness includes: Obtaining ranging face image; Determining the distance from the target object to the terminal according to the ranging face image; In response to the distance being less than or equal to a first preset threshold, the distance-measured facial image is used as the facial image to be recognized.

4. The infrared fill light method according to claim 3, characterized in that: The determining the distance from the target object to the terminal according to the ranging face image includes: Obtaining the pixel size of the ranging face image; The pixel size is compared with a second preset threshold, and the distance from the target object to the terminal is determined according to the comparison result.

5. The infrared fill light method according to claim 1, characterized in that: The determining, according to the average brightness and the exposure brightness threshold, whether the face image to be recognized is overexposed includes: In response to the average brightness being greater than or equal to the exposure brightness threshold, it is determined that the to-be-recognized facial image is overexposed.

6. The infrared fill light method according to claim 1, characterized in that: The determining, according to the average brightness and the exposure brightness threshold, whether the face image to be recognized is overexposed includes: Obtaining a set number of consecutive frames of face images to be identified, and determining the average brightness of a local face image in each frame of the face image to be identified; If the average brightness of the local images in the facial images to be recognized in the continuous frames is greater than or equal to the exposure brightness threshold, it is determined that the facial images to be recognized are overexposed.

7. An infrared fill light device, characterized in that: include: A first acquisition module is used to acquire a face image of a target object to be identified under an initial infrared light brightness, and determine a face region in the face image, wherein the face region includes face features; A second acquisition module is used to determine a local face area within the face area, and acquire an average brightness of the local face area according to the brightness of pixels in the local face area; The adjustment module is used to compare the average brightness with a first preset threshold value, and if the average brightness is greater than the first preset threshold value, the brightness of the infrared fill light is reduced.

8. An electronic device, characterized in that: It comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the infrared fill light method as claimed in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the infrared fill light method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Multi-area brightness cooperative adjustment method based on user face position and touch point position

    CN119179537A

  • Multi-area brightness collaborative adjustment method based on user face position and touch point position

    CN119179537B

  • Brightness adjustment method for monitoring image, apparatus, electronic device, and system

    WO2026066895A1