Picture portrait recognition method and device, electronic equipment and storage medium

By performing face recognition and duplicate detection on the photos to be identified, photos that meet the requirements for unified verification of person and ID are selected, which solves the problem of low manual review efficiency and achieves a fast and accurate verification process.

CN118762386APending Publication Date: 2024-10-11CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410371388.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing technology's manual review in the combined verification of person and certificate has inaccurate data judgment and cannot meet the timeliness requirements, resulting in low verification efficiency.

Method used

By obtaining the photos to be identified, face recognition, facial feature analysis and duplicate detection are performed to screen out target portrait photos that meet the requirements for unified verification of person and ID, thereby improving review efficiency.

Benefits of technology

It improves the compliance and review efficiency of portrait photos, reduces the need for manual review, and meets the timeliness requirements for rapid verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762386A_ABST
    Figure CN118762386A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a photo portrait recognition method and device, electronic equipment and a storage medium. The method comprises the steps that a to-be-recognized photo is acquired; face recognition is carried out on the to-be-recognized photo, a single-person image photo is determined, and face features exist in the single-person image photo; determining face posture data according to the face features; screening the single person image photos according to the face posture data, and determining a middle person image photo; and carrying out copying detection on the middle human image photo, and determining a target human image photo which is used for human-certificate unification verification business processing. According to the embodiment of the invention, the portrait photos which do not conform to the person-certificate integration verification service can be screened out, the image compliance is improved, and the working efficiency of auditing the compliance photos is improved under the condition that the compliance rules of the portrait photos are complex and multiple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a photo portrait recognition method, a photo portrait recognition device, an electronic device and a storage medium. Background Art

[0002] At present, the verification of ID card photos and other services require the verification of ID card and identity card to confirm the user's identity. However, the verification of photos is currently based on the preliminary manual matching judgment based on the existing rules, which is inaccurate in data judgment and requires a large number of people to intervene for a long time. If the verification of ID card and identity card requires centralized screening and processing, manual review will not be able to meet the review time requirements. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a method for photo portrait recognition, a device for photo portrait recognition, an electronic device and a storage medium that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problems, in a first aspect of the present invention, an embodiment of the present invention discloses a method for photo portrait recognition, comprising:

[0005] Get the photo to be identified;

[0006] Performing face recognition on the photo to be recognized to determine a single portrait photo, wherein the single portrait photo has facial features;

[0007] Determining facial posture data based on the facial features;

[0008] Filtering the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0009] The intermediate portrait photo is subjected to a re-shooting detection to determine a target portrait photo, and the target portrait photo is used for the person-document verification business processing.

[0010] Optionally, the step of performing face recognition on the photo to be identified to determine a single portrait photo includes:

[0011] Performing face recognition on the photo to be recognized to determine a face recognition frame;

[0012] It is determined that the photo to be identified with one face recognition frame is the single portrait photo.

[0013] Optionally, the step of determining facial posture data based on the facial features includes:

[0014] Determining facial key point data according to the facial features;

[0015] The facial posture data is determined based on the facial key point data.

[0016] Optionally, the step of screening the single portrait photos according to the facial posture data to determine the intermediate portrait photos includes:

[0017] Determining, based on the facial posture data, whether the facial posture of the single portrait photo includes all facial features, and whether the facial posture of the single portrait photo is preset posture information;

[0018] When the facial posture of the single portrait photo includes all the facial features, and the facial posture of the single portrait photo is the preset posture information, it is determined to be the intermediate portrait photo.

[0019] Optionally, the step of performing retake detection on the intermediate portrait photo to determine the target portrait photo includes:

[0020] Classifying the intermediate portrait photos to determine the reshoot scenes;

[0021] The intermediate portrait photo in which the reshoot scene is empty is determined as the target portrait photo.

[0022] Optionally, the method further comprises:

[0023] Performing imaging feature detection on the intermediate portrait photo;

[0024] The intermediate portrait photos whose imaging characteristics are lower than a preset imaging threshold are screened out to update the intermediate portrait photos.

[0025] Optionally, the method further comprises:

[0026] Performing occlusion detection on the intermediate portrait photo;

[0027] The intermediate portrait photos having occlusions are screened out to update the intermediate portrait photos.

[0028] In a second aspect of the present invention, an embodiment of the present invention discloses a photo portrait recognition device, comprising:

