[go: up one dir, main page]

CN114419713B - Auxiliary method for face recognition, face recognition method and terminal device - Google Patents

Auxiliary method for face recognition, face recognition method and terminal device Download PDF

Info

Publication number
CN114419713B
CN114419713B CN202210068057.XA CN202210068057A CN114419713B CN 114419713 B CN114419713 B CN 114419713B CN 202210068057 A CN202210068057 A CN 202210068057A CN 114419713 B CN114419713 B CN 114419713B
Authority
CN
China
Prior art keywords
face
image
faces
distribution
face image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210068057.XA
Other languages
Chinese (zh)
Other versions
CN114419713A (en
Inventor
徐崴
李亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202210068057.XA priority Critical patent/CN114419713B/en
Publication of CN114419713A publication Critical patent/CN114419713A/en
Application granted granted Critical
Publication of CN114419713B publication Critical patent/CN114419713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks

Landscapes

  • Collating Specific Patterns (AREA)
  • Image Analysis (AREA)

Abstract

The application provides a face recognition auxiliary method, a face recognition method and terminal equipment, wherein the face recognition auxiliary method comprises the steps of obtaining a face image to be recognized; and executing reminding operation corresponding to the face distribution based on the face distribution in the face image when the face distribution is abnormal.

Description

Face recognition assisting method, face recognition method and terminal equipment
The patent application is a divisional application of Chinese patent application with the application number 2018110274913, the application date 2018, 9 and 4, and the invention name of 'an auxiliary method for face recognition, a face recognition method and terminal equipment'.
Technical Field
The embodiment of the specification relates to the technical field of face recognition, in particular to a face recognition assisting method, a face recognition method and terminal equipment.
Background
With the rapid development of various payment technologies, face payments have been made in order to greatly simplify the payment process. Face payment is a new electronic payment mode, and the payment mode consists of two parts, namely, face recognition logging in a user wallet account and deduction from the wallet to complete the payment process. The face recognition login process of the user wallet account is to scan and/or shoot a face picture of the user, compare the face picture with a reserved picture in the user wallet account to complete identification and verification of the user identity, and therefore payment is completed by deducting money from the wallet. However, in the current face payment mode, a plurality of interference factors can exist in the process of scanning and/or shooting the face picture of the user to influence the selection of the real user, so that the accuracy of the user selection is influenced, and the safety is poor.
Disclosure of Invention
The embodiment of the specification provides a face recognition auxiliary method, a face recognition method and terminal equipment, which are used for prompting a guiding user to remove interference factors, so that the accuracy of face image selection of the user is improved.
The embodiment of the specification adopts the following technical scheme:
in a first aspect, there is provided an assistance method for face recognition, including:
acquiring a face image to be recognized;
Acquiring face distribution in the face image;
and when the face distribution is abnormal, executing reminding operation corresponding to the face distribution based on the face distribution in the face image.
In a second aspect, a face recognition method is provided, including:
acquiring an image comprising a plurality of faces;
selecting at least one face image from the images of the plurality of faces;
comparing the at least one face image with a face image of the target user;
And determining whether the identification is successful or not based on the comparison result.
In a third aspect, there is provided a terminal device comprising:
the first acquisition module is used for acquiring a face image to be identified;
the second acquisition module is used for acquiring face distribution in the face image;
And the execution module is used for executing reminding operation corresponding to the face distribution based on the face distribution in the face image when the face distribution is abnormal.
In a fourth aspect, there is provided a terminal device, including:
the acquisition module is used for acquiring images comprising a plurality of faces;
A selection module for selecting at least one face image from the plurality of face images;
The comparison module is used for comparing the face image with the face image of the target user based on the at least one face image;
and the determining module is used for determining whether the identification is successful or not based on the comparison result.
In a fifth aspect, there is provided a terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of:
acquiring a face image to be recognized;
Acquiring face distribution in the face image;
and when the face distribution is abnormal, executing reminding operation corresponding to the face distribution based on the face distribution in the face image.
In a sixth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a face image to be recognized;
Acquiring face distribution in the face image;
and when the face distribution is abnormal, executing reminding operation corresponding to the face distribution based on the face distribution in the face image.
In a seventh aspect, there is provided a terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of:
acquiring an image comprising a plurality of faces;
selecting at least one face image from the images of the plurality of faces;
comparing the at least one face image with a face image of the target user;
And determining whether the identification is successful or not based on the comparison result.
In an eighth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring an image comprising a plurality of faces;
selecting at least one face image from the images of the plurality of faces;
comparing the at least one face image with a face image of the target user;
And determining whether the identification is successful or not based on the comparison result.
The above at least one technical scheme adopted by the embodiment of the application can achieve the following beneficial effects:
According to the embodiment of the application, the face distribution in the face image is obtained, and the reminding operation corresponding to the face distribution is executed based on the face distribution in the face image when the face distribution is abnormal, so that a user can adjust according to the reminding to remove interference factors, and the accuracy of the face image selection of the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a flowchart of an auxiliary method for face recognition according to an embodiment of the present disclosure;
Fig. 2 is a schematic implementation diagram of an actual application scenario of an auxiliary method for face recognition according to an embodiment of the present disclosure;
fig. 3 is a system block diagram of an actual application scenario of an auxiliary method for face recognition according to an embodiment of the present disclosure;
Fig. 4 is a flowchart of a face recognition method according to an embodiment of the present disclosure;
fig. 5 is one of the block diagrams of the terminal device provided in one embodiment of the present disclosure;
Fig. 6 is a second block diagram of a terminal device according to an embodiment of the present disclosure;
fig. 7 is a third block diagram of a terminal device according to an embodiment of the present disclosure;
fig. 8 is a fourth block diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a face recognition auxiliary method and terminal equipment, which are used for prompting a guiding user to remove interference factors, so that the accuracy of face image selection of the user is improved. The embodiment of the application provides an auxiliary method for face recognition, and an execution subject of the method can be but is not limited to terminal equipment or a device or a system capable of being configured to execute the method provided by the embodiment of the application.
For convenience of description, hereinafter, embodiments of the method will be described taking an execution body of the method as an example of a terminal device capable of executing the method. It will be appreciated that the subject of execution of the method is a terminal device which is merely an exemplary illustration and should not be construed as limiting the method.
Fig. 1 is a flowchart of an auxiliary method for face recognition according to an embodiment of the present application, where the method of fig. 1 may be performed by a terminal device, as shown in fig. 1, and the method may include:
Step 110, acquiring a face image to be recognized.
The implementation manner of acquiring the face image to be identified may be to acquire the face image to be identified by a scanning manner or acquire the face image to be identified by a shooting manner. The embodiment of the present application is not particularly limited.
And 120, acquiring face distribution in the face image.
The method for acquiring the face distribution in the face image can be specifically realized by detecting whether the acquired face image contains a face or not through a preset algorithm, detecting the number of faces if the face image contains the face, and detecting whether the acquired face image contains an incomplete face image or not through the preset algorithm.
And 130, executing reminding operation corresponding to the face distribution based on the face distribution in the face image when the face distribution is abnormal.
The abnormal face distribution may include at least one of the absence of a face in the face image, the presence of at least two faces in the face image, the presence of at least two largest-sized faces in the face image, and the characteristic information of the faces in the face image not satisfying a predetermined condition.
According to the embodiment of the application, the face distribution in the face image is obtained, and the reminding operation corresponding to the face distribution is executed based on the face distribution in the face image when the face distribution is abnormal, so that a user can adjust according to the reminding to remove interference factors, and the accuracy of the face image selection of the user is improved.
Alternatively, as an embodiment, step 120 may be specifically implemented as:
taking the face image as input of a multi-face detection model to obtain output face distribution;
the multi-face detection model is obtained by training based on face image samples with abnormal face distribution.
The face image sample with abnormal face distribution can comprise at least one of a face image sample without a face, a face image sample with at least two faces and a face image sample with incomplete faces.
It is assumed that the face image samples having abnormal face distribution include a face image sample having no face and a face image sample having at least two faces, and the face image samples having normal face distribution include a face image sample having one face.
The multi-face detection model can be obtained by firstly, roughly including 3 types of face image samples in training data, respectively selecting one thousand images under the same category for a face image sample without a face, a face image sample with at least two faces and a face image sample with one face, and then training the 3 categories for one thousand face image samples to obtain the multi-face detection model. How to train and obtain the multi-face detection model through one thousand face image samples of 3 categories belongs to the prior art, and the embodiment of the application is not repeated.
According to the embodiment of the application, the multi-face detection model is obtained through training the face image sample with abnormal face distribution, the face image is used as the input of the multi-face detection model to obtain the output face distribution, whether the interference factor exists in the face image is determined according to whether the face distribution is abnormal or not, the influence of the interference factor exists in the acquired face image is effectively avoided, the success rate of user identity authentication and face payment by adopting the face image in the follow-up process is further ensured, and the usability and safety of lose face payment flow are ensured.
Optionally, as an embodiment, if the face distribution abnormality includes that no face exists in the face image, executing a reminding operation corresponding to the face distribution, including:
and reminding a user to be positioned in an image acquisition area of an image acquisition device of the terminal equipment based on the fact that no human face exists in the human face image.
It should be understood that after step 120 is performed, the face recognition assisting method provided by the embodiment of the present application further includes determining whether the face distribution is abnormal, that is, determining whether there are faces in the face image, if there are at least two faces in the face image, determining whether there are at least two faces in the face image, and if there are no faces, prompting the user to locate in an image acquisition area of an image acquisition device of the terminal device.
In the embodiment of the application, if no human face exists in the human face image, a reminding operation corresponding to human face distribution is executed to remind a user that the human face is not detected and guide the user to adjust the standing position so as to accurately acquire the human face image of the user.
It should be appreciated that when there are multiple faces in the image acquisition region, there may or may not be interference with the face recognition.
Optionally, as an embodiment, if the face distribution abnormality includes that at least two faces exist in the face image, executing a reminding operation corresponding to the face distribution, including:
and prompting a user to ensure that no other user exists in the acquisition area of the image acquisition device of the terminal equipment if at least two faces exist in the face image and the difference between the largest two face sizes is smaller than a preset threshold value.
It should be understood that after step 120 is performed, the face recognition assistance method provided by the embodiment of the present application further includes determining whether at least two faces exist in the face image, and if so, determining whether a difference between sizes of two largest faces in the face image is greater than a predetermined threshold. If it is determined that the difference between the two faces with the largest sizes in the face image is greater than a preset threshold, reminding operation is to remind a user to ensure that no other user operation exists in the acquisition area of the image acquisition device of the terminal equipment. For example, the user is reminded of "please ensure that there are no other people around you when brushing the face in order to ensure payment security".
For example, if the user stands side by side with other users (such as friends, relatives or strangers) in the image acquisition area of the image acquisition device of the terminal device, there are at least two faces with the largest size in the face image acquired by the image acquisition device.
According to the embodiment of the application, when two largest faces with similar sizes exist in the face image, other users are reminded of existing around the user, and the user is guided to clear the other users around the user, so that the accuracy of the acquired face image is ensured, and the payment safety of lose face is ensured.
Optionally, as an embodiment, if the face distribution abnormality includes that at least two faces exist in the face image, executing a reminding operation corresponding to the face distribution, including:
selecting the face with the largest size in the face image;
determining whether the feature information of the face with the largest size meets the face recognition comparison condition;
If the distance between the terminal equipment and the image acquisition device is not satisfied, reminding the user to keep a preset distance from the terminal equipment.
For example, if the user stands in the image acquisition area of the image acquisition device of the terminal device with other users (such as friends, relatives or strangers) and back and forth, there are at least two faces in the face image acquired by the image acquisition device. The at least two faces are different in size due to different distances from the image acquisition device. At this time, since the user is located at the nearest position of the image capturing device in actual operation, the size of the face image of the user is usually the largest.
The feature information of the face may refer to size information of the face, position information of the face on a terminal screen, and the like. Accordingly, the face recognition comparison condition is used for representing the condition that the face recognition comparison is satisfied, for example, the face recognition comparison condition is the size range of the face.
The face with the largest size is the face with the largest weighted size, and the face with the largest weighted size is obtained based on the size of a face detection frame and the distance from the center of the face detection frame to the center of a screen of the terminal equipment. It should be understood that, based on the size of the face detection frame, the result of the face detection frame center to the screen center distance of the terminal device after the face detection frame center to the screen center distance is inversely weighted (i.e., the smaller the face detection frame center to the screen center distance is weighted the greater the distance is weighted the smaller the distance), and the mathematical expression is that the weighted face size = the face detection frame size/the face detection frame center to the screen center distance.
The embodiment of the application selects the face with the largest size in the face image, determines whether the characteristic information of the face with the largest size meets the face recognition comparison condition, if not, reminds the user of keeping a preset distance from the image acquisition device of the terminal equipment so as to remind the user that the face image selected by the user does not meet the face recognition comparison condition, and guides the user to adjust the position of the image acquisition area of the image acquisition device and the distance from the image acquisition device so as to encourage the user to be positioned at the appointed position of the image acquisition area of the image acquisition device when the user is lose face so as to facilitate the subsequent processing.
Optionally, as an embodiment, when a detection result of the specified detection operation is normal, the face recognition assisting method provided by the embodiment of the present application may further include:
determining whether a face exists in the face image, if so, determining whether characteristic information of the face meets the face recognition comparison condition, if not, reminding a user of keeping a preset distance from an image acquisition device of the terminal equipment, and if so, sending the face image to be recognized to the recognition terminal equipment.
It can be understood that whether the characteristic information of the face meets the face recognition comparison condition is determined, and if so, the face image to be recognized is sent to the recognition terminal device. The identification terminal equipment can compare the face image with a pre-stored face image, and if the similarity value of the face image and the pre-stored face image is larger than a preset value, the identification terminal equipment determines that the user identity authentication passes and deducts money from a wallet to finish payment operation. The predetermined value needs to be set according to actual requirements, and the embodiment of the application is not particularly limited.
The identification terminal equipment can be used for comparing the face image with a pre-stored face image, and can be specifically realized by acquiring the image information of a face area of the face image and the image information of the face area of the pre-stored face image, comparing the two image information, and determining the similarity value of the face image and the pre-stored face image based on the similar characteristics in the two image information. The pre-stored face image may be a face image corresponding to a user wallet account stored in the identification terminal device in advance, or may be a face image obtained from an official network system according to a user identification card number corresponding to the user wallet account.
According to the embodiment of the application, when the face distribution of the face image is normal, the face image to be identified is sent to the identification terminal equipment, and the identification terminal equipment performs user identity authentication and face payment based on the face image to be identified, so that the success rate of performing user identity authentication and face payment by adopting the face image is ensured.
The method of the embodiments of the present application will be further described with reference to specific examples.
Fig. 2 shows a flowchart of the method for assisting face recognition provided by the embodiment of the application in an actual application scenario, and fig. 3 shows a system block diagram of the method for assisting face recognition provided by the embodiment of the application in an actual application scenario;
Exemplary, the face recognition of the user logs into the wallet account for face payment, as shown in fig. 2 and 3:
At 200, the user is prompted on the terminal device 1 to enter a user handset number. After the user inputs the mobile phone number on the terminal device 1, the terminal device 1 sends the mobile phone number of the user to the identification terminal device.
At 210, the identification terminal device 2 receives the user mobile phone number, searches the user wallet account based on the user mobile phone number, if so, executes step 230, otherwise, executes step 220.
At 220, the identification terminal device 2 prompts the user for new user registration.
At 230, the terminal device 1 acquires a face image.
At 240, the terminal device 1 acquires a face image to be recognized.
At 250, the terminal device 1 obtains the face distribution in the face image, and determines whether the face distribution in the face image is abnormal, and in an exemplary case, whether a face exists in the face image, if so, step 260 is executed, and if not, step 251 is executed.
The terminal device 1 obtains the face distribution in the face image, and determines whether the face distribution in the face image is abnormal, and for example, whether the face image exists in the face image, the specific implementation can participate in the related content in the above embodiment, and the embodiments of the present application are not repeated.
At 251, the terminal device 1 performs a reminder operation corresponding to the face distribution, illustratively, a reminder user located in an image acquisition area of an image acquisition apparatus of the terminal device.
At 260, the terminal device 1 obtains the face distribution in the face image, and determines whether the face distribution in the face image is abnormal, and in an exemplary case, whether there are at least two faces in the face image, if so, step 270 is performed.
At 270, the terminal device 1 obtains the face distribution in the face image, and determines whether the face distribution in the face image is abnormal, and in an exemplary case, whether there are at least two faces with the largest size in the face image, if not, step 280 is executed, and if so, step 271 is executed.
It should be understood that the presence of at least two largest faces in the face image means that the sizes of the at least two largest faces present in the face image are similar.
At 271, the terminal device 1 performs a reminder operation corresponding to the face distribution, and illustratively, the reminder user ensures that no other user is present in the acquisition area of the image acquisition apparatus of the terminal device.
In 280, the terminal device 1 selects the face with the largest size in the face image, determines whether the feature information of the face with the largest size meets the face recognition comparison condition, if not, executes the step 281, otherwise, executes the step 290.
At 281, the terminal device 1 performs a reminding operation corresponding to the face distribution, and illustratively, reminds the user to keep a predetermined distance from the image pickup apparatus of the terminal device.
At 290, comparing the face image with a pre-stored face image;
at 291, the user's identity is authenticated and payment is made from the wallet.
According to the embodiment of the application, the face distribution in the face image is obtained, and the reminding operation corresponding to the face distribution is executed based on the face distribution in the face image when the face distribution is abnormal, so that a user can adjust according to the reminding to remove interference factors, and the accuracy of the face image selection of the user is improved.
The embodiment of the application provides a face recognition method and terminal equipment, which are used for prompting a guiding user to remove interference factors, so that the accuracy of face image selection of the user is improved. The embodiment of the application provides a face recognition method, and an execution subject of the method can be, but is not limited to, terminal equipment or a device or a system capable of being configured to execute the method provided by the embodiment of the application.
For convenience of description, hereinafter, embodiments of the method will be described taking an execution body of the method as an example of a terminal device capable of executing the method. It will be appreciated that the subject of execution of the method is a terminal device which is merely an exemplary illustration and should not be construed as limiting the method.
Fig. 4 is a flowchart of a face recognition method provided by an embodiment of the present application, where the method of fig. 4 may be performed by a terminal device, as shown in fig. 4, and the method may include:
step 410, an image including a plurality of faces is acquired.
The implementation of acquiring the image including the plurality of faces may be acquiring the image including the plurality of faces by scanning or acquiring the image including the plurality of faces by photographing. The embodiment of the present application is not particularly limited.
Step 420, selecting at least one face image from the plurality of face images.
The selection criteria for selecting at least one face image from the plurality of face images may be set according to actual requirements, and the embodiment of the present application is not particularly limited.
Step 430, comparing the face image with the face image of the target user based on the at least one face image.
Step 440, determining whether the identification is successful based on the comparison result.
According to the embodiment of the application, the images comprising the plurality of faces are collected, at least one face image is selected from the images of the plurality of faces, the at least one face image is compared with the face image of the target user, whether the identification is successful or not is determined based on the comparison result, so that whether the face image which can be successfully identified exists in the images comprising the plurality of faces is identified, the success rate of user identity authentication and face payment by adopting the face image is ensured, the whole face payment process can be successfully completed by the subsequent user, and the full-link passing rate is improved. Meanwhile, the method is a process for helping the user learn to use the face payment, so that the user can feel the intelligence of the face payment and is beneficial to the popularization of the face payment due to the unique user experience.
Alternatively, as an embodiment, step 410 may be specifically implemented as:
and acquiring a plurality of faces simultaneously to acquire images including the plurality of faces.
Illustratively, when a plurality of users are located within an image acquisition area of an image acquisition apparatus of a terminal device, faces of the plurality of users are simultaneously acquired.
Alternatively, as an embodiment, step 430 may be specifically implemented as:
And sending the identification of the target user and the characteristic information of the at least one face image to a server so as to compare the face characteristic information of the target user existing on the server through the server.
It should be understood that the server compares the feature information of the at least one face image with the face feature information corresponding to the identification of the target user.
The method comprises the steps of obtaining feature information of at least one face image and pre-stored face feature information of a target user, comparing the two pieces of information, and determining a similarity value of the at least one face image and the pre-stored face image of the target user based on similar features in the two pieces of information. The pre-stored face image of the target user may be a face image corresponding to the user wallet account pre-stored in the identification terminal device, or may be a face image obtained from an official network system according to a user identification card number corresponding to the user wallet account.
According to the embodiment of the application, the identification of the target user and the characteristic information of at least one face image are sent to the server, so that the face characteristic information of the target user on the server is compared through the server, and the identification terminal equipment performs user identity authentication and face payment based on the characteristic information of the at least one face image, thereby ensuring the success rate of performing user identity authentication and face payment by adopting the face image.
Alternatively, as an embodiment, step 420 may be specifically implemented as:
And if the face with the largest size exists in the images of the faces, selecting the face image with the largest size.
For example, if the user stands in the image acquisition area of the image acquisition device of the terminal device with other users (such as friends, relatives or strangers) and back and forth, there are at least two faces in the face image acquired by the image acquisition device. The at least two faces are different in size due to different distances from the image acquisition device. At this time, since the user is located at the nearest position of the image capturing device in actual operation, the size of the face image of the user is usually the largest.
The face with the largest size is the face with the largest weighted size, and the face with the largest weighted size is obtained based on the size of a face detection frame and the distance from the center of the face detection frame to the center of a screen of the terminal equipment. It should be understood that, based on the size of the face detection frame, the result of the face detection frame center to the screen center distance of the terminal device after the face detection frame center to the screen center distance is inversely weighted (i.e., the smaller the face detection frame center to the screen center distance is weighted the greater the distance is weighted the smaller the distance), and the mathematical expression is that the weighted face size = the face detection frame size/the face detection frame center to the screen center distance.
According to the embodiment of the application, the largest-sized face exists in the images of the plurality of faces, so that a user can be encouraged to be positioned at the appointed position of the image acquisition area of the image acquisition device when lose face is performed, and the subsequent processing is facilitated.
Optionally, as an embodiment, before executing step 420, the face recognition method provided by the embodiment of the present application further includes:
And if at least two face images exist in the images of the plurality of faces and the difference between the sizes of the two face images with the largest size in the at least two face images is smaller than a preset threshold value, executing reminding operation.
For example, if the user stands in the image acquisition area of the image acquisition device of the terminal device side by side with other users (such as friends, relatives or strangers), there are at least two faces in the face image acquired by the image acquisition device, and the two faces with the largest size are close in size.
For example, the reminding operation may be an operation for reminding the user to ensure that no other user exists in the acquisition area of the image acquisition device of the terminal device, for example, remind the user to "please ensure that there are no other people around you when brushing the face in order to ensure payment security".
According to the embodiment of the application, when at least two face images exist in the face images and the sizes of the two faces with the largest size are close, reminding operation is performed to remind other users around the user, and the user is guided to clear the other users around the user, so that the accuracy of the acquired face images is ensured, and the payment safety of lose face is ensured.
The above-mentioned details of the face recognition assistance method according to the embodiment of the present application are described with reference to fig. 1 to 3, and the following details of the terminal device according to the embodiment of the present application are described with reference to fig. 5.
Fig. 5 shows a schematic structural diagram of a terminal device according to an embodiment of the present application, and as shown in fig. 5, the terminal device 500 may include:
a first obtaining module 510, configured to obtain a face image to be identified;
a second obtaining module 520, configured to obtain a face distribution in the face image;
And an execution module 530, configured to execute, when the face distribution is abnormal, a reminder operation corresponding to the face distribution based on the face distribution in the face image.
In one embodiment, the second obtaining module 520 includes:
The input unit is used for taking the face image as the input of the multi-face detection model so as to obtain the output face distribution;
the multi-face detection model is obtained by training based on face image samples with abnormal face distribution.
In one embodiment, the abnormal face distribution comprises at least one of the absence of a face in the face image, the presence of at least two faces in the face image, the presence of at least two largest-sized faces in the face image, and the fact that characteristic information of the faces in the face image does not meet a predetermined condition.
In one embodiment, if the face distribution anomaly includes that no face exists in the face image, the executing module 530 includes:
The first reminding unit is used for reminding the user to be positioned in the image acquisition area of the image acquisition device of the terminal equipment based on the fact that no face exists in the face image.
In one embodiment, if the face distribution anomaly includes at least two faces in the face image, the executing module 530 includes:
A first determining unit, configured to determine whether at least two faces exist in the face image, and a difference between sizes of two faces with a largest size is smaller than a predetermined threshold;
And the second reminding unit is used for reminding the user to ensure that no other user exists in the acquisition area of the image acquisition device of the terminal equipment if the first determining unit determines that at least two faces exist in the face image and the difference between the sizes of the two faces with the largest size is smaller than the preset threshold value.
In one embodiment, if the face distribution anomaly includes at least two faces in the face image, the executing module 530 includes:
the selecting unit is used for selecting the face with the largest size in the face image;
the second determining unit is used for determining whether the feature information of the face with the largest size meets the face recognition comparison condition;
And the third reminding unit is used for reminding the user of keeping a preset distance with the image acquisition device of the terminal equipment if the second determining unit determines that the characteristic information of the face with the largest size does not meet the face recognition comparison condition.
In one embodiment, the face with the largest size is a face with the largest weighted size, and the face with the largest weighted size is obtained based on the size of the face detection frame and the distance from the center of the face detection frame to the center of the screen of the terminal device.
According to the embodiment of the application, the face distribution in the face image is obtained, and the reminding operation corresponding to the face distribution is executed based on the face distribution in the face image when the face distribution is abnormal, so that a user can adjust according to the reminding to remove interference factors, and the accuracy of the face image selection of the user is improved.
The face recognition method according to the embodiment of the present application is described in detail above with reference to fig. 4, and the terminal device according to the embodiment of the present application is described in detail below with reference to fig. 6.
Fig. 6 shows a schematic structural diagram of a terminal device according to an embodiment of the present application, and as shown in fig. 6, the terminal device 600 may include:
An acquisition module 610 for acquiring an image including a plurality of faces;
a selection module 620, configured to select at least one face image from the images of the faces;
A comparing module 630, configured to compare the at least one face image with a face image of the target user;
a determining module 640, configured to determine whether the identification is successful based on the comparison result.
According to the embodiment of the application, the images comprising the plurality of faces are collected, at least one face image is selected from the images of the plurality of faces, the at least one face image is compared with the face image of the target user, whether the identification is successful or not is determined based on the comparison result, so that whether the face image which can be successfully identified exists in the images comprising the plurality of faces is identified, the success rate of user identity authentication and face payment by adopting the face image is ensured, the whole face payment process can be successfully completed by the subsequent user, and the full-link passing rate is improved.
The scheme of the embodiment of the application is also a process for helping the user learn to use the face payment, so that the user can feel the intelligence of the face payment and is beneficial to the popularization of the face payment because of the unique user experience.
In one embodiment, the acquisition module 610 includes:
The system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for simultaneously acquiring a plurality of faces so as to acquire images comprising the faces.
In one embodiment, the comparison module 630 includes:
and the sending unit is used for sending the identification of the target user and the characteristic information of the at least one face image to a server so as to compare the face characteristic information of the target user existing on the server through the server.
In one embodiment, the selection module 620 includes:
and the selection unit is used for selecting the face image with the largest size if the face with the largest size exists in the images of the plurality of faces.
In one embodiment, the terminal device 600 further comprises:
and the execution module 650 is configured to execute a reminding operation if at least two face images exist in the images of the faces, and a difference between sizes of two largest face images in the at least two face images is smaller than a predetermined threshold.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. Referring to fig. 7, at the hardware level, the terminal device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the terminal device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 7, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for associating the resource value-added object with the resource object on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
acquiring a face image to be recognized;
Acquiring face distribution in the face image;
and when the face distribution is abnormal, executing reminding operation corresponding to the face distribution based on the face distribution in the face image.
According to the embodiment of the application, the face distribution in the face image is obtained, and the reminding operation corresponding to the face distribution is executed based on the face distribution in the face image when the face distribution is abnormal, so that a user can adjust according to the reminding to remove interference factors, and the accuracy of the face image selection of the user is improved.
The above-described face recognition assisting method disclosed in the embodiment shown in fig. 1 of the present specification may be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor including a central processing unit (Central Processing Unit, CPU), a network Processor (Network Processor, NP), etc., or may be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in one or more embodiments of the present description may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The terminal device may also execute the face recognition assisting method executed by the face recognition assisting system of fig. 7, which is not described in detail herein.
Of course, in addition to the software implementation, the terminal device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or a logic device.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. Referring to fig. 8, at the hardware level, the terminal device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the terminal device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 8, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for associating the resource value-added object with the resource object on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
acquiring an image comprising a plurality of faces;
selecting at least one face image from the images of the plurality of faces;
comparing the at least one face image with a face image of the target user;
And determining whether the identification is successful or not based on the comparison result.
According to the embodiment of the application, the images comprising the plurality of faces are collected, at least one face image is selected from the images of the plurality of faces, the at least one face image is compared with the face image of the target user, whether the identification is successful or not is determined based on the comparison result, so that whether the face image which can be successfully identified exists in the images comprising the plurality of faces is identified, the success rate of user identity authentication and face payment by adopting the face image is ensured, the whole face payment process can be successfully completed by the subsequent user, and the full-link passing rate is improved. Meanwhile, the method is a process for helping the user learn to use the face payment, so that the user can feel the intelligence of the face payment and is beneficial to the popularization of the face payment due to the unique user experience.
The face recognition method disclosed in the embodiment shown in fig. 4 of the present specification can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor including a central processing unit (Central Processing Unit, CPU), a network Processor (Network Processor, NP), etc., or may be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in one or more embodiments of the present description may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The terminal device may also perform the face recognition method performed by the face recognition system of fig. 8, which is not described herein.
Of course, in addition to the software implementation, the terminal device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or a logic device.
The embodiments of the present disclosure further provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements each process of each method embodiment described above, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein. The computer readable storage medium is, for example, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk or an optical disk.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (17)

1.一种人脸识别的辅助方法,应用于终端设备,所述方法包括:1. A face recognition auxiliary method, applied to a terminal device, the method comprising: 获取包括多个人脸的待识别的人脸图像;Acquire a facial image to be recognized that includes multiple faces; 获取所述人脸图像中的人脸分布;Obtaining distribution of faces in the face image; 当所述人脸分布异常时,基于所述人脸图像中的人脸分布,执行与所述人脸分布相应的提醒操作,其中,所述人脸分布异常包括所述人脸图像中存在大小相近的至少两个人脸,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值。When the face distribution is abnormal, a reminder operation corresponding to the face distribution is performed based on the face distribution in the face image, wherein the face distribution abnormality includes the presence of at least two faces of similar size in the face image, and the sizes of the at least two faces are the ratio of the corresponding face detection frame size to the distance from the center of the face detection frame to the center of the screen. 2.如权利要求1所述的方法,获取所述人脸图像中的人脸分布,包括:2. The method according to claim 1, obtaining the face distribution in the face image, comprising: 将所述人脸图像作为多人脸检测模型的输入,以得到输出的人脸分布;Using the face image as input to a multi-face detection model to obtain an output face distribution; 其中,所述多人脸检测模型是基于具有人脸分布异常的人脸图像样本训练得到的。The multi-face detection model is trained based on face image samples with abnormal face distribution. 3.如权利要求1或2所述的方法,3. The method according to claim 1 or 2, 所述人脸分布异常还包括:所述人脸图像中不存在人脸、所述人脸图像中存在至少两个人脸和所述人脸图像中人脸的特征信息不满足预定条件中的至少一种。The abnormal face distribution also includes at least one of: no face exists in the face image, at least two faces exist in the face image, and feature information of the face in the face image does not meet a predetermined condition. 4.如权利要求3所述的方法,若所述人脸分布异常包括所述人脸图像中不存在人脸,则执行与所述人脸分布相应的提醒操作,包括:4. The method according to claim 3, if the abnormal face distribution includes that there is no face in the face image, then executing a reminder operation corresponding to the face distribution, comprising: 基于所述人脸图像中不存在人脸,提醒用户位于终端设备的图像采集装置的图像采集区域中。Based on the absence of a human face in the facial image, the user is reminded that he is in an image acquisition area of an image acquisition device of a terminal device. 5.如权利要求1所述的方法,若所述人脸分布异常包括所述人脸图像中存在大小相近的至少两个人脸,则执行与所述人脸分布相应的提醒操作,包括:5. The method according to claim 1, wherein if the abnormal face distribution includes at least two faces of similar size in the face image, performing a reminder operation corresponding to the face distribution comprises: 若所述至少两个人脸中尺寸最大的两个人脸大小之差小于预定阈值,则提醒用户确保终端设备的图像采集装置的采集区域中不存在其他用户。If the difference between the two largest human faces among the at least two human faces is smaller than a predetermined threshold, the user is reminded to ensure that there are no other users in the acquisition area of the image acquisition device of the terminal device. 6.如权利要求3所述的方法,若所述人脸分布异常包括所述人脸图像中存在至少两个人脸,则执行与所述人脸分布相应的提醒操作,包括:6. The method according to claim 3, if the abnormal face distribution includes at least two faces in the face image, performing a reminder operation corresponding to the face distribution, comprising: 选取所述人脸图像中尺寸最大的人脸;Selecting the largest face in the face image; 确定所述尺寸最大的人脸的特征信息是否满足人脸识别比对条件;Determine whether the feature information of the largest face satisfies face recognition comparison conditions; 若不满足,则提醒用户与终端设备的图像采集装置保持预定距离。If not, the user is reminded to keep a predetermined distance from the image acquisition device of the terminal device. 7.一种人脸识别方法,包括:7. A face recognition method, comprising: 采集包括多个人脸的图像;capturing an image including a plurality of faces; 若所述多个人脸的图像中存在大小相近的至少两个人脸,则执行提醒操作,其中,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值;If there are at least two faces of similar size in the images of the multiple faces, a reminder operation is performed, wherein the size of the at least two faces is a ratio of the size of the corresponding face detection frame to the distance from the center of the face detection frame to the center of the screen; 基于所述图像中的各人脸大小从所述多个人脸的图像中选择至少一个人脸图像;selecting at least one face image from the plurality of face images based on the size of each face in the image; 基于所述至少一个人脸图像与目标用户的人脸图像进行对比;Based on the at least one facial image, a comparison is performed with a facial image of a target user; 基于对比结果确定是否识别成功。Determine whether the recognition is successful based on the comparison result. 8.如权利要求7所述的方法,所述采集包括多个人脸的图像,包括:8. The method of claim 7, wherein collecting images including a plurality of faces comprises: 同时采集多个人脸,以获取包括所述多个人脸的图像。A plurality of human faces are collected simultaneously to obtain an image including the plurality of human faces. 9.如权利要求7所述的方法,所述基于所述至少一个人脸图像与目标用户的人脸图像进行对比,包括:9. The method according to claim 7, wherein the step of comparing the at least one facial image with a facial image of a target user comprises: 将目标用户的标识和所述至少一个人脸图像的特征信息发送到服务器,以通过所述服务器比对存在所述服务器上的所述目标用户的人脸特征信息。The identification of the target user and the feature information of the at least one facial image are sent to the server, so that the facial feature information of the target user stored on the server is compared by the server. 10.如权利要求7所述的方法,所述从所述多个人脸的图像中选择至少一个人脸图像,包括:10. The method according to claim 7, wherein selecting at least one face image from the plurality of face images comprises: 若所述多个人脸的图像中存在尺寸最大的人脸,则选择所述尺寸最大的人脸图像。If there is a face with the largest size among the multiple face images, the face image with the largest size is selected. 11.如权利要求7所述的方法,若所述多个人脸的图像中存在大小相近的至少两个人脸,则执行提醒操作,包括:11. The method according to claim 7, wherein if there are at least two faces of similar size in the plurality of face images, performing a reminder operation comprises: 若所述多个人脸的图像中存在大小相近的至少两个人脸,且所述至少两个人脸中尺寸最大的两个人脸的大小之差小于预定阈值,则执行提醒操作。If there are at least two human faces of similar size in the images of the multiple human faces, and the size difference between the two largest human faces among the at least two human faces is less than a predetermined threshold, a reminder operation is performed. 12.一种终端设备,包括:12. A terminal device, comprising: 第一获取模块,用于获取包括多个人脸的待识别的人脸图像;A first acquisition module, used to acquire a facial image to be recognized including multiple faces; 第二获取模块,用于获取所述人脸图像中的人脸分布;A second acquisition module, used to acquire the face distribution in the face image; 执行模块,用于当所述人脸分布异常时,基于所述人脸图像中的人脸分布,执行与所述人脸分布相应的提醒操作,其中,所述人脸分布异常包括所述人脸图像中存在大小相近的至少两个人脸,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值。An execution module is used to execute a reminder operation corresponding to the face distribution based on the face distribution in the face image when the face distribution is abnormal, wherein the face distribution abnormality includes the presence of at least two faces of similar sizes in the face image, and the sizes of the at least two faces are the ratio of the corresponding face detection frame size to the distance from the center of the face detection frame to the center of the screen. 13.一种终端设备,包括:13. A terminal device, comprising: 采集模块,用于采集包括多个人脸的图像;A collection module, used for collecting images including multiple faces; 提醒模块,用于若所述多个人脸的图像中存在大小相近的至少两个人脸,则执行提醒操作,其中,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值;a reminder module, configured to perform a reminder operation if there are at least two faces of similar size in the images of the multiple faces, wherein the sizes of the at least two faces are the ratios of the sizes of the corresponding face detection frames to the distances from the center of the face detection frames to the center of the screen; 选择模块,用于基于所述图像中的各人脸大小从所述多个人脸的图像中选择至少一个人脸图像;A selection module, configured to select at least one face image from the plurality of face images based on the size of each face in the image; 对比模块,用于基于所述至少一个人脸图像与目标用户的人脸图像进行对比;A comparison module, configured to compare the at least one facial image with a facial image of a target user; 确定模块,用于基于对比结果确定是否识别成功。The determination module is used to determine whether the recognition is successful based on the comparison result. 14.一种终端设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下步骤:14. A terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the following steps when executed by the processor: 获取包括多个人脸的待识别的人脸图像;Acquire a facial image to be recognized that includes multiple faces; 获取所述人脸图像中的人脸分布;Obtaining distribution of faces in the face image; 当所述人脸分布异常时,基于所述人脸图像中的人脸分布,执行与所述人脸分布相应的提醒操作,其中,所述人脸分布异常包括所述人脸图像中存在大小相近的至少两个人脸,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值。When the face distribution is abnormal, a reminder operation corresponding to the face distribution is performed based on the face distribution in the face image, wherein the face distribution abnormality includes the presence of at least two faces of similar size in the face image, and the sizes of the at least two faces are the ratio of the corresponding face detection frame size to the distance from the center of the face detection frame to the center of the screen. 15.一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the following steps: 获取包括多个人脸的待识别的人脸图像;Acquire a facial image to be recognized that includes multiple faces; 获取所述人脸图像中的人脸分布;Obtaining distribution of faces in the face image; 当所述人脸分布异常时,基于所述人脸图像中的人脸分布,执行与所述人脸分布相应的提醒操作,其中,所述人脸分布异常包括所述人脸图像中存在大小相近的至少两个人脸,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值。When the face distribution is abnormal, a reminder operation corresponding to the face distribution is performed based on the face distribution in the face image, wherein the face distribution abnormality includes the presence of at least two faces of similar size in the face image, and the sizes of the at least two faces are the ratio of the corresponding face detection frame size to the distance from the center of the face detection frame to the center of the screen. 16.一种终端设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如下步骤:16. A terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the following steps when executed by the processor: 采集包括多个人脸的图像;capturing an image including a plurality of faces; 若所述多个人脸的图像中存在大小相近的至少两个人脸,则执行提醒操作,其中,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值;If there are at least two faces of similar size in the images of the multiple faces, a reminder operation is performed, wherein the size of the at least two faces is a ratio of the size of the corresponding face detection frame to the distance from the center of the face detection frame to the center of the screen; 基于所述图像中的各人脸大小从所述多个人脸的图像中选择至少一个人脸图像;selecting at least one face image from the plurality of face images based on the size of each face in the image; 基于所述至少一个人脸图像与目标用户的人脸图像进行对比;Based on the at least one facial image, a comparison is performed with a facial image of a target user; 基于对比结果确定是否识别成功。Determine whether the recognition is successful based on the comparison result. 17.一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:17. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the following steps: 采集包括多个人脸的图像;capturing an image including a plurality of faces; 若所述多个人脸的图像中存在大小相近的至少两个人脸,则执行提醒操作,其中,所述至少两个人脸大小为对应的人脸检测框大小与人脸检测框中心到屏幕中心距离的比值;If there are at least two faces of similar size in the images of the multiple faces, a reminder operation is performed, wherein the size of the at least two faces is a ratio of the size of the corresponding face detection frame to the distance from the center of the face detection frame to the center of the screen; 基于所述图像中的各人脸大小从所述多个人脸的图像中选择至少一个人脸图像;selecting at least one face image from the plurality of face images based on the size of each face in the image; 基于所述至少一个人脸图像与目标用户的人脸图像进行对比;Based on the at least one facial image, a comparison is performed with a facial image of a target user; 基于对比结果确定是否识别成功。Determine whether the recognition is successful based on the comparison result.
CN202210068057.XA 2018-09-04 2018-09-04 Auxiliary method for face recognition, face recognition method and terminal device Active CN114419713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210068057.XA CN114419713B (en) 2018-09-04 2018-09-04 Auxiliary method for face recognition, face recognition method and terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811027491.3A CN109376585B (en) 2018-09-04 2018-09-04 Face recognition auxiliary method, face recognition method and terminal equipment
CN202210068057.XA CN114419713B (en) 2018-09-04 2018-09-04 Auxiliary method for face recognition, face recognition method and terminal device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201811027491.3A Division CN109376585B (en) 2018-09-04 2018-09-04 Face recognition auxiliary method, face recognition method and terminal equipment

Publications (2)

Publication Number Publication Date
CN114419713A CN114419713A (en) 2022-04-29
CN114419713B true CN114419713B (en) 2025-02-14

Family

ID=65405240

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210068057.XA Active CN114419713B (en) 2018-09-04 2018-09-04 Auxiliary method for face recognition, face recognition method and terminal device
CN201811027491.3A Active CN109376585B (en) 2018-09-04 2018-09-04 Face recognition auxiliary method, face recognition method and terminal equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201811027491.3A Active CN109376585B (en) 2018-09-04 2018-09-04 Face recognition auxiliary method, face recognition method and terminal equipment

Country Status (1)

Country Link
CN (2) CN114419713B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113744443B (en) * 2020-05-27 2022-12-16 佳都科技集团股份有限公司 Gate channel anti-cheating control method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827979A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Prompting photographing method and mobile terminal
CN107251096A (en) * 2014-11-10 2017-10-13 英特尔公司 Image capture apparatus and method

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201917B (en) * 2011-04-10 2014-06-25 沈阳航空航天大学 Method and device for identity authentication of ATM (automatic teller machine)
CN102610035B (en) * 2012-04-05 2014-02-12 广州广电运通金融电子股份有限公司 Financial self-service device and anti-peeping system and anti-peeping method thereof
KR101397845B1 (en) * 2012-10-26 2014-05-20 포항공과대학교 산학협력단 Face recognition method, machine-readable storage medium and face recognition device
CN203070150U (en) * 2012-11-16 2013-07-17 上海大学 Automatic displayer adjustment device based on face identification
CN104133548A (en) * 2013-05-03 2014-11-05 中国移动通信集团公司 Method and device for determining viewpoint area and controlling screen luminance
JP2015108941A (en) * 2013-12-04 2015-06-11 株式会社デンソー Image recognizing apparatus for on-vehicle use
CN105550554B (en) * 2015-07-28 2019-01-15 宇龙计算机通信科技(深圳)有限公司 A kind of glance prevention method and mobile terminal
CN105023337B (en) * 2015-08-06 2017-11-14 四川大学 A kind of resident's physical examination integrated terminal machine
CN107300968B (en) * 2016-04-15 2021-05-04 中兴通讯股份有限公司 Face recognition method and device and picture display method and device
CN106161933B (en) * 2016-06-30 2019-05-17 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108334761B (en) * 2017-01-20 2020-04-21 深圳大森智能科技有限公司 User authority identification method and device
CN107463880A (en) * 2017-07-07 2017-12-12 广东欧珀移动通信有限公司 Control method, electronic device and computer readable storage medium
CN107392137B (en) * 2017-07-18 2020-09-08 艾普柯微电子(上海)有限公司 Face recognition method and device
CN107657222A (en) * 2017-09-12 2018-02-02 广东欧珀移动通信有限公司 Face recognition method and related products
CN107679514A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of face identification method and electronic equipment
CN107944247B (en) * 2017-12-13 2020-03-24 联想(北京)有限公司 Unlocking control method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107251096A (en) * 2014-11-10 2017-10-13 英特尔公司 Image capture apparatus and method
CN105827979A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Prompting photographing method and mobile terminal

Also Published As

Publication number Publication date
CN109376585B (en) 2022-01-14
CN109376585A (en) 2019-02-22
CN114419713A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN109190539B (en) Face recognition method and device
CN109063604A (en) A kind of face identification method and terminal device
CN107679861B (en) Resource transfer method, fund payment method, device and electronic equipment
CN106599772B (en) Living body verification method and device and identity authentication method and device
CN108280332B (en) Biological characteristic authentication, identification and detection method, device and equipment of mobile terminal
CN109086734B (en) Method and device for positioning pupil image in human eye image
CN105654033B (en) Face image verification method and device
CN110688878B (en) Living body identification detection method, living body identification detection device, living body identification detection medium, and electronic device
CN112329720A (en) Face liveness detection method, device and equipment
CN113505682B (en) Living body detection method and living body detection device
CN112637148B (en) Method, device, electronic equipment and medium for verifying user
CN111291668A (en) Living body detection method, living body detection device, electronic equipment and readable storage medium
CN114387548A (en) Video and living body detection methods, systems, devices, storage media, and program products
CN111241873A (en) Image reproduction detection method, training method of model thereof, payment method and payment device
CN114419713B (en) Auxiliary method for face recognition, face recognition method and terminal device
CN116681443A (en) Payment method and device based on biological recognition
CN109614844A (en) A kind of link verification method, device and equipment
HK40004484A (en) Face recognition auxiliary method, face recognition method and terminal device
CN109344732B (en) Method and device for authentication and determining authentication mode and electronic equipment
HK40004484B (en) Face recognition auxiliary method, face recognition method and terminal device
EP4328796A1 (en) Template collection method, apparatus and system
CN114511909B (en) Face-brushing willingness-to-pay recognition method, device and equipment
HK40010402A (en) Authentication information acquisition and account opening method and device and electronic device
Dixit et al. SIFRS: Spoof Invariant Facial Recognition System (A Helping Hand for Visual Impaired People)
CN117556400A (en) Identity authentication method, device, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant