WO2021017561A1 - 人脸识别方法及装置、电子设备和存储介质 - Google Patents
人脸识别方法及装置、电子设备和存储介质 Download PDFInfo
- Publication number
- WO2021017561A1 WO2021017561A1 PCT/CN2020/088136 CN2020088136W WO2021017561A1 WO 2021017561 A1 WO2021017561 A1 WO 2021017561A1 CN 2020088136 W CN2020088136 W CN 2020088136W WO 2021017561 A1 WO2021017561 A1 WO 2021017561A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target object
- ambient light
- image
- face
- display device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 238000001514 detection method Methods 0.000 claims abstract description 40
- 238000012544 monitoring process Methods 0.000 claims abstract description 27
- 230000004044 response Effects 0.000 claims abstract description 7
- 230000001815 facial effect Effects 0.000 claims description 35
- 238000012545 processing Methods 0.000 claims description 31
- 230000008569 process Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 10
- 230000008859 change Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000001727 in vivo Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000000153 supplemental effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000011840 criminal investigation Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000012372 quality testing Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/06—Systems determining position data of a target
- G01S17/08—Systems determining position data of a target for measuring distance only
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
- G06V10/14—Optical characteristics of the device performing the acquisition or on the illumination arrangements
- G06V10/141—Control of illumination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/60—Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/98—Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06V10/993—Evaluation of the quality of the acquired pattern
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/52—Surveillance or monitoring of activities, e.g. for recognising suspicious objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
- G06V40/171—Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/40—Spoof detection, e.g. liveness detection
- G06V40/45—Detection of the body part being alive
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Definitions
- the present disclosure relates to the field of security technology, and in particular to a face recognition method and device, electronic equipment and storage medium.
- Face recognition and verification under dark light conditions is a major challenge in this technical field, which requires very high device performance and recognition algorithms.
- infrared images are used for face recognition or need to be supplemented when obtaining the face image of the target object.
- Light Therefore, additional auxiliary equipment such as infrared cameras or supplementary lights increase the use cost of the technology, and the infrared image recognition algorithm is more complex.
- the embodiments of the present disclosure propose a face recognition method and device, electronic equipment and storage medium.
- a face recognition method applied to a face recognition all-in-one machine the face recognition all-in-one machine has a display device, and the method includes: detecting ambient light in a monitoring area , Obtain the ambient light parameter; in response to the presence of the target object in the monitoring area, the target object moving distance detection; when the ambient light parameter satisfies the ambient light conditions and the moving distance of the target object is greater than or When the distance is equal to the threshold value, adjust the screen brightness of the display device according to the ambient light parameter to change the ambient light parameter; obtain the face image of the target object after the ambient light parameter is changed, and The face image is compared with the preset image to obtain a comparison result, and the face recognition result is obtained according to the comparison result.
- the ambient light parameter includes the brightness of the ambient light
- the ambient light condition includes that the brightness of the ambient light is less than or equal to a brightness threshold.
- the adjusting the screen brightness of the display device according to the ambient light parameter includes: determining the display parameter of the display device according to the ambient light parameter; adjusting the display parameter according to the display parameter The screen brightness of the display device.
- the display parameter includes the area ratio of the adjustment area in the display device, and at least one of grayscale, brightness, and chromaticity of the adjustment area.
- the adjusting the screen brightness of the display device according to the ambient light parameter includes: displaying a display interface in a predetermined mode on the display screen of the display device.
- the acquiring the face image of the target object after the ambient light parameter has been changed includes: acquiring a first image of the target object; performing image quality detection on the first image, and combining The first image that meets the quality condition is determined as the face image of the target object.
- the comparing the face image with a preset image to obtain a comparison result includes: performing a live body detection on the face image to obtain a live body detection result; in the live body detection result In the case of a living body, perform feature extraction processing on the target object in the face image to obtain the face feature of the target object; compare the face feature of the target object with the face in the preset image The features are compared and the comparison result is obtained.
- the method further includes: in a case where the face image of the target object is not acquired within a preset time period, controlling to switch to a standby state.
- the method further includes: saving a visit record of the target object when the face recognition result indicates that the recognition is successful.
- the method further includes: in the case that the face recognition result indicates that the recognition fails, performing one of the following processes: reacquire the person of the target object after the ambient light parameter is changed Face image, comparing the face image with the preset image to obtain a comparison result; outputting a notification message of recognition failure.
- a face recognition device including:
- the first detection module is configured to detect the ambient light in the monitoring area to obtain ambient light parameters
- the second detection module is configured to detect the moving distance of the target object in response to the presence of the target object in the monitoring area
- the adjustment module is configured to adjust the screen brightness of the display device according to the ambient light parameter under the condition that the ambient light parameter satisfies the ambient light condition and the moving distance of the target object is greater than or equal to the distance threshold to change The ambient light parameter;
- the comparison module is configured to obtain the face image of the target object after the ambient light parameter has been changed, and compare the face image with a preset image to obtain a comparison result, and according to the comparison result Get the face recognition result.
- the ambient light parameter includes the brightness of the ambient light
- the ambient light condition includes that the brightness of the ambient light is less than or equal to a brightness threshold.
- the adjustment module is configured to determine the display parameter of the display device according to the ambient light parameter; and adjust the screen brightness of the display device according to the display parameter.
- the display parameter includes the area ratio of the adjustment area in the display device, and at least one of grayscale, brightness, and chromaticity of the adjustment area.
- the adjustment module is configured to display a display interface in a predetermined mode on the display screen of the display device.
- the comparison module is configured to obtain a first image of the target object; perform image quality detection on the first image, and determine the first image that meets the quality condition as the target object Face image.
- the comparison module is configured to perform a living detection on the face image to obtain a living detection result; in a case where the living detection result is a living body, the target in the face image The object is subjected to feature extraction processing to obtain the face feature of the target object; the face feature of the target object is compared with the face feature in the preset image to obtain a comparison result.
- the device further includes: a control module configured to control the face recognition integrated machine to switch to standby when the face image of the target object is not acquired within a preset time period status.
- the device further includes a storage module configured to save the visit record of the target object when the face recognition result indicates successful recognition.
- the device further includes:
- the execution module is configured to perform one of the following processes when the face recognition result indicates that the recognition fails: reacquire the face image of the target object after the ambient light parameter is changed, and compare the person Comparing the face image with the preset image to obtain a face comparison result;
- an electronic device including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions when the The above-mentioned face recognition method in the embodiment of the present disclosure.
- a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement the face recognition method described in the embodiments of the present disclosure.
- Fig. 1 shows a first flowchart of a face recognition method according to an embodiment of the present disclosure
- Figure 2 shows a second flowchart of a face recognition method according to an embodiment of the present disclosure
- Fig. 3 shows a third flowchart of a face recognition method according to an embodiment of the present disclosure
- FIG. 4 shows a fourth flowchart of a face recognition method according to an embodiment of the present disclosure
- Fig. 5 shows an application schematic diagram of a face recognition method according to an embodiment of the present disclosure
- Fig. 6 shows a block diagram of a face recognition device according to an embodiment of the present disclosure
- Figure 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure
- FIG. 8 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
- Fig. 1 shows a first flow chart of a face recognition method according to an embodiment of the present disclosure. As shown in Fig. 1, the method is applied to a face recognition all-in-one machine which has a display device and includes:
- step S11 the ambient light in the monitored area is detected to obtain ambient light parameters
- step S12 in response to the presence of a target object in the monitoring area, detecting the moving distance of the target object
- step S13 when the ambient light parameter satisfies the ambient light condition and the moving distance of the target object is greater than or equal to the distance threshold, adjust the screen brightness of the display device according to the ambient light parameter to change The ambient light parameter;
- step S14 the face image of the target object after the ambient light parameters is obtained, and the face image is compared with a preset image to obtain a comparison result, and the person is obtained according to the comparison result. Face recognition result.
- the target object when the ambient light parameter satisfies the ambient light condition and there is a target object whose moving distance is greater than or equal to the distance threshold in the monitoring area, the target object can be filled with light through the display device, Comparing the face images collected after the supplemental light, the face recognition results can be obtained in the case of dark ambient light, without the need for additional auxiliary equipment such as infrared cameras or supplementary lights, which reduces the hardware cost.
- the face recognition method may be executed by a terminal device or other processing equipment, where the terminal device may be a user equipment (User Equipment, UE), a face recognition machine, a mobile device, a user terminal, a terminal , Cellular phones, cordless phones, personal digital assistants (PDAs), handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
- Other processing equipment can be servers or cloud servers.
- the face recognition method may be implemented by a processor invoking computer-readable instructions stored in a memory.
- the face recognition method can be used in a face recognition all-in-one machine, such as an access control device or an attendance device, to perform face recognition on visitors, and/or record the identity and time of the visitor Such information, the face recognition method can also be used in the recognition or unlocking of other devices or applications, and the embodiments of the present disclosure do not limit the application field of the face recognition method.
- the ambient light in the monitored area may be detected to obtain ambient light parameters.
- the monitoring area includes the recognizable area of the face recognition all-in-one machine.
- the face recognition all-in-one machine can be set in the monitoring area, and the ambient light of the monitoring area can be monitored by photosensitive devices such as the photosensitive sensor of the face recognition all-in-one machine.
- the ambient light parameters are detected.
- the ambient light parameters include at least the brightness of the ambient light, for example, the light intensity of the ambient light and other parameters. According to the brightness or intensity of the ambient light, it can be determined whether or not supplementary light is needed when taking a face image.
- the quality of the face image taken in this ambient light scene is poor (for example, the face image is blurred, the image brightness is low, and the face image cannot be obtained from the face image. Features, etc.), so in this kind of ambient light scene, it is necessary to fill in the light when shooting the face image. If the brightness of the ambient light is high, the quality of the captured face image is better, and there is no need to fill in the light when capturing the face image.
- step S12 when the target object exists in the monitoring area, the movement distance detection of the target object may be performed.
- the moving distance of the target object can be detected by the distance measuring device (for example, infrared distance measuring device) of the face recognition integrated machine.
- the detection of the moving distance of the target object can determine whether to collect the face image. For example, if there is a moving target object in the surveillance area that is gradually approaching, it may be that the target object is approaching the face recognition all-in-one machine and intends to pass the door. Therefore, it is necessary to collect face images for recognition; If there is no moving target object in the area (for example, there is no target object in the monitoring area, or there are only some target objects that will not move), there is no need to collect face images.
- the moving distance of the target object being greater than or equal to the distance threshold may specifically be detecting that the moving distance of the target object is greater than or equal to the distance threshold, so that the distance between the target object and the distance measuring device is reduced.
- the ambient light parameter includes the brightness of the ambient light
- the ambient light condition includes that the brightness of the ambient light is less than or equal to a brightness threshold (for example, the brightness threshold may be set to 5 lux ( lux), etc., the embodiment of the present disclosure does not limit the brightness threshold).
- the distance threshold can be set to 10cm, the embodiment of the present disclosure does not impose restrictions on the distance threshold, namely .
- Adjust the brightness of the display device to fill up the target object For example, the display device can be turned on, and the light emitted by the display device can change the ambient light parameters of the area where the face is located.
- step S13 may include: displaying a display interface in a predetermined mode on the display screen of the display device.
- the predetermined mode may include turning on the screen of the display device and making the screen display a light background (for example, displaying a white background), so that the screen of the display device emits brighter light.
- the predetermined mode may include causing the display device to display according to predetermined display parameters.
- step S13 may include: determining the display parameter of the display device according to the ambient light parameter; and adjusting the screen brightness of the display device according to the display parameter.
- the display parameter may include the area ratio of the adjustment area in the display device, and at least one of grayscale, brightness, and chromaticity of the adjustment area.
- the adjustment area is the area on the screen of the display device that needs to be adjusted when the target object is filled with light through the display device.
- the brightness of the area can be adjusted to increase the brightness of the area and emit brighter light. , Fill light for the target object.
- the display parameters of the display device corresponding to the ambient light parameters may be preset, that is, a predetermined mode may be preset.
- multiple tests can be performed under various lighting conditions. For example, when the ambient light brightness is 5 lux, the display parameters are tested, for example, the area ratio of the adjustment area in the adjustable display device (ie, the area ratio of the adjustment area to the display area of the display device), and the adjustment At least one parameter of the gray, brightness and chromaticity of the area changes the brightness of the light emitted by the adjustment area of the display device, and photographs the face of the target object in front of the display device to obtain a face image for image Quality testing.
- the area ratio of the adjustment area in the adjustable display device ie, the area ratio of the adjustment area to the display area of the display device
- the adjustment At least one parameter of the gray, brightness and chromaticity of the area changes the brightness of the light emitted by the adjustment area of the display device, and photographs the face of the target object in front of the display device to obtain a face image for
- the image quality is poor, increase the area ratio of the adjustment area or increase at least one of the grayscale, brightness, and chromaticity of the adjustment area until the image quality meets the standards for identification (for example, image clarity, brightness and other parameters) Meet the standard and be able to identify through the image).
- the brightness of the ambient light for example, adjust the brightness of the ambient light to 4lux, and continue to adjust the area ratio of the adjustment area in the display device, and at least one of the grayscale, brightness and chromaticity of the adjustment area ( For example, increase the area ratio of the adjustment area or increase at least one of the grayscale, brightness, and chroma of the adjustment area) until the light-filled face image meets the requirements for identity recognition under the condition of 4lux ambient light brightness. standard.
- the illuminated face image can meet the display parameters of the identity recognition standard, that is, the corresponding relationship between the ambient light parameters and the display parameters is established.
- the display parameter corresponding to the ambient light parameter can be determined.
- the detected ambient light parameter is 3lux. It is possible to determine the area ratio of the adjustment area corresponding to 3 lux, and at least one of the gray scale, brightness, and chromaticity of the adjustment area.
- the display device is adjusted according to the display parameter, that is, the screen of the display device is set according to the corresponding display parameter. For example, the brightness of the adjustment area in the screen of the display device can be increased, and the adjustment area of the adjustment area can be adjusted. At least one of grayscale, brightness, and chromaticity enables the light emitted by the display device to supplement light for the target object, and enables the face image of the target object after the supplementary light to meet the identity recognition standard.
- the display parameters of the display device can be determined by the ambient light parameters, and the display device can be adjusted according to the display parameters, so that the display device emits light to fill the target object without using additional auxiliary equipment such as infrared cameras or fill lights. Save the cost of use.
- the light emitted by the display device can fill light for the target object, and the image acquisition device (for example, the camera) of the face recognition all-in-one machine can be turned on when the display device emits light to photograph the monitoring area Image, and in the captured image, determine the face image of the target object.
- the image acquisition device for example, the camera
- step S14 may include: acquiring a first image of the target object; performing image quality detection on the first image; and determining the first image that meets the quality condition as the face image of the target object.
- the image acquisition device may take a first image of the target object in the monitoring area, and the first image may be an RGB image.
- the first image may be an RGB image.
- multiple first images of the target object can be captured, and the quality of the multiple first images can be tested, that is, it is determined whether the first image meets the quality condition.
- the first image includes only the body of the target object and does not include the face of the target object, or a part of the face of the target object is not included in the first image (for example, a part of the face of the target object exceeds the first image).
- the boundary of an image for example, a part of the human face exceeds the boundary of the upper, left, right, or lower side of the first image, resulting in an incomplete human face of the target object in the first image).
- the angle of the face of the target object in the first image or whether the face of the target object is occluded, etc. key points of the face can be detected in the first image, if the angle of the face is within a certain range If the angle of the face exceeds a certain range, or the occluded ratio is within a certain range, a sufficient number of key points of the face can be extracted, and the first image can meet the quality condition. If the angle of the face exceeds a certain range, or the occluded ratio exceeds a certain range, Therefore, a sufficient number of key points of the face cannot be extracted.
- the first image may not be able to extract effective features during the face comparison process. Therefore, an effective face comparison cannot be performed.
- the first image can be considered to be unsatisfactory. Quality conditions).
- One or more images meeting the quality condition can be selected from the plurality of first images as the face image of the target object.
- the quality condition may include whether parameters such as image clarity and brightness reach a preset threshold, and the feature of the target object's face may be extracted from the first image; the quality condition may include the target object's person in the first image Whether the face is complete, whether there is no occlusion, whether the angle deviation is small, etc., the features of the target object's face can be extracted from the first image.
- the embodiments of the present disclosure do not limit the quality conditions.
- the embodiment of the present disclosure may also determine whether the first image meets the quality condition based on one or more of the above-mentioned determination methods, which is not limited in the embodiment of the present disclosure.
- face images that meet the quality conditions can be obtained from the multiple first images, and the accuracy of the identification of the face images can be improved.
- the face recognition all-in-one machine can determine whether a face image is acquired. If the face image of the target object is not acquired within a certain period of time, the target object in the monitoring area may have left, for example, The target object is only a person passing by the target area, and does not intend to enter the door control, nor does it intend to perform identity recognition. Therefore, the identity recognition process may not be continued.
- FIG. 2 shows a second flowchart of a face recognition method according to an embodiment of the present disclosure. As shown in FIG. 2, the method further includes:
- step S15 if the face image of the target object is not acquired within the preset time period, the control is switched to the standby state.
- the preset time period may be, for example, 10 seconds, half a minute, one minute, etc.
- the embodiment of the present disclosure does not limit the preset time period. If the face image is not obtained within the preset time period, the target object may not want to perform identity recognition.
- the face recognition integrated machine can be controlled to switch to the standby state, or control the display device to switch to the standby state to prevent the display device Maintaining a high-brightness state for a long time can protect the display device, reduce the loss of the screen of the display device, extend the service life of the display device, and reduce the power consumption.
- the step S14 may include: performing a live body detection on the face image to obtain a live body detection result; in a case where the live body detection result is a live body, the target object in the face image Performing feature extraction processing to obtain the facial features of the target object; comparing the facial features of the target object with the facial features in the preset image to obtain a comparison result.
- the living body detection can be performed on the face in the face image.
- the human face in the human face image is a real human face, instead of being collected through methods such as photos, masks, and screen remakes.
- the face image can be detected in vivo through neural networks, etc., which can distinguish high-definition photos, processed images, three-dimensional models, stereo dummies, masks and other forms of counterfeiting fraud.
- the face recognition all-in-one machine can stop the recognition process, refuse to open the door, and control to switch to the standby state, and no longer process the target object to fill light, take the target object's face image, etc.
- feature extraction can be performed on the face of the target object in the face image, for example, features such as key points of the face can be extracted.
- the feature extraction of the face image can be performed through the convolutional neural network to obtain the face feature of the target object.
- the facial features of the target object can be compared with the facial features in the preset image.
- multiple preset images may be stored, and the objects in the multiple preset images are objects with the access control permission.
- the face recognition all-in-one machine detects To the target object that is consistent with the object in a certain threshold image, the door can be opened to allow the target object to pass.
- the face recognition all-in-one machine is a face recognition all-in-one machine of a certain company
- the preset image is a face image of a staff member of the company that is pre-stored in the database of the face recognition all-in-one machine.
- the database of the all-in-one face recognition machine may also store the facial features of the faces in each preset image.
- the facial features in the preset image can be extracted by calling the relevant feature extraction algorithm, and the facial features corresponding to the preset image can be stored .
- the face features of the target object in the face image can be compared with the face features in each preset image to obtain a comparison result.
- comparing the face features of the target object in the face image with those in each preset image can specifically determine the feature similarity between the face features in the face image and the face features in each preset image If the feature similarity (for example, cosine similarity) between the facial features in the face image and the facial features in a certain preset image is greater than the similarity threshold, it can indicate that the facial features of the target object are consistent with the preset.
- the facial features in the preset image are consistent, that is, the target object in the face image matches the object in the preset image.
- preset images of object 1, object 2...object n and the facial features of the object are stored in the database. If the facial features of the target object match the facial features of the preset image of object 2, then the identity information of the target object As object 2, it can also indicate that the identity authentication of the target object is passed.
- the feature similarity for example, cosine similarity
- the facial features in the face image and the facial features in each preset image is less than or equal to the similarity threshold, it can indicate that the face features of the target object are The facial features in the preset images are inconsistent, that is, the target object in the face image does not match the objects in each preset image.
- the above comparison result or the identity authentication result can be used as the face recognition result, that is, the comparison result can be whether the face feature of the target object is consistent with the face feature in the preset image. Or whether the target object in the face image matches the object in the preset image, or whether the identity authentication of the target object in the face image passes.
- the identity information of the target object can also be displayed on the display device, as well as prompt information that characterizes the successful identity recognition of the target object.
- the display device may display the identity of the target object as object 2, and allow the target object to enter. After the face recognition of the target object is completed, the display device can be turned off to reduce the loss of the display device.
- the human face image can be detected in vivo first to improve the security and reliability of identity recognition, and the identity recognition can be performed through facial features to improve the accuracy of identity recognition.
- Fig. 3 shows a third flowchart of a face recognition method according to an embodiment of the present disclosure. As shown in Fig. 3, the method further includes:
- step S16 when the face recognition result indicates that the recognition is successful, the visit record of the target object is saved.
- the feature similarity for example, cosine similarity
- the facial features in the face image can indicate the facial features of the target object It is consistent with the comparison of the facial features in the preset image, and it can also be determined that the face recognition result is successful; if the facial features in the face image are similar to the facial features in each preset image ( For example, if the cosine similarity is less than or equal to the similarity threshold, it can indicate that the facial features of the target object are inconsistent with the facial features in the preset image, and it can also be determined that the face recognition result is a recognition failure.
- the feature similarity for example, cosine similarity
- the visit record of the target object may include information such as the identity and visit time of the target object.
- the face recognition all-in-one machine is a face recognition all-in-one machine of a certain company. If the target object is an employee of the company, if the identity of the target object matches the preset identity, the identity of the target object (such as the target object identification ) And the visit time of the target object.
- the face recognition all-in-one machine can be used as an attendance device to record an employee coming to the company at a certain time. Alternatively, the time at which a person arrives at a certain place can be recorded, which can provide a basis for criminal investigation work.
- the embodiments of the present disclosure do not limit the application field of visit records.
- the target object when the face recognition result indicates that the recognition fails, for example, the target object is not an employee of the company, or the identity recognition process fails due to problems such as the shooting angle, the target object can be Re-identify or notify the target object of the failure result.
- Fig. 4 shows a fourth flowchart of a face recognition method according to an embodiment of the present disclosure. As shown in Fig. 4, the method further includes:
- step S17 when the face recognition result indicates that the recognition fails, one of the following processes is performed: reacquire the face image of the target object after the ambient light parameter is changed, and Compare the face image with the preset image to obtain the comparison result;
- the mismatch between the identity of the target object and the preset identity may be caused by problems in the photographing of the face image, for example, problems such as the shooting angle. Therefore, the supplemental light can be obtained again (that is, after the ambient light parameter is changed). ), and re-identify and compare the face image of the target object through the above-mentioned face recognition method; if the result of the re-identification and comparison is successful, the visit record of the target object can be recorded and the access control can be opened to allow the target object Enter, etc.; if the result of re-identification and comparison is recognition failure, the face image of the target object can be obtained again and the recognition and comparison can be performed again.
- the comparison process can be repeated indefinitely; if the result of re-identification and comparison is recognition If it fails, the target object is prohibited from passing through the access control, and the access control can not be opened until the comparison result is a successful identification.
- the comparison process can also be restricted here. For example, the limit of the number of times can be set to 5 times. If the target object is repeatedly compared for 5 times and the identity of the target object does not match the preset identity, the comparison process is stopped. , The control is switched to the standby state, and the notification message of recognition failure is output.
- the notification information of the recognition failure may be displayed on the display device, or the notification information may be played through an audio playback device such as a speaker.
- the embodiment of the present disclosure does not limit the number of times and the manner of outputting notification information.
- the target object when the ambient light parameter satisfies the ambient light condition and there is a target object whose moving distance is greater than or equal to the distance threshold in the monitoring area, the target object can be performed on the display device. Fill light, and obtain face images meeting the quality conditions from multiple first images, obtain face recognition results in the case of dark ambient light, and improve the accuracy of face image recognition.
- the face image when recognizing the face image collected after supplemental light, the face image can be detected in vivo first, which improves the safety and reliability of identification, and does not require additional auxiliary equipment such as infrared cameras or supplementary lights , Saving the cost of use, and reducing the complexity of the algorithm.
- the visit record of the target object can be recorded, which improves the flexibility of using the face recognition method.
- the face image collection, recognition and comparison of the target object can be performed again to avoid the recognition failure due to shooting problems, and improve the accuracy and reliability of recognition .
- it can be controlled to switch to a standby state after the identification fails, the living body detection result is non-living, and the identification process is completed, so as to reduce the loss of the display device, extend the service life of the display device, and reduce power consumption.
- Fig. 5 shows an application schematic diagram of a face recognition method according to an embodiment of the present disclosure.
- the face recognition method is used in a face recognition all-in-one machine or attendance equipment, and can recognize target objects in a monitoring area.
- the face recognition integrated machine may include an image acquisition device, a display device, an infrared distance measuring device, a brightness sensor, and the like.
- the brightness sensor can acquire ambient light parameters such as the brightness of the ambient light, and the infrared distance measuring device can detect whether there is a moving object in the monitoring area.
- the display can be adjusted according to the ambient light parameters.
- the device adjusts the brightness of the screen of the display device to make the brightness of the ambient light brighter and increase the brightness of the ambient light, thereby filling the target object with light.
- the correspondence between one or more sets of ambient light parameters and the display parameters of the display device may be preset.
- the corresponding display parameter can be determined according to the detected ambient light parameter, so as to adjust the area ratio of the adjustment area of the display device according to the display parameter, and adjust at least one of the gray, brightness and chromaticity of the area, thereby adjusting the display
- the light emitted by the device increases the brightness of the ambient light, thereby filling the target object with light.
- the image acquisition device may acquire multiple first images of the target object, and select a first image with a relatively complete face, a lower occlusion ratio, and a smaller angle deviation as the face image.
- live detection can be performed on the face image to verify that the target object in the face image is a living body, instead of being collected through methods such as photos, masks, and screen remakes.
- the face can be Feature extraction is performed on the image, and the extracted facial features are compared with the facial features in the preset images in the database to determine the preset image that matches the facial image.
- the identity corresponding to the preset image can be determined as the identity of the target object, and the identity and visit time of the target object can be recorded. If there is no preset image matching the face image in the database, the face image of the target object can be acquired again and the recognition and comparison can be performed; the number of comparisons can be limited, for example, 5 times, if the comparison is repeated for the target object If the identity of the target object does not match each preset image after 5 times, the comparison process is stopped, the display device and the image acquisition device are turned off, and the notification message of the recognition failure is output.
- the embodiments of the present disclosure also provide a face recognition device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any face recognition method provided in the present disclosure.
- a face recognition device an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any face recognition method provided in the present disclosure.
- the corresponding technical solutions and descriptions and refer to the methods Part of the corresponding records will not be repeated.
- the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
- the specific execution order of each step should be based on its function and possibility.
- the inner logic is determined.
- the embodiment of the present disclosure also provides a face recognition device, which is applied to a face recognition all-in-one machine, and the face recognition all-in-one machine has a display device.
- Fig. 6 shows a block diagram of a face recognition device according to an embodiment of the present disclosure. As shown in Fig. 6, the device includes:
- the first detection module 11 is configured to detect the ambient light in the monitoring area to obtain ambient light parameters
- the second detection module 12 is configured to detect the moving distance of the target object in response to the presence of the target object in the monitoring area;
- the adjustment module 13 is configured to adjust the screen brightness of the display device according to the ambient light parameter under the condition that the ambient light parameter satisfies the ambient light condition and the moving distance of the target object is greater than or equal to the distance threshold. Changing the ambient light parameters;
- the comparison module 14 is configured to obtain the face image of the target object after the ambient light parameter has been changed, and compare the face image with a preset image to obtain a comparison result, according to the comparison The result is the face recognition result.
- the ambient light parameter includes the brightness of the ambient light
- the ambient light condition includes that the brightness of the ambient light is less than or equal to a brightness threshold.
- the adjustment module 13 is configured to determine the display parameter of the display device according to the ambient light parameter; and adjust the screen brightness of the display device according to the display parameter.
- the display parameter includes the area ratio of the adjustment area in the display device, and at least one of grayscale, brightness, and chromaticity of the adjustment area.
- the adjustment module 13 is configured to display a display interface in a predetermined mode on the display screen of the display device.
- the comparison module 14 is configured to obtain a first image of the target object; perform image quality inspection on the first image, and determine the first image that meets the quality condition as the target object Face image.
- the comparison module 14 is configured to perform a living body detection on the face image to obtain a living body detection result; in a case where the living body detection result is a living body, compare the images in the face image
- the target object is subjected to feature extraction processing to obtain the facial features of the target object; the facial features of the target object are compared with the facial features in the preset image to obtain a comparison result.
- the device further includes: a control module configured to control the face recognition integrated machine to switch to a standby state when the face image of the target object is not obtained within a preset time period .
- the device further includes a storage module configured to save the visit record of the target object when the recognition result indicates successful recognition.
- the device further includes: an execution module configured to perform one of the following processes when the recognition result indicates that the recognition fails:
- the embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions are executed by a processor to implement the face recognition method described in the embodiments of the present disclosure.
- the computer-readable storage medium may be a non-volatile computer-readable storage medium.
- An embodiment of the present disclosure also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned executable instructions of the embodiments of the present disclosure when the Face recognition method.
- the electronic device can be provided as a terminal, a server or other forms of equipment.
- Fig. 7 is a block diagram showing an electronic device according to an exemplary embodiment.
- the electronic device 800 may be any of a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
- the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 And the communication component 816.
- the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
- the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
- the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
- the memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc.
- the memory 804 can be implemented by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (Static Random Access Memory, SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read Only Memory) , ROM), magnetic memory, flash memory, magnetic disk or optical disk.
- SRAM static random access memory
- EEPROM Electrically erasable programmable read-only memory
- EPROM Erasable Programmable Read-Only Memory
- PROM Programmable Read-Only Memory
- Read Only Memory Read Only Memory
- the power supply component 806 provides power for various components of the electronic device 800.
- the power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
- the multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
- the screen may include a liquid crystal display (Liquid Crystal Display, LCD) and a touch panel (Touch Panel, TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
- the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 810 is configured to output and/or input audio signals.
- the audio component 810 includes a microphone (Microphone, MIC).
- the microphone is configured to receive an external audio signal.
- the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
- the audio component 810 further includes a speaker for outputting audio signals.
- the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
- the peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
- the sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation.
- the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components.
- the component is the display and the keypad of the electronic device 800.
- the sensor component 814 can also detect the electronic device 800 or the electronic device 800.
- the position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800.
- the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
- the sensor component 814 may also include a light sensor, such as a Complementary Metal-Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD) image sensor, for use in imaging applications.
- CMOS Complementary Metal-Oxide Semiconductor
- CCD Charge Coupled Device
- the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
- the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
- the electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
- the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication.
- the NFC module can be based on radio frequency identification (RFID) technology, infrared data association (Infrared Data Association, IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BlueTooth, BT) technology and other technologies to fulfill.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra wideband
- Bluetooth Bluetooth
- the electronic device 800 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), Programmable logic device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to implement the above methods.
- ASIC application specific integrated circuits
- DSP digital signal processor
- DSPD digital signal processing device
- PLD Programmable logic device
- Field-Programmable Gate Array Field-Programmable Gate Array
- controller microcontroller, microprocessor or other electronic components are implemented to implement the above methods.
- a non-volatile computer-readable storage medium such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
- Fig. 8 is a block diagram showing an electronic device according to an exemplary embodiment.
- the electronic device 1900 may be provided as a server.
- the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs.
- the application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
- the processing component 1922 is configured to execute instructions to execute the face recognition method described in the embodiment of the present disclosure.
- the electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
- the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
- the embodiment of the present disclosure also provides a non-volatile computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete The above-mentioned face recognition method in the embodiment of the present disclosure.
- the embodiments of the present disclosure may be systems, methods and/or computer program products.
- the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
- the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
- the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
- RAM random access memory
- ROM read-only memory
- EPROM erasable programmable read-only memory
- flash memory flash memory
- SRAM static random access memory
- CD-ROM compact disk read-only memory
- DVD digital versatile disk
- memory stick floppy disk
- mechanical encoding device such as a printer with instructions stored thereon
- the computer-readable storage medium used here is not interpreted as a transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
- the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
- the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
- the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, status setting data, or in one or more programming languages.
- Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
- Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server carried out.
- the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to access the Internet connection).
- LAN local area network
- WAN wide area network
- an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
- the computer-readable program instructions are executed to realize various aspects of the present disclosure.
- These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
- each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more functions for implementing the specified logical function.
- Executable instructions may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Software Systems (AREA)
- Collating Specific Patterns (AREA)
- Image Analysis (AREA)
- Image Input (AREA)
- Time Recorders, Dirve Recorders, Access Control (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (22)
- 一种人脸识别方法,应用于人脸识别一体机,所述人脸识别一体机具有显示装置,所述方法包括:对监控区域的环境光进行检测,获得环境光参数;响应于在所述监控区域中存在目标对象的情况,对所述目标对象进行移动距离检测;在所述环境光参数满足环境光条件且所述目标对象的移动距离大于或等于距离阈值的情况下,根据所述环境光参数,调节所述显示装置的屏幕亮度,以改变所述环境光参数;获取所述环境光参数改变后的所述目标对象的人脸图像,并将所述人脸图像与预置图像进行比对,获得比对结果,根据所述比对结果得到人脸识别结果。
- 根据权利要求1所述的方法,其中,所述环境光参数包括环境光的亮度,所述环境光条件包括环境光的亮度小于或等于亮度阈值。
- 根据权利要求1所述的方法,其中,所述根据所述环境光参数,调节所述显示装置的屏幕亮度,包括:根据所述环境光参数,确定所述显示装置的显示参数;根据所述显示参数调节所述显示装置的屏幕亮度。
- 根据权利要求3所述的方法,其中,所述显示参数包括显示装置中的调节区域的面积占比,以及所述调节区域的灰度、亮度和色度中的至少一个。
- 根据权利要求1所述的方法,其中,所述根据所述环境光参数,调节所述显示装置的屏幕亮度,包括:在所述显示装置的显示屏上,显示预定模式的显示界面。
- 根据权利要求1所述的方法,其中,所述获取所述环境光参数改变后的所述目标对象的人脸图像,包括:获取目标对象的第一图像;对所述第一图像进行图像质量检测,并将将满足质量条件的第一图像确定为所述目标对象的人脸图像。
- 根据权利要求1所述的方法,其中,所述将所述人脸图像与预置图像进行比对,获得比对结果,包括:对所述人脸图像进行活体检测,获得活体检测结果;在所述活体检测结果为活体的情况下,对所述人脸图像中的目标对象进行特征提取处理,获得所述目标对象的人脸特征;将所述目标对象的人脸特征与所述预置图像中的人脸特征进行比对,获得比对结 果。
- 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:在预设时间段内未获取到所述目标对象的人脸图像的情况下,控制切换至待机状态。
- 根据权利要求1至8任一项所述的方法,其中,所述方法还包括:在所述人脸识别结果表征识别成功的情况下,保存所述目标对象的到访记录。
- 根据权利要求1至8任一项所述的方法,其中,所述方法还包括:在所述人脸识别结果表征识别失败的情况下,执行以下处理中的一种:重新获取所述环境光参数改变后的所述目标对象的人脸图像,将所述人脸图像与所述预置图像进行比对,获得比对结果;输出识别失败的通知信息。
- 一种人脸识别装置,应用于人脸识别一体机,所述人脸识别一体机具有显示装置,所述装置包括:第一检测模块,配置为对监控区域的环境光进行检测,获得环境光参数;第二检测模块,配置为响应于在所述监控区域中存在目标对象的情况,对所述目标对象进行移动距离检测;调节模块,配置为在所述环境光参数满足环境光条件且所述目标对象的移动距离大于或等于距离阈值的情况下,根据所述环境光参数,调节所述显示装置的屏幕亮度,以改变所述环境光参数;比对模块,配置为获取所述环境光参数改变后的所述目标对象的人脸图像,并将所述人脸图像与预置图像进行比对,获得比对结果,根据所述比对结果得到人脸识别结果。
- 根据权利要求11所述的装置,其中,所述环境光参数包括环境光的亮度,所述环境光条件包括环境光的亮度小于或等于亮度阈值。
- 根据权利要求11所述的装置,其中,所述调节模块,配置为根据所述环境光参数,确定所述显示装置的显示参数;根据所述显示参数调节所述显示装置的屏幕亮度。
- 根据权利要求13所述的装置,其中,所述显示参数包括显示装置中的调节区域的面积占比,以及所述调节区域的灰度、亮度和色度中的至少一个。
- 根据权利要求11所述的装置,其中,所述调节模块,配置为在所述显示装置的显示屏上,显示预定模式的显示界面。
- 根据权利要求11所述的装置,其中,所述比对模块,配置为获取目标对象的第一图像;对所述第一图像进行图像质量检测,并将将满足质量条件的第一图像确定为所述目标对象的人脸图像。
- 根据权利要求11所述的装置,其中,所述比对模块,配置为对所述人脸图像进行活体检测,获得活体检测结果;在所述活体检测结果为活体的情况下,对所述人脸 图像中的目标对象进行特征提取处理,获得所述目标对象的人脸特征;将所述目标对象的人脸特征与所述预置图像中的人脸特征进行比对,获得比对结果。
- 根据权利要求11至17任一项所述的装置,其中,所述装置还包括控制模块,配置为在预设时间段内未获取到所述目标对象的人脸图像的情况下,控制所述人脸识别一体机切换至待机状态。
- 根据权利要求11至18任一项所述的装置,其中,所述装置还包括存储模块,配置为在所述人脸识别结果表征识别成功的情况下,保存所述目标对象的到访记录。
- 根据权利要求11至18任一项所述的装置,其中,所述装置还包括执行模块,配置为在所述人脸识别结果表征识别失败的情况下,执行以下处理中的一种:重新获取所述环境光参数改变后的所述目标对象的人脸图像,将所述人脸图像与所述预置图像进行比对,获得比对结果;输出识别失败的通知信息。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为运行所述可执行指令时,执行权利要求1至10中任意一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现权利要求1至10中任意一项所述的方法。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SG11202110565RA SG11202110565RA (en) | 2019-07-30 | 2020-04-30 | Face recognition method and apparatus, electronic device, and storage medium |
JP2020572866A JP2022501687A (ja) | 2019-07-30 | 2020-04-30 | 顔認識方法及び装置、電子機器並びに記憶媒体 |
KR1020217013806A KR20210074323A (ko) | 2019-07-30 | 2020-04-30 | 얼굴 인식 방법 및 장치, 전자 기기와 저장 매체 |
US17/481,431 US20220004742A1 (en) | 2019-07-30 | 2021-09-22 | Method for face recognition, electronic equipment, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910695535.8A CN110458062A (zh) | 2019-07-30 | 2019-07-30 | 人脸识别方法及装置、电子设备和存储介质 |
CN201910695535.8 | 2019-07-30 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/481,431 Continuation US20220004742A1 (en) | 2019-07-30 | 2021-09-22 | Method for face recognition, electronic equipment, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021017561A1 true WO2021017561A1 (zh) | 2021-02-04 |
Family
ID=68484038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/088136 WO2021017561A1 (zh) | 2019-07-30 | 2020-04-30 | 人脸识别方法及装置、电子设备和存储介质 |
Country Status (7)
Country | Link |
---|---|
US (1) | US20220004742A1 (zh) |
JP (1) | JP2022501687A (zh) |
KR (1) | KR20210074323A (zh) |
CN (1) | CN110458062A (zh) |
SG (1) | SG11202110565RA (zh) |
TW (1) | TW202105246A (zh) |
WO (1) | WO2021017561A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113792662A (zh) * | 2021-09-15 | 2021-12-14 | 北京市商汤科技开发有限公司 | 图像检测方法、装置、电子设备以及存储介质 |
CN114187691A (zh) * | 2021-12-07 | 2022-03-15 | 城市花园(北京)环境科技有限公司 | 一种磁卡感应式智能设备开闭控制*** |
CN114845052A (zh) * | 2022-04-22 | 2022-08-02 | 杭州海康威视数字技术股份有限公司 | 一种拍摄参数调整方法、装置、摄像机及目标设备 |
WO2022231168A1 (ko) * | 2021-04-30 | 2022-11-03 | 삼성전자 주식회사 | 화면의 색상 반전을 통한 안면 인식 방법 및 장치 |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458062A (zh) * | 2019-07-30 | 2019-11-15 | 深圳市商汤科技有限公司 | 人脸识别方法及装置、电子设备和存储介质 |
CN111144326B (zh) * | 2019-12-28 | 2023-10-27 | 神思电子技术股份有限公司 | 一种用于人机交互的人脸防重识别方法 |
US20230042100A1 (en) * | 2020-01-16 | 2023-02-09 | Nec Corporation | Face authentication apparatus, control method and non-transitory computer-readable storage medium therefor, face authentication gate apparatus, and control method and non-transitory computer-readable storage medium therefor |
CN111652131A (zh) * | 2020-06-02 | 2020-09-11 | 浙江大华技术股份有限公司 | 人脸识别装置及其补光方法、可读存储介质 |
CN111814561A (zh) * | 2020-06-11 | 2020-10-23 | 浙江大华技术股份有限公司 | 人脸识别方法、设备及门禁*** |
CN112016474B (zh) * | 2020-08-31 | 2021-11-09 | 重庆紫光华山智安科技有限公司 | 一种人脸识别方法、装置、设备及计算机可读存储介质 |
CN112052844A (zh) * | 2020-08-31 | 2020-12-08 | 深圳市商汤科技有限公司 | 补光方法及装置、电子设备和存储介质 |
CN112016495A (zh) * | 2020-09-03 | 2020-12-01 | 福建库克智能科技有限公司 | 人脸识别的方法、装置和电子设备 |
CN112183270A (zh) * | 2020-09-18 | 2021-01-05 | 支付宝实验室(新加坡)有限公司 | 身份验证的拍摄参数的优化方法、装置及电子设备 |
CN112418038A (zh) * | 2020-11-13 | 2021-02-26 | 深圳市优必选科技股份有限公司 | 人体检测方法、装置、电子设备及介质 |
CN112435414A (zh) * | 2020-11-23 | 2021-03-02 | 苏州卡创信息科技有限公司 | 一种基于人脸识别的安防监控***及其监控方法 |
CN112597886A (zh) * | 2020-12-22 | 2021-04-02 | 成都商汤科技有限公司 | 乘车逃票检测方法及装置、电子设备和存储介质 |
CN112560775A (zh) * | 2020-12-25 | 2021-03-26 | 深圳市商汤科技有限公司 | 一种开关控制方法、装置、计算机设备及存储介质 |
CN112818885B (zh) * | 2021-02-07 | 2024-05-28 | ***股份有限公司 | 人脸识别方法、装置、设备及存储介质 |
CN112966575B (zh) * | 2021-02-23 | 2023-04-18 | 光控特斯联(重庆)信息技术有限公司 | 一种应用于智慧社区的目标人脸识别方法及装置 |
CN113177524A (zh) * | 2021-05-27 | 2021-07-27 | 浙江大华技术股份有限公司 | 一种门禁设备的控制方法、***及电子设备 |
CN113420712B (zh) * | 2021-07-08 | 2022-02-18 | 杭州比特信息技术有限公司 | 一种人脸识别***及方法 |
CN113705389A (zh) * | 2021-08-13 | 2021-11-26 | 北京市商汤科技开发有限公司 | 人脸识别模组测试方法、装置、存储介质及电子设备 |
CN114092974A (zh) * | 2021-10-25 | 2022-02-25 | 支付宝(杭州)信息技术有限公司 | 身份识别方法、装置、终端以及存储介质 |
CN113933293A (zh) * | 2021-11-08 | 2022-01-14 | 中国联合网络通信集团有限公司 | 浓度检测方法及装置 |
CN115577337A (zh) * | 2021-12-08 | 2023-01-06 | 云丁网络技术(北京)有限公司 | 一种基于人脸识别的智能安防设备控制方法和*** |
CN114779916B (zh) * | 2022-03-29 | 2024-06-11 | 杭州海康威视数字技术股份有限公司 | 一种电子设备屏幕唤醒方法、门禁管理方法及装置 |
CN114596620B (zh) * | 2022-05-10 | 2022-08-05 | 深圳市海清视讯科技有限公司 | 人脸识别设备补光控制方法、装置、设备及存储介质 |
CN114937322B (zh) * | 2022-05-26 | 2023-06-06 | 重庆长安汽车股份有限公司 | 智能汽车开门方法、装置、汽车、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130093962A (ko) * | 2012-02-15 | 2013-08-23 | (주)모빌랩 | 휴대 단말기등의 디스플레이부에서 사용자 편의성을 고려하여 안면 인식을 이용한 소비 전력 저감 방법 및 장치 |
US20150187258A1 (en) * | 2013-12-30 | 2015-07-02 | Samsung Display Co., Ltd. | Display device |
CN109379539A (zh) * | 2018-11-23 | 2019-02-22 | 维沃移动通信有限公司 | 一种屏幕补光方法及终端 |
CN110458062A (zh) * | 2019-07-30 | 2019-11-15 | 深圳市商汤科技有限公司 | 人脸识别方法及装置、电子设备和存储介质 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009026291A (ja) * | 2007-06-19 | 2009-02-05 | Fuji Electric Holdings Co Ltd | 身分照会システム |
CN103093526A (zh) * | 2012-12-25 | 2013-05-08 | 上海交通大学 | 一种情景模式的智能门禁*** |
JP2017173455A (ja) * | 2016-03-22 | 2017-09-28 | キヤノン株式会社 | 情報処理装置、情報処理方法及びプログラム |
CN108875452A (zh) * | 2017-05-11 | 2018-11-23 | 北京旷视科技有限公司 | 人脸识别方法、装置、***和计算机可读介质 |
CN107277388A (zh) * | 2017-07-27 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | 移动终端及其补光方法 |
CN108875334A (zh) * | 2017-09-22 | 2018-11-23 | 北京旷视科技有限公司 | 人脸解锁方法、人脸解锁终端以及非易失性存储介质 |
CN108012083B (zh) * | 2017-12-14 | 2020-02-04 | 深圳云天励飞技术有限公司 | 人脸采集方法、装置及计算机可读存储介质 |
CN108289362A (zh) * | 2017-12-22 | 2018-07-17 | 武汉普利商用机器有限公司 | 一种补光灯自适应控制***与方法 |
CN108269333A (zh) * | 2018-01-08 | 2018-07-10 | 平安科技(深圳)有限公司 | 人脸识别方法、应用服务器及计算机可读存储介质 |
CN108765656A (zh) * | 2018-05-22 | 2018-11-06 | 国政通科技股份有限公司 | 访客验证管理***及方法 |
CN108470169A (zh) * | 2018-05-23 | 2018-08-31 | 国政通科技股份有限公司 | 人脸识别***及方法 |
CN109842738B (zh) * | 2019-01-29 | 2022-05-24 | 北京字节跳动网络技术有限公司 | 用于拍摄图像的方法和装置 |
-
2019
- 2019-07-30 CN CN201910695535.8A patent/CN110458062A/zh active Pending
-
2020
- 2020-04-30 SG SG11202110565RA patent/SG11202110565RA/en unknown
- 2020-04-30 WO PCT/CN2020/088136 patent/WO2021017561A1/zh active Application Filing
- 2020-04-30 JP JP2020572866A patent/JP2022501687A/ja active Pending
- 2020-04-30 KR KR1020217013806A patent/KR20210074323A/ko active Search and Examination
- 2020-06-08 TW TW109119166A patent/TW202105246A/zh unknown
-
2021
- 2021-09-22 US US17/481,431 patent/US20220004742A1/en not_active Abandoned
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130093962A (ko) * | 2012-02-15 | 2013-08-23 | (주)모빌랩 | 휴대 단말기등의 디스플레이부에서 사용자 편의성을 고려하여 안면 인식을 이용한 소비 전력 저감 방법 및 장치 |
US20150187258A1 (en) * | 2013-12-30 | 2015-07-02 | Samsung Display Co., Ltd. | Display device |
CN109379539A (zh) * | 2018-11-23 | 2019-02-22 | 维沃移动通信有限公司 | 一种屏幕补光方法及终端 |
CN110458062A (zh) * | 2019-07-30 | 2019-11-15 | 深圳市商汤科技有限公司 | 人脸识别方法及装置、电子设备和存储介质 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022231168A1 (ko) * | 2021-04-30 | 2022-11-03 | 삼성전자 주식회사 | 화면의 색상 반전을 통한 안면 인식 방법 및 장치 |
CN113792662A (zh) * | 2021-09-15 | 2021-12-14 | 北京市商汤科技开发有限公司 | 图像检测方法、装置、电子设备以及存储介质 |
CN113792662B (zh) * | 2021-09-15 | 2024-05-21 | 北京市商汤科技开发有限公司 | 图像检测方法、装置、电子设备以及存储介质 |
CN114187691A (zh) * | 2021-12-07 | 2022-03-15 | 城市花园(北京)环境科技有限公司 | 一种磁卡感应式智能设备开闭控制*** |
CN114187691B (zh) * | 2021-12-07 | 2022-07-01 | 城市花园(北京)环境科技有限公司 | 一种磁卡感应式智能设备开闭控制*** |
CN114845052A (zh) * | 2022-04-22 | 2022-08-02 | 杭州海康威视数字技术股份有限公司 | 一种拍摄参数调整方法、装置、摄像机及目标设备 |
CN114845052B (zh) * | 2022-04-22 | 2024-03-12 | 杭州海康威视数字技术股份有限公司 | 一种拍摄参数调整方法、装置、摄像机及目标设备 |
Also Published As
Publication number | Publication date |
---|---|
CN110458062A (zh) | 2019-11-15 |
US20220004742A1 (en) | 2022-01-06 |
KR20210074323A (ko) | 2021-06-21 |
SG11202110565RA (en) | 2021-10-28 |
TW202105246A (zh) | 2021-02-01 |
JP2022501687A (ja) | 2022-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017561A1 (zh) | 人脸识别方法及装置、电子设备和存储介质 | |
US9674395B2 (en) | Methods and apparatuses for generating photograph | |
WO2021031609A1 (zh) | 活体检测方法及装置、电子设备和存储介质 | |
US10452890B2 (en) | Fingerprint template input method, device and medium | |
US20170034430A1 (en) | Video recording method and device | |
CN106408603B (zh) | 拍摄方法及装置 | |
CN110287671B (zh) | 验证方法及装置、电子设备和存储介质 | |
WO2016011747A1 (zh) | 肤色调整方法和装置 | |
WO2017096782A1 (zh) | 防止拍照遮挡的方法及装置 | |
CN109934275B (zh) | 图像处理方法及装置、电子设备和存储介质 | |
CN107038428B (zh) | 活体识别方法和装置 | |
CN107122679A (zh) | 图像处理方法及装置 | |
US9924090B2 (en) | Method and device for acquiring iris image | |
CN107463052B (zh) | 拍摄曝光方法及装置 | |
CN109325336B (zh) | 解锁方法、装置及计算机可读存储介质 | |
CN110555930B (zh) | 门锁控制方法及装置、电子设备和存储介质 | |
CN110532957B (zh) | 人脸识别方法及装置、电子设备和存储介质 | |
CN107025441B (zh) | 肤色检测方法及装置 | |
CN104020628A (zh) | 闪光灯的提醒方法及装置 | |
CN105516588A (zh) | 拍摄处理方法及装置 | |
US20170244891A1 (en) | Method for automatically capturing photograph, electronic device and medium | |
CN109145878B (zh) | 图像提取方法及装置 | |
US10846513B2 (en) | Method, device and storage medium for processing picture | |
CN110969067B (zh) | 用户注册、认证方法及装置 | |
CN109598183B (zh) | 一种人脸认证的方法、装置及*** |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2020572866 Country of ref document: JP Kind code of ref document: A |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20847779 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 20217013806 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20847779 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.08.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20847779 Country of ref document: EP Kind code of ref document: A1 |