[0029] An acquisition module is used to acquire photos to be identified;

[0030] A first recognition module is used to perform face recognition on the photo to be recognized and determine a single portrait photo, wherein the single portrait photo has facial features;

[0031] A face posture determination module, used to determine face posture data based on the face features;

[0032] An intermediate portrait photo determination module, used to screen the single portrait photos according to the facial posture data to determine the intermediate portrait photo;

[0033] The target portrait photo determination module is used to perform remake detection on the intermediate portrait photo and determine the target portrait photo, which is used for the person-document verification business processing.

[0034] In the third aspect of the present invention, an embodiment of the present invention discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the photo portrait recognition method as described above when executed by the processor.

[0035] In a fourth aspect of the present invention, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the photo portrait recognition method as described above is implemented.

[0036] The embodiments of the present invention include the following advantages:

[0037] The present invention obtains a photo to be identified; performs face recognition on the photo to be identified to determine a single portrait photo, wherein the single portrait photo has face features; determines face posture data based on the face features; screens the single portrait photo based on the face posture data to determine an intermediate portrait photo; performs remake detection on the intermediate portrait photo to determine a target portrait photo, wherein the target portrait photo is used for person-document verification business processing. By performing face recognition, face feature and remake recognition on the photo to be identified, portrait photos that do not meet the person-document verification business are screened out, thereby improving image compliance. When the rules for portrait photo compliance are complex and multiple, the work efficiency of reviewing compliant photos is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a flowchart of a method for photo portrait recognition according to an embodiment of the present invention;

[0039] Figure 2 is a flowchart of another embodiment of a method for photo portrait recognition of the present invention;

[0040] Figure 3 It is a schematic diagram of the application architecture of an example of a photo portrait recognition method of the present invention;

[0041] Figure 4 This is a timing diagram of an example of a photo portrait recognition method of the present invention.

[0042] Figure 5 is a flowchart of an example of a method for photo portrait recognition of the present invention;

[0043] Figure 6It is a structural block diagram of an embodiment of a photo portrait recognition device of the present invention;

[0044] Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

[0045] Figure 8 It is a structural block diagram of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] Reference Figure 1 , shows a flowchart of a method for photo portrait recognition according to an embodiment of the present invention, which may specifically include the following steps:

[0048] Step 101, obtaining a photo to be identified;

[0049] Before the person-document verification service is required, the photo to be identified can be obtained first. The photo to be identified can be obtained online through a real-time communication network, or can be obtained by uploading from a specific terminal.

[0050] Step 102, performing face recognition on the photo to be recognized, determining a single portrait photo, wherein the single portrait photo has a facial feature;

[0051] The photo to be identified can be subjected to face recognition, the number of faces in the photo to be identified can be detected, and a single portrait photo can be determined, wherein the single portrait photo has face features.

[0052] Step 103, determining facial posture data according to the facial features;

[0053] The facial posture data corresponding to the face can be determined based on the facial features in the single portrait photo. The completeness and expression of the face can be determined through the facial posture data.

[0054] Step 104, screening the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0055] Then, the single portrait photos are screened according to the facial posture data, and the single portrait photos whose facial postures do not meet the requirements are removed to obtain the intermediate portrait photos. That is, the intermediate portrait photos are photos whose facial postures meet the specified requirements.

[0056] Step 105, performing a re-shooting detection on the intermediate portrait photo to determine a target portrait photo, and the target portrait photo is used for the person-document verification service processing.

[0057] After determining the intermediate portrait photo, the intermediate portrait photo can be re-photographed to determine whether the intermediate portrait photo is a re-photographed photo. The intermediate portrait photo that is not a re-photographed photo is determined as the target portrait photo. That is, the obtained target portrait photo can meet the requirements of the unified person-document verification business processing, so that the target portrait photo can be used for the unified person-document verification business processing, and the work efficiency of reviewing compliance photos is improved.

[0058] The present invention obtains a photo to be identified; performs face recognition on the photo to be identified to determine a single portrait photo, wherein the single portrait photo has face features; determines face posture data based on the face features; screens the single portrait photo based on the face posture data to determine an intermediate portrait photo; performs remake detection on the intermediate portrait photo to determine a target portrait photo, wherein the target portrait photo is used for person-document verification business processing. By performing face recognition, face feature and remake recognition on the photo to be identified, portrait photos that do not meet the person-document verification business are screened out, thereby improving image compliance. When the rules for portrait photo compliance are complex and multiple, the work efficiency of reviewing compliant photos is improved.

[0059] Reference Figure 2 , shows a flowchart of another embodiment of a photo portrait recognition method of the present invention, which may specifically include the following steps:

[0060] Step 201, obtaining a photo to be identified;

[0061] When it is necessary to verify the photo, the photo to be identified can be obtained first.

[0062] Step 202, performing face recognition on the photo to be recognized, determining a single portrait photo, wherein the single portrait photo has facial features;

[0063] After obtaining the photo to be identified, face recognition is performed on the photo to be identified to determine the number of faces in the photo to be identified, thereby determining a single portrait photo with a single face, wherein the single portrait photo has the facial features of the face.

[0064] Specifically, the step of performing face recognition on the photo to be identified and determining a single portrait photo includes: performing face recognition on the photo to be identified and determining a face recognition frame; and determining that the photo to be identified with one face recognition frame is the single portrait photo.

[0065] For face recognition in the photo to be recognized, the Retina face model can be used for face detection, returning all face recognition frames in the image, and determining whether there are multiple faces or no faces in the image as non-compliant images. The photo to be recognized that has only one face detection frame, that is, the photo to be recognized with one face recognition frame, is considered a single-person portrait photo.

[0066] Among them, RetinaFace is an advanced algorithm based on deep learning, which is mainly used for efficient and accurate face detection and recognition. It combines the cascade face detector and target detection methods, recognizes faces through a series of cascade classifiers, and uses a specific network structure to optimize the objective function to improve the accuracy. In RetinaFace, polar coordinate convolution is used for feature extraction. This form of convolution can better adapt to targets of different scales and enhance the robustness of the model. In practical applications, the RetinaFace algorithm can efficiently extract image features and classify them through convolutional neural networks (CNN), thereby achieving accurate detection and recognition of faces. It can not only detect faces in complex scenes, but also recognize facial features and facial features.

[0067] Step 203, determining facial posture data according to the facial features;

[0068] Further analyze the facial features in the single portrait photo to determine the facial posture data.

[0069] Specifically, the step of determining the facial posture data based on the facial features includes: determining facial key point data based on the facial features; and determining the facial posture data based on the facial key point data.

[0070] In an embodiment of the present invention, facial features may be identified to generate 96 facial key points of the face, i.e., facial key point data. The facial key point data is used to describe the facial posture (such as whether the face is facing the camera) and to evaluate whether the face is beyond the image. The facial posture data is determined based on the facial key point data.

[0071] Step 204, screening the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0072] Single portrait photos are screened according to the facial posture data, and photos that do not meet the business requirements are deleted to obtain intermediate portrait photos.

[0073] Specifically, the step of screening the single portrait photo based on the facial posture data and determining the intermediate portrait photo includes: judging whether the facial posture of the single portrait photo includes all facial features and whether the facial posture of the single portrait photo is preset posture information based on the facial posture data; when the facial posture of the single portrait photo includes all facial features and the facial posture of the single portrait photo is the preset posture information, determining it as the intermediate portrait photo.

[0074] When screening single-person portrait photos, it is possible to determine whether the facial posture of the single-person portrait photo contains all facial features based on the facial posture data, that is, it is possible to determine whether the face in the single-person portrait photo is completely in the photo. It is also possible to determine whether the facial posture of the single-person portrait photo is the preset posture information, thereby determining whether the facial posture expression in the single-person portrait photo meets the requirements, thereby filtering out single-person portrait photos with exaggerated expressions and postures.

[0075] When the facial posture of the single portrait photo includes all facial features and the facial posture of the single portrait photo is preset posture information, it is determined to be an intermediate portrait photo.

[0076] In practical applications, a regression-based key point estimation algorithm can be used to judge the full features of a face. If the estimated key points exceed the single portrait photo, it is considered that the face is partially exceeded in the single portrait photo, that is, the face features are incomplete. Otherwise, the face contains all features. For posture judgment, the face angle is evaluated. When the angle between the face and the lens exceeds 45%, it does not meet the preset posture information.

[0077] Step 205, performing imaging feature detection on the intermediate portrait photo;

[0078] In the embodiment of the present invention, the intermediate portrait photo may also be subjected to imaging feature detection, which includes but is not limited to: image blur detection and image over-darkness detection.

[0079] Step 206, filtering out the intermediate portrait photos whose imaging features are lower than a preset imaging threshold, so as to update the intermediate portrait photos;

[0080] The intermediate portrait photos whose imaging characteristics are lower than the corresponding preset imaging threshold are screened out, thereby updating the intermediate portrait photos.

[0081] If the image is too dark, after extracting the face area, the brightness and contrast of the face are evaluated. Based on the usage scenario, only the too dark situation is currently screened. Because everyone's skin color is different, it is not completely reasonable to evaluate whether the brightness meets the standard based solely on the pixel value of the face area; the algorithm should conduct a comprehensive evaluation of the pixel value, contrast, and gradient of the face area to obtain the brightness evaluation score of the face area, with a score range of 0-1. If the score is above 0.8, it is considered that the brightness of the image meets the standard. Otherwise, it does not meet the requirements.

[0082] For example, image blur: due to inaccurate focus or stains on the lens, the photo will be blurry. After obtaining the image of the face area, the Laplace variance method is used to score the blurriness of the image, and the score is normalized to the range of 0-1. Generally, pictures with a score greater than 0.9 can be considered clear.

[0083] Among them, the Laplace variance method uses the Laplace operator to quickly obtain the high-frequency and low-frequency distribution of the image. The high-frequency part usually refers to the area where the pixel value changes quickly, such as the edge part; while the low-frequency part refers to the area where the pixel changes slowly, such as the color part of a large area. By convolving the grayscale image, the Laplace operator can reveal the grayscale changes of each frame. Subsequently, the variance of the image after Laplace convolution is calculated as an indicator of clarity. Variance describes the degree of discreteness of the sample, and in image processing, it can be used to indicate image quality. The larger the variance of the pixel value of the image, the more edges, the higher the contrast, and the clearer the image.

[0084] Step 207, performing occlusion detection on the intermediate portrait photo;

[0085] In the embodiment of the present invention, the middle portrait photo can also be subjected to occlusion detection to determine whether the face in the middle portrait photo is occluded. The face occlusion includes but is not limited to wearing a hat, wearing a mask, holding the face with hands, etc.

[0086] For occlusion detection, resnet (deep convolutional neural network) can be used as the basis, and nearly 60,000 pictures are collected as training data for training. The output end uses softmax (function) to normalize the output to the range of 0-1. Usually, if it is greater than 0.5, it can be considered that part of the face is occluded.

[0087] Step 208, filtering out the obstructed photos in the intermediate portrait photos to update the intermediate portrait photos;

[0088] The photos with occlusions in the middle portrait photos are screened out, so as to update the middle portrait photos, so that there are no photos with occluded faces in the middle portrait photos.

[0089] Step 209, performing a re-shooting detection on the intermediate portrait photo to determine a target portrait photo, and the target portrait photo is used for the person-document verification service processing.

[0090] In the embodiment of the invention, the intermediate portrait photo can be subjected to duplicate detection, duplicated photos can be screened out, and the target portrait photo can be determined, so that the target portrait photo can be used for person-document verification business processing.

[0091] Specifically, the step of performing copy-shoot detection on the intermediate portrait photo to determine the target portrait photo includes: classifying the intermediate portrait photos to determine the copy-shoot scene; and determining the intermediate portrait photo with an empty copy-shoot scene as the target portrait photo.

[0092] In practical applications, the intermediate portrait photos can be classified and the shooting scenes of the intermediate portrait photos can be identified. For example, for screen copying, that is, photos formed by shooting the screen (mobile phone, display, etc.), it can be determined to be a screen copying scene by detecting moiré patterns, display boundaries, brightness characteristics, etc. Another example is post-printing copying, which is a copying after printing the photo of the target identification object. Because the lighting, perspective, printing texture, etc. do not conform to the logic of natural scene photos, the copying scene is determined to be a post-printing copy. When it is a non-copying photo, the copying scene is empty. The intermediate portrait photo with an empty copying scene can be determined as the target portrait photo.

[0093] In addition, the format of the uploaded image is verified. Since the compliance check is to audit the portrait photos taken by the camera, the verification number is 1, and the person-ID comparison is to calculate the similarity between the taken portrait photo and the ID card portrait cutout, so the photos need to be uploaded in pairs in sequence.

[0094] In terms of permission management functions: certificates are issued based on host information (drive letter, etc.), and containers or physical machines where businesses are deployed are managed to ensure "one machine, one certificate". At the same time, you can personalize the settings for the number of calls, the number of word-call image groups, etc.

[0095] Security management function: Security management is the core function of the business background. It is turned on or off through the switch control of the configuration item. The server will agree on the APPID (program identifier) ​​and Key, and then return the token (secret key) to the client for access. At the same time, it sets the ticket expiration time to achieve the purpose of interface layer security management.

[0096] Concurrency management function: The business background can control concurrency by setting the number of threads, thereby controlling the processing speed and avoiding idle or excessive occupation of GPU (Graphics Processing Unit) resources.

[0097] In order to make the implementation process of the embodiment of the present invention more clear to those skilled in the art, an example is used to illustrate as follows:

[0098] You can refer to Figure 3 , the photo portrait recognition method can be used as the core of the compliance detection algorithm engine. Through the compliance detection algorithm engine, a face image quality assessment algorithm is provided, which is deployed on the server side and supports the assessment of whether the image meets the standard from angles such as the blur level, image brightness, whether the face is blocked, and whether the face is facing the camera. The business background is an open interface platform that controls the business calls of the client and performs basic rule filtering of formats and image styles. In addition, the business background can also perform permission control, security control and concurrency control.

[0099] The runtime of this architecture can be referenced Figure 4 When users access the business backend through the corresponding interface and upload photos to the business backend, it is determined whether the uploaded images are a pair of images. If normal, it will enter the subsequent processing, otherwise, it will feedback abnormality.

[0100] The business backend determines whether the photo is a target portrait photo based on the photo portrait recognition method, that is, the compliance algorithm, and provides feedback for photos that do not meet the requirements.

[0101] The steps for photo portrait recognition are as follows: Figure 5 As shown, face detection is first performed, and the Retina face model is used as the face detection algorithm. All face detection frames in the image are returned to analyze whether there are multiple faces or no faces in the image and to obtain the face area for subsequent algorithm analysis steps:

[0102] Multiple faces: If there are multiple faces in the same photo, and there is no obvious primary or secondary distinction, the photo is considered to be non-compliant and the label "Multiple faces" is returned. The definition of primary or secondary is based on the distance between the face and the camera. No face: If there is no face in the photo and it does not meet the labeling requirements, the label "No face" is returned.

[0103] Then perform facial key point detection: input the image of the face area and return 96 facial key points to describe the face posture (whether it is facing the camera) and evaluate whether the face is outside the image (the face is incomplete):

[0104] Exaggerated posture: When reviewing photos, if the person being reviewed does not look directly at the camera, or if the person being photographed opens his mouth or blinks during shooting, it will cause trouble for the reviewer or the algorithm. Here, the algorithm is used to evaluate the angle of the face. Definition of an exaggerated posture: The angle between the face and the camera exceeds 45%. Incomplete face: In some photos, part of the face does not appear in the image because the face is close to the edge of the picture, that is, the face outline exceeds the image boundary, which is considered to be incomplete face and returns the "incomplete face" label. Only part of the forehead is not in the picture, and the part below the eyebrows is in the picture, which is considered qualified. Judgment scheme, this scheme uses a regression-based key point estimation model for processing. If the key predicted by the algorithm exceeds the image, it is considered that the image with part of the face exceeding the image is incomplete.

[0105] Image blur: Due to inaccurate focus or lens stains, photos will be blurred. After obtaining the image of the face area, the Laplace variance method is used to score the blurriness of the image, and the score is normalized to the range of 0-1. Generally, pictures with a score greater than 0.9 can be considered clear.

[0106] Image is too dark: The camera may overexpose or underexpose during shooting, resulting in the image being too bright or too dark. After extracting the face area, the algorithm can evaluate the brightness and contrast of the face. Based on the usage scenario, the "Image is too dark" label is currently only given for the case of being too dark. Because everyone's skin color is different, it is not entirely reasonable to evaluate whether the brightness meets the standard based solely on the pixel value of the face area; a comprehensive evaluation should be conducted on the pixel value, contrast, and gradient of the face area to obtain the brightness evaluation score of the face area, with a score range of 0-1. If the score is above 0.8, the brightness of the image is considered to meet the standard.

[0107] Face occlusion: There are photos with face occlusion in the existing photos, such as wearing a hat, wearing a mask, or holding the face with hands. Such photos can be judged as non-compliant and "face occlusion" will be returned; the output end uses softmax to normalize the output to the range of 0-1. Usually, a value greater than 0.5 is considered to be partially occluded.

[0108] Image remake: Determine whether the photo is remade. The detectable remake scenarios are as follows:

[0109] Screen capture: By shooting the screen (mobile phone, monitor, etc.), this algorithm can detect screen features such as moiré, display boundaries, brightness features, etc., and give corresponding labels.

[0110] Copying after printing: copying after printing the photo of the target identification object, because the lighting, perspective, printing texture, etc. do not conform to the logic of natural scene photos.

[0111] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0112] Reference Figure 6 , shows a structural block diagram of an embodiment of a photo portrait recognition device of the present invention, which may specifically include the following modules:

[0113] An acquisition module 601 is used to acquire a photo to be identified;

[0114] The first recognition module 602 is used to perform face recognition on the photo to be recognized, and determine a single portrait photo, wherein the single portrait photo has a facial feature;

[0115] A face posture determination module 603, used to determine face posture data according to the face features;

[0116] An intermediate portrait photo determination module 604 is used to filter the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0117] The target portrait photo determination module 605 is used to perform a re-shooting detection on the intermediate portrait photo to determine the target portrait photo, and the target portrait photo is used for the person-document verification business processing.

[0118] In an optional embodiment of the present invention, the first identification module 602 includes:

[0119] A face recognition frame recognition submodule is used to perform face recognition on the photo to be recognized and determine a face recognition frame;

[0120] The single portrait photo determination submodule is used to determine that the photo to be identified with one face recognition frame is the single portrait photo.

[0121] In an optional embodiment of the present invention, the face posture determination module 603 includes:

[0122] A key point determination submodule, used to determine the key point data of the face according to the face features;

[0123] The facial posture data determination submodule is used to determine the facial posture data based on the facial key point data.

[0124] In an optional embodiment of the present invention, the intermediate portrait photo determination module 604 includes:

[0125] A first judgment submodule is used to judge whether the facial posture of the single portrait photo contains all facial features and whether the facial posture of the single portrait photo is preset posture information according to the facial posture data;

[0126] The intermediate portrait photo determination submodule is used to determine the single portrait photo as the intermediate portrait photo when the facial posture of the single portrait photo contains the full facial features and the facial posture of the single portrait photo is the preset posture information.

[0127] In an optional embodiment of the present invention, the target portrait photo determination module 605 includes:

[0128] A reshoot scene determination submodule, used to classify the intermediate portrait photos and determine the reshoot scene;

[0129] The target portrait photo determination submodule is used to determine the intermediate portrait photo with an empty reshoot scene as the target portrait photo.

[0130] In an optional embodiment of the present invention, the device further comprises:

[0131] An imaging detection module, used for performing imaging feature detection on the intermediate portrait photo;

[0132] The first updating module is used to filter out the intermediate portrait photos whose imaging features are lower than a preset imaging threshold to update the intermediate portrait photos.

[0133] In an optional embodiment of the present invention, the device further comprises:

[0134] An occlusion detection module, used to perform occlusion detection on the intermediate portrait photo;

[0135] The second updating module is used to filter out the photos with occlusion in the intermediate portrait photos to update the intermediate portrait photos.

[0136] The present invention obtains a photo to be identified; performs face recognition on the photo to be identified to determine a single portrait photo, wherein the single portrait photo has face features; determines face posture data based on the face features; screens the single portrait photo based on the face posture data to determine an intermediate portrait photo; performs remake detection on the intermediate portrait photo to determine a target portrait photo, wherein the target portrait photo is used for person-document verification business processing. By performing face recognition, face feature and remake recognition on the photo to be identified, portrait photos that do not meet the person-document verification business are screened out, thereby improving image compliance. When the rules for portrait photo compliance are complex and multiple, the work efficiency of reviewing compliant photos is improved.

[0137] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0138] Reference Figure 7 , an embodiment of the present invention further provides an electronic device, including:

[0139] A processor 701 and a storage medium 702, wherein the storage medium 702 stores a computer program executable by the processor 701. When the electronic device is running, the processor 701 executes the computer program to implement the photo portrait recognition method as described in any one of the embodiments of the present invention.

[0140] The photo portrait recognition method comprises:

[0141] Get the photo to be identified;

[0142] Performing face recognition on the photo to be recognized to determine a single portrait photo, wherein the single portrait photo has facial features;

[0143] Determining facial posture data based on the facial features;

[0144] Filtering the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0145] The intermediate portrait photo is subjected to a re-shooting detection to determine a target portrait photo, and the target portrait photo is used for the person-document verification business processing.

[0146] Optionally, the step of performing face recognition on the photo to be identified to determine a single portrait photo includes:

[0147] Performing face recognition on the photo to be recognized to determine a face recognition frame;

[0148] It is determined that the photo to be identified with one face recognition frame is the single portrait photo.

[0149] Optionally, the step of determining facial posture data based on the facial features includes:

[0150] Determining facial key point data according to the facial features;

[0151] The facial posture data is determined based on the facial key point data.

[0152] Optionally, the step of screening the single portrait photos according to the facial posture data to determine the intermediate portrait photos includes:

[0153] Determining, based on the facial posture data, whether the facial posture of the single portrait photo includes all facial features, and whether the facial posture of the single portrait photo is preset posture information;

[0154] When the facial posture of the single portrait photo includes all the facial features, and the facial posture of the single portrait photo is the preset posture information, it is determined to be the intermediate portrait photo.

[0155] Optionally, the step of performing retake detection on the intermediate portrait photo to determine the target portrait photo includes:

[0156] Classifying the intermediate portrait photos to determine the reshoot scenes;

[0157] The intermediate portrait photo in which the reshoot scene is empty is determined as the target portrait photo.

[0158] Optionally, the method further comprises:

[0159] Performing imaging feature detection on the intermediate portrait photo;

[0160] The intermediate portrait photos whose imaging characteristics are lower than a preset imaging threshold are screened out to update the intermediate portrait photos.

[0161] Optionally, the method further comprises:

[0162] Performing occlusion detection on the intermediate portrait photo;

[0163] The intermediate portrait photos having occlusions are screened out to update the intermediate portrait photos.

[0164] The present invention obtains a photo to be identified; performs face recognition on the photo to be identified to determine a single portrait photo, wherein the single portrait photo has face features; determines face posture data based on the face features; screens the single portrait photo based on the face posture data to determine an intermediate portrait photo; performs remake detection on the intermediate portrait photo to determine a target portrait photo, wherein the target portrait photo is used for person-document verification business processing. By performing face recognition, face feature and remake recognition on the photo to be identified, portrait photos that do not meet the person-document verification business are screened out, thereby improving image compliance. When the rules for portrait photo compliance are complex and multiple, the work efficiency of reviewing compliant photos is improved.

[0165] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0166] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0167] Reference Figure 8 The embodiment of the present invention further provides a computer-readable storage medium 801, on which a computer program is stored. When the computer program is executed by a processor, the photo portrait recognition method as described in any one of the embodiments of the present invention is executed.

[0168] The photo portrait recognition method comprises:

[0169] Get the photo to be identified;

[0170] Performing face recognition on the photo to be recognized to determine a single portrait photo, wherein the single portrait photo has facial features;

[0171] Determining facial posture data based on the facial features;

[0172] Filtering the single portrait photos according to the facial posture data to determine an intermediate portrait photo;

[0173] The intermediate portrait photo is subjected to a re-shooting detection to determine a target portrait photo, and the target portrait photo is used for the person-document verification business processing.

[0174] Optionally, the step of performing face recognition on the photo to be identified to determine a single portrait photo includes:

[0175] Performing face recognition on the photo to be recognized to determine a face recognition frame;

[0176] It is determined that the photo to be identified with one face recognition frame is the single portrait photo.

[0177] Optionally, the step of determining facial posture data based on the facial features includes:

[0178] Determining facial key point data according to the facial features;

[0179] The facial posture data is determined based on the facial key point data.

[0180] Optionally, the step of screening the single portrait photos according to the facial posture data to determine the intermediate portrait photos includes:

[0181] Determining, based on the facial posture data, whether the facial posture of the single portrait photo includes all facial features, and whether the facial posture of the single portrait photo is preset posture information;

[0182] When the facial posture of the single portrait photo includes all the facial features, and the facial posture of the single portrait photo is the preset posture information, it is determined to be the intermediate portrait photo.

[0183] Optionally, the step of performing retake detection on the intermediate portrait photo to determine the target portrait photo includes:

[0184] Classifying the intermediate portrait photos to determine the reshoot scenes;

[0185] The intermediate portrait photo in which the reshoot scene is empty is determined as the target portrait photo.

[0186] Optionally, the method further comprises:

[0187] Performing imaging feature detection on the intermediate portrait photo;

[0188] The intermediate portrait photos whose imaging characteristics are lower than a preset imaging threshold are screened out to update the intermediate portrait photos.

[0189] Optionally, the method further comprises:

[0190] Performing occlusion detection on the intermediate portrait photo;

[0191] The intermediate portrait photos having occlusions are screened out to update the intermediate portrait photos.

[0192] The present invention obtains a photo to be identified; performs face recognition on the photo to be identified to determine a single portrait photo, wherein the single portrait photo has face features; determines face posture data based on the face features; screens the single portrait photo based on the face posture data to determine an intermediate portrait photo; performs remake detection on the intermediate portrait photo to determine a target portrait photo, wherein the target portrait photo is used for person-document verification business processing. By performing face recognition, face feature and remake recognition on the photo to be identified, portrait photos that do not meet the person-document verification business are screened out, thereby improving image compliance. When the rules for portrait photo compliance are complex and multiple, the work efficiency of reviewing compliant photos is improved.

[0193] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0194] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0195] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0196] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0197] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0198] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0199] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0200] The above is a detailed introduction to a photo portrait recognition method, a photo portrait recognition device, an electronic device and a storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for photo portrait recognition, characterized in that: include: Get the photo to be identified; Performing face recognition on the photo to be recognized to determine a single portrait photo, wherein the single portrait photo has facial features; Determining facial posture data based on the facial features; Filtering the single portrait photos according to the facial posture data to determine an intermediate portrait photo; The intermediate portrait photo is subjected to a re-shooting detection to determine a target portrait photo, and the target portrait photo is used for the person-document verification business processing.

2. The method according to claim 1, characterized in that The step of performing face recognition on the photo to be recognized and determining a single portrait photo comprises: Performing face recognition on the photo to be recognized to determine a face recognition frame; It is determined that the photo to be identified with one face recognition frame is the single portrait photo.

3. The method according to claim 1, characterized in that The step of determining the facial posture data based on the facial features comprises: Determining facial key point data according to the facial features; The facial posture data is determined based on the facial key point data.

4. The method according to claim 3, characterized in that: The step of screening the single portrait photos according to the facial posture data and determining the intermediate portrait photos comprises: Determining, based on the facial posture data, whether the facial posture of the single portrait photo includes all facial features, and whether the facial posture of the single portrait photo is preset posture information; When the facial posture of the single portrait photo includes all the facial features, and the facial posture of the single portrait photo is the preset posture information, it is determined to be the intermediate portrait photo.

5. The method according to claim 1, characterized in that The step of performing retake detection on the intermediate portrait photo to determine the target portrait photo comprises: Classifying the intermediate portrait photos to determine the reshoot scenes; The intermediate portrait photo in which the reshoot scene is empty is determined as the target portrait photo.

6. The method according to claim 1, characterized in that The method further comprises: Performing imaging feature detection on the intermediate portrait photo; The intermediate portrait photos whose imaging characteristics are lower than a preset imaging threshold are screened out to update the intermediate portrait photos.

7. The method according to claim 1, characterized in that The method further comprises: Performing occlusion detection on the intermediate portrait photo; The intermediate portrait photos having occlusions are screened out to update the intermediate portrait photos.

8. A photo portrait recognition device, characterized in that: include: An acquisition module is used to acquire photos to be identified; A first recognition module is used to perform face recognition on the photo to be recognized and determine a single portrait photo, wherein the single portrait photo has facial features; A face posture determination module, used to determine face posture data based on the face features; An intermediate portrait photo determination module, used to screen the single portrait photos according to the facial posture data to determine the intermediate portrait photo; The target portrait photo determination module is used to perform a re-shooting detection on the intermediate portrait photo to determine the target portrait photo, and the target portrait photo is used for the person-document verification business processing.

9. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the photo portrait recognition method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the photo portrait recognition method according to any one of claims 1 to 7 are implemented.