Key point detection method and device, electronic device and storage medium

Through the multi-branch structure and feature fusion technology of the target neural network, the problems of low efficiency and occlusion effects of existing facial key point detection methods are solved, and high-precision facial key point recognition is achieved.

CN112613447BActive Publication Date: 2024-09-17SHANGHAI SENSETIME INTELLIGENT TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202011596254.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2024-09-17
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

Existing facial key point detection methods have low time efficiency and inaccurate recognition under occlusion, especially when the facial organ image is incomplete, resulting in inaccurate key point results.

Method used

The multi-branch structure of the target neural network is adopted, including the first network branch for detecting faces and the second network branch for detecting facial organs. The organ key point information is determined by combining global information and calibrated through the region of interest layer. and feature extraction layer to extract organ features and fuse feature information to improve detection accuracy.

Benefits of technology

It achieves end-to-end facial key point recognition, improves detection speed and efficiency, reduces the impact of occlusion on facial organ key point detection, and improves detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112613447B
    Figure CN112613447B
Patent Text Reader

Abstract

The present disclosure relates to a key point detection method and device, electronic device and storage medium. The method comprises: obtaining a face image; using at least two neural network branches included in a target neural network to process a face and at least one face organ in the face image, and obtaining a face key point information set, wherein the face key point information set includes face key point information and face organ key point information; wherein at least two neural network branches include a first network branch for detecting a face and at least one second network branch for detecting a face organ, the first detection result output by the first network branch includes global face information, and the face key point information and / or feature information of the face image included in the global face information is transmitted to each second network branch, and each second network branch is used to determine the corresponding face organ key point information in combination with the global face information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision, and in particular to a key point detection method and device, an electronic device, and a storage medium. Background Art

[0002] Facial key point detection is the basis of many face-related applications. It can provide position correction for technologies such as face recognition, and also provide semantic information of the face for scenes such as augmented reality and beauty effects. Therefore, how to detect facial key points has become a problem that needs to be solved urgently.

[0003] In the related methods, after obtaining the key points of the entire face, the facial organs are captured multiple times from the original image based on the key points of the entire face, and then the captured multiple organs are input into their corresponding facial organ key point detection models. This processing method is not only time-consuming and inefficient, but also when the face is occluded, the captured organ image may be incomplete, resulting in inaccurate key point results obtained by recognition. Summary of the invention

[0004] The present disclosure proposes a key point detection solution.

[0005] According to one aspect of the present disclosure, a key point detection method is provided, comprising:

[0006] Acquire a facial image; use at least two neural network branches included in the target neural network to process the face and at least one facial organ in the facial image to obtain a facial key point information set, wherein the facial key point information set includes key point information of the face and key point information of the facial organs; wherein the at least two neural network branches include a first network branch for detecting the face and at least one second network branch for detecting the facial organs, the first detection result output by the first network branch includes global information of the face, the key point information of the face and / or feature information of the facial image included in the global information of the face is transmitted to each of the second network branches, and each of the second network branches is used to determine the key point information of the corresponding facial organ in combination with the global information of the face.

[0007] In a possible implementation, the second network branch includes a region of interest calibration layer and a feature extraction layer; the use of at least two neural network branches included in the target neural network to detect the face and at least one facial organ in the facial image to obtain a set of facial key point information includes: detecting the face through the first network branch to obtain the first detection result; extracting the detection area of ​​the facial organ through the region of interest calibration layer of each of the second network branches; extracting image features of the detection area corresponding to the at least one facial organ through the feature extraction layer of each of the second network branches; and obtaining key point information of the at least one facial organ using the image features of the detection area and the global information of the face.

[0008] In a possible implementation, the utilizing the image features of the detection area and the key point information of the face to obtain the key point information of at least one facial organ includes: fusing the image features of the detection area with the corresponding key point information of the face and / or the feature information of the face image at least once to obtain fused feature information; and obtaining the key point information of the facial organ based on the fused feature information.

[0009] In a possible implementation, the first detection result also includes detection frame information of at least one facial organ; the extracting the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch includes: determining the position coordinates of the at least one facial organ in the face image according to the detection frame information of the at least one facial organ; and extracting the detection areas of the facial organs that match the detection frame information of the at least one facial organ respectively with the accuracy of the position coordinates through the region of interest calibration layer of each second network branch.

[0010] In one possible implementation, the detection area of ​​the facial organ includes: feature information of the facial organ area extracted from the facial image, and / or feature information of the facial organ area extracted from feature information of the facial image output by the first network branch.

[0011] In a possible implementation, the first detection result also includes detection frame information of at least one facial organ; before the detection area of ​​the facial organ is extracted through the region of interest calibration layer of each second network branch, it also includes: enhancing the detection frame information of the at least one facial organ, wherein the enhancing processing includes: scaling transformation processing and / or translation transformation processing.

[0012] In a possible implementation, the number of key points of the face in the key point information of the face includes 68 to 128; and / or, the number of key points of the mouth in the key point information of the facial organs includes 40 to 80; and / or, the number of key points of the left eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the right eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the left eyebrow in the key point information of the facial organs includes 10 to 20; and / or, the number of key points of the right eyebrow in the key point information of the facial organs includes 10 to 20.

[0013] In one possible implementation, the facial image includes key point annotations, and the method further includes: determining the error loss of the target neural network based on the key point annotations and the facial key point information set; and jointly updating the parameters of at least two neural network branches in the target neural network based on the error loss.

[0014] According to one aspect of the present disclosure, there is provided a key point detection device, comprising:

[0015] An image acquisition module is used to acquire a face image; a key point detection module is used to use at least two neural network branches included in the target neural network to process the face and at least one facial organ in the face image to obtain a face key point information set, wherein the face key point information set includes key point information of the face and key point information of the facial organs; wherein the at least two neural network branches include a first network branch for detecting a face and at least one second network branch for detecting a facial organ, the first detection result output by the first network branch includes global information of the face, the key point information of the face included in the global information of the face and / or the feature information of the face image is transmitted to each of the second network branches, and each of the second network branches is used to determine the key point information of the corresponding facial organ in combination with the global information of the face.

[0016] In a possible implementation, the second network branch includes a region of interest calibration layer and a feature extraction layer; the key point detection module is used to: detect the face through the first network branch to obtain the first detection result; extract the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch; extract the image features of the detection area corresponding to the at least one facial organ through the feature extraction layer of each second network branch; and obtain the key point information of the at least one facial organ using the image features of the detection area and the global information of the face.

[0017] In one possible implementation, the key point detection module is further used to: fuse the image features of the detection area with the corresponding key point information of the face and / or the feature information of the face image at least once to obtain fused feature information; and obtain the key point information of the facial organs based on the fused feature information.

[0018] In a possible implementation, the first detection result also includes detection frame information of at least one facial organ; the key point detection module is further used to: determine the position coordinates of the at least one facial organ in the face image according to the detection frame information of the at least one facial organ; and extract the detection areas of the facial organs that match the detection frame information of the at least one facial organ respectively with the accuracy of the position coordinates through the region of interest calibration layer of each second network branch.

[0019] In one possible implementation, the detection area of ​​the facial organ includes: feature information of the facial organ area extracted from the facial image, and / or feature information of the facial organ area extracted from feature information of the facial image output by the first network branch.

[0020] In a possible implementation, the first detection result also includes detection frame information of at least one facial organ; the key point detection module is also used to: perform enhancement processing on the detection frame information of the at least one facial organ, wherein the enhancement processing includes: scaling transformation processing and / or translation transformation processing.

[0021] In a possible implementation, the number of key points of the face in the key point information of the face includes 68 to 128; and / or, the number of key points of the mouth in the key point information of the facial organs includes 40 to 80; and / or, the number of key points of the left eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the right eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the left eyebrow in the key point information of the facial organs includes 10 to 20; and / or, the number of key points of the right eyebrow in the key point information of the facial organs includes 10 to 20.

[0022] In one possible implementation, the facial image includes key point annotations, and the device is also used to: determine the error loss of the target neural network based on the key point annotations and the facial key point information set; and jointly update the parameters of at least two neural network branches in the target neural network based on the error loss.

[0023] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0024] A processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the above-mentioned key point detection method.

[0025] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned key point detection method is implemented.

[0026] In the disclosed embodiment, by acquiring a face image, and using a target neural network including a first network branch for detecting a face and at least one second network branch for detecting a face organ, a face in the face image is detected to obtain a first detection result including global information of the face, and the key point information of the face in the global information and / or the feature information of the face image is transmitted to each second network branch, so as to detect at least one face organ in combination with the global information, thereby obtaining a face key point information set including key point information of the face and key point information of the face organ. Through the above process, the key points of the face and the key points of the face organ can be obtained by using the target neural network at the same time. On the one hand, end-to-end face key point recognition can be achieved, and the speed and efficiency of key point recognition can be improved by the target neural network; on the other hand, in the case of occlusion in the face image, since each second network branch can use the key point information of the face output by the first network branch and / or the feature information of the face image to determine the key point information of the face organ, the influence of occlusion on the key point detection of the face organ can be reduced, and the detection accuracy of the key points of the face organ obtained can be improved.

[0027] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0029] Figure 1 A flowchart of a key point detection method according to an embodiment of the present disclosure is shown.

[0030] Figure 2 A flowchart of a key point detection method according to an embodiment of the present disclosure is shown.

[0031] Figure 3 A schematic diagram of a key point detection method according to an application example of the present disclosure is shown.

[0032] Figure 4A schematic diagram of a key point detection method according to an application example of the present disclosure is shown.

[0033] Figure 5 A flowchart of a key point detection method according to an embodiment of the present disclosure is shown.

[0034] Figure 6 A block diagram of a key point detection device according to an embodiment of the present disclosure is shown.

[0035] Figure 7 A schematic diagram of a key point detection method according to an application example of the present disclosure is shown.

[0036] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0037] Fig. 9 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0038] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0039] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0040] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0041] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0042] Figure 1A flowchart of a key point detection method according to an embodiment of the present disclosure is shown, and the method can be applied to a key point detection device, which can be a terminal device, a server or other processing device, etc. Among them, the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In one example, the key point detection method can be applied to a cloud server or a local server, and the cloud server can be a public cloud server or a private cloud server, which can be flexibly selected according to the actual situation.

[0043] In some possible implementations, the key point detection method may also be implemented by a processor calling computer-readable instructions stored in a memory.

[0044] like Figure 1 As shown, in a possible implementation, the key point detection method may include:

[0045] Step S11, obtaining a face image.

[0046] Step S12, using at least two neural network branches included in the target neural network to process the face and at least one facial organ in the facial image to obtain a facial key point information set, the facial key point information set including the key point information of the face and the key point information of the facial organs.

[0047] Among them, at least two neural network branches include a first network branch for detecting faces and at least one second network branch for detecting facial organs. The first detection result output by the first network branch includes global information of the face. The key point information of the face and / or feature information of the face image included in the global information of the face is transmitted to each second network branch. Each second network branch is used to determine the key point information of the corresponding facial organ in combination with the global information of the face.

[0048] A face image may be an image frame containing a face. The implementation form may be flexibly determined according to actual conditions and is not limited in the embodiments disclosed herein. The number of faces contained in a face image is also not limited in the embodiments disclosed herein. It may contain the face of a certain object or may contain the faces of multiple objects at the same time. When a face image contains multiple faces, the key point detection method proposed in the embodiments disclosed herein can be used to obtain the key point information of the faces corresponding to the multiple objects and / or the key point information of the facial organs. The subsequent disclosed embodiments are all described by taking the face image including the face of a single object as an example. The face image containing multiple objects can be flexibly expanded with reference to the subsequent disclosed embodiments and will not be listed one by one.

[0049] The method of acquiring facial images is not limited in the embodiments of the present disclosure. For example, facial images can be obtained by reading a database storing facial images, or facial images can be collected in certain scenarios to obtain facial images, or facial images can be obtained by clipping or sampling from videos containing faces, etc. The specific method of obtaining the facial images can be flexibly determined based on actual conditions.

[0050] In a possible implementation, the face image may be an image obtained from a face image frame sequence, and the face image frame sequence may be a frame sequence including multiple frames of face images, and its implementation is not limited in the embodiments of the present disclosure. The method of obtaining the face image from the face image frame sequence is also not limited in the embodiments of the present disclosure, and the face image may be obtained by randomly sampling from the face image frame sequence, or the face image may be selected from the face image frame sequence according to preset requirements.

[0051] The number of facial images acquired in step S11 is not limited in the present embodiment, and can be flexibly selected according to actual conditions. The subsequent embodiments are described by taking the acquisition of a single facial image as an example, and the method of acquiring multiple facial images can be flexibly expanded with reference to the subsequent embodiments, and will not be repeated in the present embodiment.

[0052] The target neural network may be a neural network for processing facial images, and its implementation form may be flexibly determined according to actual conditions. As described in the above disclosed embodiment, in one possible implementation, the target neural network may include at least two neural network branches. The number of neural network branches included in the target neural network, the implementation form of each neural network branch, and the connection relationship, etc., may all be flexibly determined according to actual conditions.

[0053] In one possible implementation, the at least two neural network branches may include a first network branch for detecting a human face, and at least one second network branch for detecting a human face organ.

[0054] Among them, the first network branch can be a network structure that detects the face in the face image to obtain the key point information of the face. Its implementation form can be flexibly determined according to the actual situation. For details, please refer to the following public embodiments, which will not be expanded here.

[0055] The first detection result may be the detection result obtained by the first network branch detecting the face in the face image. In one possible implementation, the first detection result may include global information of the face, and the global information of the face may reflect the overall situation of the face, and the information content contained therein may be flexibly determined according to the actual situation. In one possible implementation, the global information of the face may include key point information of the face and / or feature information of the face image, etc. The feature information of the face image may reflect the overall features of the face in the face image. The specific implementation form of the features of the face image can be found in the following disclosed embodiments, which will not be expanded here.

[0056] The second network branch can be a network structure that detects various organs of the face in the face image to obtain key point information of the facial organs. Its implementation form can also be flexibly determined based on actual conditions. Please see the following public embodiments for details, which will not be expanded here.

[0057] The second detection result may be a detection result obtained by the second network branch detecting at least one facial organ of the face in the face image based on the first detection result. In one possible implementation, the second detection result may include key point information of the facial organ. Since the first detection result is a detection result reflecting the overall situation of the face obtained by detecting the face in the face image, determining the key point information of the facial organ in the second detection result based on the first detection result can make the key point information of the facial organ more unified with the key point information of the face in the first detection result, thereby making the face key point information set more accurate. How the second network branch determines the key point information of the facial organ, and its detection process can be flexibly determined according to actual conditions.

[0058] In a possible implementation, the key point information of the facial organs contained in different organs in the face can be detected separately by multiple second network branches included in the target neural network. For example, the key point information of the facial organs contained in the mouth can be detected by the second network branch of the mouth, and the key point information of the facial organs contained in the eyes can be detected by the second network branch of the eyes. Therefore, in a possible implementation, the number of second network branches included in the target neural network and the organs used for detection by the second network branches can be flexibly determined according to the actual situation of the key point information of the facial organs. In the case where the target neural network includes multiple second network branches, each second network branch is independent of each other, that is, the order and process of each second network branch to perform detection are performed separately, and are not interfered by the detection process or data of other second network branches. In some possible implementations, the structures of each second network branch can be the same or different, which is not limited in the present embodiment. In some possible implementations, the detection process in each second network branch can be the same or different, which is also not limited in the present embodiment.

[0059] It can be seen from the above-mentioned disclosed embodiments that in a possible implementation method, the global information included in the first detection result output by the first network branch can be transmitted to each second network branch, so that each second network branch can determine the key point information of the corresponding facial organ in combination with the global information of the face, wherein the position to which the global information is transmitted to each second network branch is not restricted in the disclosed embodiments, and can be flexibly determined according to the actual structure of each second network branch. How the second network branch determines the key point information of the facial organ based on the global information can be found in the following disclosed embodiments in detail, which will not be expanded here.

[0060] It can also be seen from the above disclosed embodiments that, using at least two neural network branches included in the target neural network, the face and at least one facial organ in the facial image can be processed to obtain a facial key point information set. The facial key point information set can be related information of facial key points contained in the facial image, and the information content can be flexibly determined according to actual conditions. In a possible implementation, the facial key point information set can include facial key point information and facial organ key point information.

[0061] Among them, the key point information of the face may include: locating various parts or organs in the face, so as to determine the key points of the overall face, such as the key points on organs such as the eyes, mouth, nose or eyebrows in the face, as well as the key points on parts such as the cheeks, forehead or chin of the face.

[0062] The number of key points of the face and which key points are included in the face can be flexibly set according to the actual situation and are not limited in the embodiments of the present disclosure. In one possible implementation, the number of key points of the face can be in the range of 68 to 128, and the specific number can be flexibly selected according to the actual situation. In one example, the number of key points of the face can be set to 106, denoted as Face 106. In this case, the neural network branch in the target neural network can detect the key point information of the face on the input face image, thereby outputting 106 key point information of the face.

[0063] The key point information of facial organs may include: key points contained in various parts or organs of the face, which can be used to determine the conditions of local parts or organs of the face, such as key points contained in organs such as eyes, mouth, nose or eyebrows in the face, etc. Compared with the key point information of the face mentioned in the above-mentioned disclosed embodiments, the key point information of facial organs may describe the same part or organ on the face as the key point information of the face, but because the key point information of the face is used to determine the overall situation of the face, and the key point information of the facial organs is used to determine the local situation of the part or organ, the key point information of the facial organs may have more key points than the key point information of the face describing the same part or organ, and the distribution on the corresponding part or organ may also be more dense.

[0064] In a possible implementation, the number of key points of facial organs and the key points of which organs or parts of the face are included can be flexibly set according to actual conditions, and are not limited in the embodiments of the present disclosure. In a possible implementation, the number of key points of the mouth can be in the range of 40 to 80, the number of key points of the left eye can be in the range of 16 to 32, the number of key points of the right eye can also be in the range of 16 to 32, the number of key points of the left eyebrow can be in the range of 10 to 20, and the number of key points of the right eyebrow can also be in the range of 10 to 20. The specific number of key points set for the above organs can be flexibly selected according to actual conditions. In an example, the number of key point information of the facial organ of the mouth in the face can be set to 64, recorded as mouth 64, the number of key point information of the facial organs of the left eye and the right eye is 24 each, both recorded as eye 24, and the number of key point information of the facial organs of the left eyebrow and the right eyebrow is 13 each, both recorded as eyebrow 13.

[0065] In the disclosed embodiment, by acquiring a face image, and using a target neural network including a first network branch for detecting a face and at least one second network branch for detecting a face organ, a face in the face image is detected to obtain a first detection result including global information of the face, and the key point information of the face in the global information and / or the feature information of the face image is transmitted to each second network branch, so as to detect at least one face organ in combination with the global information, thereby obtaining a face key point information set including key point information of the face and key point information of the face organ. Through the above process, the key points of the face and the key points of the face organ can be obtained by using the target neural network at the same time. On the one hand, end-to-end face key point recognition can be achieved, and the speed and efficiency of key point recognition can be improved by the target neural network; on the other hand, in the case of occlusion in the face image, since each second network branch can use the key point information of the face output by the first network branch and / or the feature information of the face image to determine the key point information of the face organ, the influence of occlusion on the key point detection of the face organ can be reduced, and the detection accuracy of the key points of the face organ obtained can be improved.

[0066] In a possible implementation, the second network branch may include a region of interest calibration layer and a feature extraction layer.

[0067] Figure 2 A flow chart of a key point detection method according to an embodiment of the present disclosure is shown. As shown in the figure, in a possible implementation, step S12 may include:

[0068] Step S121, detecting a face through a first network branch to obtain a first detection result;

[0069] Step S122, extracting the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch;

[0070] Step S123, extracting image features of the detection area corresponding to at least one facial organ through the feature extraction layer of each second network branch;

[0071] Step S124, using the image features of the detection area and the global information of the face, obtain key point information of at least one facial organ.

[0072] Among them, the region of interest calibration layer can be a network layer with a region extraction function, and its implementation form is not limited in the embodiments of the present disclosure. For details, please refer to the following disclosed embodiments, which will not be expanded here.

[0073] The detection area of ​​the facial organ may be the area where the facial organ is located, and its implementation method may also be flexibly determined according to actual conditions. In some possible implementations, the detection area of ​​the facial organ may include: the facial organ area extracted from the facial image, and / or feature information of the facial organ area extracted from the feature information of the facial image output by the first network branch.

[0074] The facial organ region may be a region in a facial image that includes facial organs, and the facial organ region may be extracted from the facial image; the feature information of the facial organ region may be feature information related to the facial organ region from the feature information of the facial image, and the feature information of the facial organ region may be extracted from the feature information of the facial image. The implementation of how to extract the above-mentioned facial organ detection region through the regional feature extraction layer can be detailed in the following disclosed embodiments, which will not be expanded here.

[0075] The feature extraction layer may be a network layer with a feature extraction function, and its implementation form is also not limited in the embodiments of the present disclosure. In one possible implementation, the feature extraction layer may include a single network layer with a feature extraction function. In one possible implementation, the feature extraction layer may also be implemented by multiple network layers. Multiple network layers may all have feature extraction functions, may partially have feature extraction functions, or may not have feature extraction functions, but feature extraction can be achieved after being combined.

[0076] The feature extraction layer can extract image features of the detection area of ​​the facial organ extracted by the region of interest calibration layer to obtain image features of the detection area. The image features of the detection area can include features obtained by performing a single feature extraction on the detection area of ​​the facial organ, or features at different depths obtained by performing multiple feature extractions on the detection area of ​​the facial organ. The specific implementation method can be flexibly selected according to actual conditions and is not limited in the disclosed embodiments.

[0077] It can be seen from step S124 that in a possible implementation, key point information of at least one facial organ can be obtained based on the extracted image features of the detection area and the global information of the face. How to process the image features of the detection area and the global information of the face to obtain the key point information of the facial organ can be detailed in the following disclosed embodiments, which will not be expanded here.

[0078] Through the process described in steps S121 to S124, the target neural network can be used to simultaneously obtain the key point information of the face and the key point information of the facial organs. On the one hand, end-to-end facial key point recognition can be achieved, and the speed and efficiency of key point recognition are improved through the target neural network. On the other hand, since the key point information of the facial organs can be determined based on the global information in the first detection result, the global information reflecting the overall situation of the face can be used to locate the key point information of the facial organs, so that the obtained facial key point information set is more uniform in position in the overall face and local organs, and has higher precision, which effectively improves the accuracy of the identified key points.

[0079] In a possible implementation, step S124 may include:

[0080] Performing at least one fusion process on the image features of the detection area and the key point information of the corresponding face and / or the feature information of the face image to obtain fused feature information;

[0081] According to the fused feature information, the key point information of the facial organs is obtained.

[0082] As described in the above-mentioned disclosed embodiments, the image features of the detection area can be the image features of the detection area extracted by the feature extraction layer in the second network branch. The implementation form of the obtained image features can refer to the above-mentioned disclosed embodiments and will not be repeated here.

[0083] Since the detection area is the area obtained by extracting the region of interest calibration layer, the accuracy of the extraction may affect the accuracy of the image features of the detection area, thereby further affecting the accuracy of the key point information of the determined facial organs. Therefore, in a possible implementation method, in order to improve the accuracy of the key point information of the determined facial organs, the feature information of the facial image and / or the key point information of the face in the global information obtained in the first network branch can be fused with the feature information of the facial organ area to obtain fused feature information. Since the feature information of the facial image and / or the key point information of the face is obtained based on the complete facial image, it can reflect the whole face. Therefore, the key point information of the facial organs obtained by further regressing based on the fused feature information can have relatively unified position information with the obtained key point information of the face, and therefore has higher accuracy.

[0084] In the process of feature fusion, the specific objects to be fused with are not limited in the embodiments of the present disclosure.

[0085] Figure 3A schematic diagram of an application example according to the present disclosure is shown. As shown in the figure, in one example, after feature extraction by the feature extraction modules of each second branch (such as a mouth feature extraction module, a left eye feature extraction module, and a right eyebrow feature extraction module, etc.), the image features of the detection areas of each facial organ can be obtained, and the image features of these detection areas can be fused once with the 106 overall face key points (i.e., the key point information of the face) output by the first branch in the figure. The fusion form can be connection or other forms, etc., to obtain fused feature information (not indicated in the figure), and the fused feature information can be further calculated to obtain the key points of the facial organs output by each second branch (such as 64 mouth facial organ key points, 24 left eye facial organ key points, and 13 right eyebrow facial organ key points, etc.).

[0086] Figure 4 A schematic diagram of an application example according to the present disclosure is shown. As shown in the figure, in one example, after feature extraction by the feature extraction modules of each second branch (such as a mouth feature extraction module, a left eye feature extraction module, and a right eyebrow feature extraction module, etc.), the image features of the detection areas of each facial organ can be obtained, and the image features of these detection areas can be fused once with the feature information of the facial image extracted by the shallow feature extraction module of the first branch in the figure, and the fusion form can be addition or other forms, etc., to obtain fused feature information (not indicated in the figure), and the fused feature information can be further calculated to obtain the key points of the facial organs output by each second branch (such as 64 mouth facial organ key points, 24 left eye facial organ key points, and 13 right eyebrow facial organ key points, etc.).

[0087] In some possible implementations, Figure 3 The 106 overall face key points (i.e., face key point information) in Figure 4 The feature information of the facial image in the image can be fused with the image features of the detection area of ​​each facial organ.

[0088] In one possible implementation, the feature information of the face image may include features extracted by a certain network layer or certain network layers in the first network branch. In this case, in the process of fusing the image features of the detection area with the feature information of the face image, it can be fused with the features extracted by any network layer in the first network branch. The specific selection of features extracted by which network layer, whether deep features or shallow features, etc., can be flexibly determined according to actual conditions and is not limited in the present embodiment. In the process of obtaining fused feature information, the specific number of fusions can be flexibly determined according to the object of fusion, so it is also not limited in the present embodiment.

[0089] The fusion method can also be flexibly changed according to the different fusion objects. Please refer to the following public embodiments for details, which will not be expanded here.

[0090] After obtaining the fused feature information, the corresponding fused feature information can be processed in the second network branch to obtain the key point information of the output facial organs, wherein the processing method of the fused feature information by the second network branch is not limited in the embodiment of the present disclosure and can be flexibly selected according to the actual situation. In one possible implementation, the fused feature information can be processed by a network layer such as a regression layer or a classification layer to obtain the key point information of the output facial organs; in another possible implementation, the fused feature information can also be processed by a network structure composed of multiple network layers to obtain the key point information of the output facial organs, etc.

[0091] The image features of the detection area are fused with the feature information of the face image and / or the key point information of the face at least once to obtain the fused feature information; and the key point information of the face organs is obtained based on the fused feature information. Through the above process, the feature information of the face image reflecting the overall situation of the face and / or the key point information of the face obtained by the first network branch can be applied to the detection process of the key points of the face organs, so that the key point information of the face organs obtained is unified with the key point information result of the face, with higher accuracy.

[0092] In some possible implementations, the first detection result may also include other information, such as detection frame information of at least one facial organ. The detection frame information may be a detection frame indicating the position of each organ in the facial image, which specifically expresses the position of which organs in the facial image. It can be flexibly set according to actual conditions and is not limited in the embodiments disclosed herein. The shape and implementation form of the detection frame can be flexibly determined according to actual conditions. The shapes and implementation forms of the detection frames of different organs may be the same or different. In one possible implementation, the detection frames of each organ may be rectangular frames, and the position of each detection frame may be reflected by the coordinates of the vertices in the rectangular frame. In one possible implementation, the first network branch of the target neural network may output the detection frame information of at least one facial organ while outputting the key points of the face.

[0093] Therefore, in a possible implementation, step S121 may include:

[0094] According to the output of the first network branch, key point information of the face and detection frame information of at least one facial organ are obtained.

[0095] In some embodiments, step S121 may further include: obtaining feature information of the facial image based on intermediate features output by at least one network layer in the first network branch.

[0096] As described in the above disclosed embodiments, the implementation form of the first network branch can be flexibly determined according to actual conditions. In a possible implementation, the first network branch can be composed of multiple connected network layers, and the specific implementation forms and combination forms of these network layers can be flexibly determined according to actual conditions, and are not limited to the following disclosed embodiments.

[0097] In a possible implementation, the first network branch may include a shallow feature extraction network structure block 0 and a deep feature extraction network structure block main connected in sequence. Block 0 and block main may respectively include multiple network layers in the form of convolutional layers, pooling layers or classification layers. Through block 0, the first network branch can perform preliminary extraction of feature information of the face image, and the obtained preliminary extracted features can be input into block main for further extraction of feature information of the face image, and regression is performed based on the further extracted features to obtain the output of the first network branch to realize the detection of key point information of the face. Therefore, in an example, the preliminary extracted features extracted by block 0 can be used as feature information of the face image; in an example, the deep features extracted by block main can be used as feature information of the face image; in an example, the preliminary extracted features extracted by block 0 and the deep features further extracted by block main can both be used as feature information of the face image. The specific selection of which features to use as feature information of the face image can be flexibly determined according to actual conditions and is not limited in the embodiments disclosed herein.

[0098] It should be noted that in the embodiments of the present disclosure, the key point information of the face, the detection frame of at least one organ, and the feature information of the face image can be obtained at the same time, or the key point information of the face, the detection frame of at least one organ, and the feature information of the face image can be obtained separately in a certain order.

[0099] In a possible implementation, step S122 may include:

[0100] Determining the position coordinates of at least one facial organ in the facial image according to the detection frame information of at least one facial organ;

[0101] Through the region of interest calibration layer of each second network branch, the detection area of ​​the facial organ that matches the detection frame information of at least one facial organ is extracted with the accuracy of the position coordinates.

[0102] As described in the above-mentioned disclosed embodiments, the detection frame information of the facial organs may be a detection frame representing the position of each organ in the facial image. Therefore, based on the detection frame information, the position coordinates of the facial organs in the facial image may be determined.

[0103] After determining the position coordinates of the facial organs in the face image, the facial organ region can be extracted with the accuracy of the position coordinates through the region of interest calibration layer of the second network branch.

[0104] Among them, the accuracy of the position coordinates can be the numerical accuracy of the position coordinates. In one example, the vertex coordinates of the detection box in the detection box information can be floating point numbers, and the accuracy of the position coordinates determined based on the detection box information can be consistent with the number of floating point bits of the vertex coordinates of the detection box; in an example, the vertex coordinates of the detection box can be integers, and the accuracy of the position coordinates can be integers.

[0105] As described in the above disclosed embodiments, the region of interest calibration layer ROI Align (Region Of Interest Align) may be a network layer with a region extraction function. In a possible implementation, the region of interest calibration layer may be a network layer that implements the region extraction function by cutting, and its implementation form is not limited in the disclosed embodiments. In a possible implementation, in the process of extracting the face image by cutting, the accuracy of the cutting may be consistent with the accuracy of the position coordinates of the face organs in the face image. Therefore, in a possible implementation, when the accuracy of the position coordinates is a floating point number, the region of interest calibration layer may be a network layer that can perform image cutting with floating point accuracy. Therefore, any network layer with this function may be used as an implementation form of the region of interest calibration layer.

[0106] By determining the position coordinates of the facial organs in the facial image based on the detection frame information; and through the region of interest calibration layer of the second network branch, extracting the facial organ region that matches the detection frame information of the facial organ with the accuracy of the position coordinates, the above process can effectively improve the accuracy of the extracted facial organ region, and then improve the accuracy of the key point information of the facial organ determined based on the facial organ region, thereby improving the accuracy of key point detection.

[0107] In some possible implementations, when the detection area of ​​the facial organs includes feature information of the facial organ area, the method of extracting the feature information of the facial organ area from the feature information of the facial image through the region of interest calibration layer can be implemented by referring to the above-mentioned method of extracting the facial organ area from the facial image, and will not be repeated here.

[0108] In a possible implementation, the key point detection method proposed in the embodiment of the present disclosure may further include:

[0109] Post-processing is performed on the key point information of the face and / or the key point information of the facial organs, wherein the post-processing includes at least one of the following processing operations: key point quantity adjustment, key point numbering, and key point sequence adjustment.

[0110] Among them, the object of post-processing can be flexibly determined according to the actual situation. Only the key point information of the face can be post-processed, only the key point information of the facial organs can be post-processed, or the key point information of the face and the key point information of the facial organs can be post-processed together.

[0111] The specific operation content of post-processing can be some processing operations implemented according to the key point detection requirements. In a possible implementation method, post-processing can include some additional operations that do not change the key point positions, such as key point quantity adjustment, key point numbering, and key point order adjustment. Among them, the key point quantity adjustment can be a corresponding addition or deletion operation on the obtained key points, for example, some key points of the face or key points of the facial organs can be deleted, or the positions of other key points in the face image can be calculated based on the positions of the key points of the face or the key points of the facial organs; the key point numbering can be numbering the obtained key points in a certain preset order, the numbering can be continuous or discontinuous, and the number of the numbering can also be flexibly set according to the actual situation; the key point order adjustment can be an order adjustment of the key points that have been numbered, and the specific adjustment can be flexibly determined according to the actual situation, and is not limited in the embodiments of the present disclosure.

[0112] By post-processing the key point information of the face and / or the key point information of the facial organs, the obtained key points can be processed accordingly according to the actual needs of key point detection, thereby identifying the application scope of the key points.

[0113] In a possible implementation, the key point detection method proposed in the embodiment of the present disclosure may further include:

[0114] The position of the key point information of the facial organs in the detection area of ​​the facial organs is converted to obtain the position of the key point information of the facial organs in the face image.

[0115] In one possible implementation, since the key point information of facial organs can be extracted based on the detection area of ​​the facial organs, the positions of the key points of the facial organs may be positions in the detection area of ​​the facial organs. Since the key points of the face are obtained based on processing the facial image, the positions of the key points of the face may be positions in the facial image.

[0116] Therefore, in a possible implementation, the position of the key point information of the facial organ in the detection area of ​​the facial organ can be transformed to obtain the position of the key point information of the facial organ in the facial image. The method of conversion is not limited in the embodiment of the present disclosure. In a possible implementation, the position transformation relationship between the facial image and the detection area of ​​the facial organ can be determined according to the vertex or center point coordinates of the facial image and the detection area of ​​the facial organ, and based on the position transformation relationship, the position of the key point of the facial organ in the detection area of ​​the facial organ is transformed to obtain the position of the key point of the facial organ in the facial image.

[0117] By converting the position of the key point information of the facial organs in the detection area of ​​the facial organs, the position of the key point information of the facial organs in the face image can be obtained. The position of the key point information of the face and the key point information of the facial organs can be unified, which is convenient for subsequent analysis and operation of each key point in the face.

[0118] In some possible implementations, the position of the key point information of the face in the face image can also be converted to the detection area of ​​the facial organ, or the position of the key point information of a certain facial organ in the detection area of ​​the corresponding facial organ can be converted to the detection area of ​​other facial organs, etc. The key point information of the face and the key point information of each facial organ can also be converted to a preset image coordinate system, etc. The specific method of conversion can be flexibly selected according to actual conditions and is not limited to the above-mentioned disclosed embodiments.

[0119] In a possible implementation, the face image in the embodiment of the present disclosure may also be a face image containing key point annotations. As described in the above-mentioned disclosed embodiments, the key point detection method proposed in the embodiment of the present disclosure may be implemented based on the target neural network. Therefore, in a possible implementation, the target neural network may also be trained based on the face image containing key point annotations. In this case, the method proposed in the embodiment of the present disclosure may be used to train the target neural network.

[0120] In the case where a facial image includes key point annotations, in order to achieve training, the key point annotations may include key point information annotations of the face and / or key point information annotations of facial organs, wherein the key point information annotations of the face may be annotations of the actual positions of the key point information of the face in the facial image, and the key point information annotations of the facial organs may be annotations of the actual positions of the key point information of the facial organs in the facial image. The annotation method is not limited in the embodiments of the present disclosure. In one example, the key point information of the face and the key point information of the facial organs in the facial image may be manually annotated; in one example, the key point information of the face and the key point information of the facial organs in the facial image may also be automatically annotated by a machine, etc.

[0121] In some possible implementations, when the target neural network also includes at least one third network branch, the facial image may also include an annotation of the facial state corresponding to the third network branch. For example, when the target neural network also includes a third network branch for detecting the open and closed state of the eyes in the face, the open and closed state of the eyes in the facial image can be annotated according to the actual open and closed state of the eyes in the facial image.

[0122] Figure 5 A flowchart of a key point detection method according to an embodiment of the present disclosure is shown. As shown in the figure, in a possible implementation, when a face image includes key point annotations, the key point detection method proposed in the embodiment of the present disclosure may include:

[0123] Step S11, obtaining a face image.

[0124] Step S12, using at least two neural network branches included in the target neural network to process the face and at least one facial organ in the facial image to obtain a facial key point information set, the facial key point information set including the key point information of the face and the key point information of the facial organs.

[0125] Step S13, determining the error loss of the target neural network based on the key point annotations and the face key point information set.

[0126] Step S14, based on the error loss, jointly update the parameters of at least two neural network branches in the target neural network.

[0127] The implementation forms of step S11 to step S12 may refer to the above-mentioned disclosed embodiments and will not be described in detail here.

[0128] In a possible implementation, when the face image may include key point annotations, the implementation form of step S12 may refer to the above-mentioned disclosed embodiments, wherein, when step S12 is implemented by steps S121 to S124, in a possible implementation, before step S122, step S12 may further include:

[0129] The detection frame information of at least one facial organ is enhanced, wherein the enhancement processing includes: scaling transformation processing and / or translation transformation processing.

[0130] The detection frame information may be the detection frame information of the facial organs output by the first network branch, which will not be described in detail here. In one possible implementation, in order to enhance the richness of the data during the training process, the detection frame information may be enhanced, such as the scaling transformation processing and / or translation transformation processing mentioned in the above-mentioned disclosed embodiment.

[0131] The scaling transformation processing may be to expand or compress the detection frame in the obtained detection frame information. In a possible implementation, the detection frame may be randomly scaled within a preset scaling range. The value of the preset scaling range may be flexibly set according to actual conditions and is not limited to the following disclosed embodiments. In an example, the preset scaling range may be between 0.9 and 1.1 times the size of the detection frame.

[0132] The translation transformation processing can be to move the overall position of the detection frame in the obtained detection frame information. In a possible implementation, the detection frame can be randomly translated within a preset translation range. The preset translation range can also be flexibly set according to actual conditions. In an example, the preset translation range can be between ±0.05 times the length of the detection frame in the translation direction, where "+" and "-" in ± represent the translation direction and the opposite direction of the translation direction, respectively.

[0133] After obtaining the enhanced detection frame information, step S122 can be used to detect at least one facial organ using the first detection result including the enhanced detection frame information and at least one second network branch to obtain a second detection result. The specific detection method can refer to the above-mentioned disclosed embodiments and will not be repeated here.

[0134] By enhancing the detection frame information of at least one facial organ, the richness of the training data used to train the target neural network can be increased, so that the trained target neural network can obtain better key point detection effects under different input data, thereby improving the processing accuracy and robustness of the target neural network, thereby improving the accuracy of key point detection.

[0135] After obtaining the above-mentioned facial key point information set, step S13 can be used to determine the error between the predicted key points and the marked key points according to the actual positions of the key point information of the face marked in the face image and the key point information of the facial organs, thereby determining the error loss of the target neural network. And step S14 can be used to jointly update the parameters in the first network branch and the second network branch using the error loss.

[0136] In step S13, the specific process of determining the error loss can be flexibly determined according to the actual situation. Please refer to the following public embodiments for details, which will not be expanded here. After determining the error loss, the parameters in the target neural network can be reversely updated according to the error loss. It can be seen from the above public embodiments that the target neural network in the disclosed embodiment may include a first network branch and at least one second network branch. Therefore, in one possible implementation, in the process of updating the parameters of the target neural network, the parameter updates of the first network branch and the second network branch can be performed simultaneously, that is, the parameters in the first network branch and the second network branch can be jointly optimized based on the outputs of the two networks, so that the target neural network obtained after training can achieve the global optimal effect in the process of detecting the key point information of the face and the key point information of the facial organs.

[0137] In some possible implementations, when the target neural network also includes at least one third network branch, the at least one third network branch can be trained together with the first network branch and the second network branch, that is, the parameters of the third network branch can be updated together with the first network branch and the second network branch; in some possible implementations, the third network branch can also be trained separately, that is, in the process of updating the parameters of the third network branch, the parameters of the first network branch and the second network branch can be fixed.

[0138] By determining the error loss of the target neural network based on the face image, and jointly updating the parameters in the first network branch and at least one second network branch based on the error loss, the first network branch and at least one second network branch can be jointly trained through the above process, so that the key point information detection results of the face and the key point information detection results of the facial organs obtained by the trained target neural network are consistent and have high detection accuracy.

[0139] As described in the above disclosed embodiments, the implementation of step S14 can be flexibly determined according to actual conditions. In a possible implementation, step S14 may include at least one of the following processes:

[0140] Determining the error loss of the target neural network according to a first error between the key point information of the face and the key point information annotation of the face;

[0141] Determining the error loss of the target neural network according to a second error between the key point information of the facial organ and the key point information labeling of the facial organ;

[0142] Based on the key point information annotation of the face and / or the key point information annotation of the facial organs, the detection frame position annotation of at least one facial organ in the facial image is determined, and based on the third error between the detection frame information of at least one facial organ and the detection frame position annotation of at least one facial organ, the error loss of the target neural network is determined.

[0143] As described in the above disclosed embodiments, a face image may include a key point information annotation of the face, which may indicate the actual position of the key point information of the face in the training image. Therefore, in one possible implementation, the error loss of the target neural network may be determined based on the first error formed between the key point information annotation of the face and the key point information of the face predicted by the target neural network. The specific calculation method of the error loss can be flexibly set according to the actual situation and is not limited in the disclosed embodiments.

[0144] Similarly, the error loss of the target neural network can also be determined based on the second error formed between the key point information annotation of the facial organs and the key point information of the facial organs predicted by the target neural network. The calculation method can also be flexibly selected according to the actual situation.

[0145] In a possible implementation, as described in the above-mentioned disclosed embodiments, the first network branch in the target neural network can also determine the detection frame information of at least one facial organ, and based on the key point information annotation of the face and the key point information annotation of the facial organ, the organs in the face can also be located, thereby calculating the detection frame position of each organ in the training image as the detection frame position annotation in the face image. Therefore, in a possible implementation, the error loss of the target neural network can also be determined based on the third error formed between the detection frame information of each organ predicted by the target neural network and the detection frame position annotation of the corresponding organ. The calculation method of the detection frame position annotation and the calculation method of determining the error loss of the target neural network based on the third error can be flexibly selected according to actual conditions and are not limited in the present disclosed embodiments.

[0146] In one possible implementation, the above-mentioned methods for determining the error loss of the target neural network can be combined with each other. The specific method or methods to be selected to jointly determine the error loss of the target neural network can also be flexibly selected according to actual conditions and is not limited in the embodiments of the present disclosure.

[0147] By determining the error loss of the target neural network through the above-mentioned processes, the training process of the target neural network can be made more flexible and rich, so that the trained target neural network has better key point detection effect, and the obtained key point information of the face and the key point information of the facial organs have higher consistency.

[0148] Figure 6 A block diagram of a key point detection device according to an embodiment of the present disclosure is shown. As shown in the figure, the key point detection device 20 may include:

[0149] The image acquisition module 21 is used to acquire a face image.

[0150] The key point detection module 22 is used to use at least two neural network branches included in the target neural network to process the face and at least one facial organ in the facial image to obtain a set of facial key point information, wherein the facial key point information set includes key point information of the face and key point information of the facial organs; wherein the at least two neural network branches include a first network branch for detecting the face and at least one second network branch for detecting the facial organs, the first detection result output by the first network branch includes global information of the face, the key point information of the face included in the global information of the face and / or the feature information of the facial image is transmitted to each second network branch, and each second network branch is used to determine the key point information of the corresponding facial organ in combination with the global information of the face.

[0151] In one possible implementation, the second network branch includes a region of interest calibration layer and a feature extraction layer; the key point detection module is used to: detect the face through the first network branch to obtain a first detection result; extract the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch; extract the image features of the detection area corresponding to at least one facial organ through the feature extraction layer of each second network branch; and obtain the key point information of at least one facial organ using the image features of the detection area and the global information of the face.

[0152] In one possible implementation, the key point detection module is further used to: fuse the image features of the detection area with the key point information of the corresponding face and / or the feature information of the face image at least once to obtain fused feature information; and obtain the key point information of the facial organs based on the fused feature information.

[0153] In one possible implementation, the first detection result also includes detection frame information of at least one facial organ; the key point detection module is further used to: determine the position coordinates of at least one facial organ in the face image based on the detection frame information of at least one facial organ; and extract the detection areas of the facial organs that match the detection frame information of at least one facial organ with the accuracy of the position coordinates through the region of interest calibration layer of each second network branch.

[0154] In one possible implementation, the detection area of ​​the facial organ includes: feature information of the facial organ area extracted from the facial image, and / or feature information of the facial organ area extracted from feature information of the facial image output by the first network branch.

[0155] In one possible implementation, the first detection result also includes detection frame information of at least one facial organ; the key point detection module is also used to: perform enhancement processing on the detection frame information of at least one facial organ, wherein the enhancement processing includes: scaling transformation processing and / or translation transformation processing.

[0156] In one possible implementation, the number of key points of the face in the key point information of the face includes 68 to 128; and / or, the number of key points of the mouth in the key point information of the facial organs includes 40 to 80; and / or, the number of key points of the left eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the right eye in the key point information of the facial organs includes 16 to 32; and / or, the number of key points of the left eyebrow in the key point information of the facial organs includes 10 to 20; and / or, the number of key points of the right eyebrow in the key point information of the facial organs includes 10 to 20.

[0157] In one possible implementation, the face image includes key point annotations, and the device is also used to: determine the error loss of the target neural network based on the key point annotations and the face key point information set; and jointly update the parameters of at least two neural network branches in the target neural network based on the error loss.

[0158] Application scenario examples

[0159] The disclosed application example proposes a key point detection method, which can perform key point detection on a face image in which the face is obscured.

[0160] Figure 3 and Figure 7 A schematic diagram of a key point detection method according to an application example of the present disclosure is shown, wherein Figure 3 Schematic diagram of the application process of key point detection. Figure 7 This is a schematic diagram of the training process for key point detection, such as Figure 3As shown, in the application example of the present disclosure, the key point detection method may include the following process:

[0161] As shown in the figure, in the application example disclosed in the present invention, after the acquired face image with occlusion is input into the target neural network, it is processed by the first network branch and five second network branches in the target neural network respectively.

[0162] As shown in the figure, the first network branch includes a shallow feature extraction module and a main module connected in sequence. The shallow feature extraction module is such as the shallow feature extraction network structure block 0 described in the above-mentioned public embodiments, which performs preliminary extraction of feature information of the face image, and the main module is such as the deep feature extraction network structure blockmain described in the above-mentioned public embodiments, which further extracts and regresses the feature information of the face image. As can be seen from the figure, after the first network branch processes the face image, it can output the key point information of 106 faces (i.e., the 106 overall key points of the face in the figure), as well as the detection frame information of each face organ in the face image.

[0163] Further, as shown in the figure, the five second network branches are independent of each other, and perform key point detection on the mouth, left eye, right eye, left eyebrow and right eyebrow in the face respectively. Among them, the second network branch of the mouth includes a region of interest calibration layer (ROI Align) and a mouth feature extraction module connected in sequence. The implementation form of the region of interest calibration layer can refer to the above-mentioned disclosed embodiments, which will not be repeated here. As can be seen from the figure, the region of interest calibration layer can cut the face image according to the detection frame information of the mouth output by the first network branch, so as to obtain the face organ area of ​​the mouth that conforms to the preset image size. The mouth feature extraction module may include one or more network layers for feature extraction, which can perform feature extraction on the face organ area of ​​the mouth to obtain feature information of the face organ area of ​​the mouth. As can be seen from the figure, in an example, the feature information of the face organ area of ​​the mouth can be fused with the key point information of 106 faces output from the first network branch to obtain fused feature information, and the fused feature information is regressed through the second network branch of the mouth, and the key point information of the face organ of the mouth can be output. As shown in the figure, in the disclosed application example, the second network branch of the mouth extracts the facial organ area of ​​the mouth from the face image according to the input mouth detection frame information, and fuses the feature information of the facial organ area with the key point information of the face to obtain fused feature information. Based on the fused feature information, the key point information of 64 facial organs of the mouth can be output. In one example, the key point information of these 64 facial organs of the mouth can be unified with the key point information of 106 faces through the position conversion method mentioned in the above disclosed embodiments to the same position coordinate system.

[0164] The implementation form of the second network branch for the left eye and the right eye can refer to the second network branch for the mouth, which will not be repeated here. As shown in the figure, the second network branch for the left eye can output the key point information of 24 left eye facial organs, and the second network branch for the right eye can output the key point information of 24 right eye facial organs.

[0165] The implementation form of the second network branch of the left eyebrow is similar to the second network branch of the mouth mentioned above. As can be seen from the figure, in the present application example, the second network branch of the left eyebrow can use the region of interest calibration layer, based on the detection frame information of the left eyebrow, from the feature information of the face image output by block 0 in the first network branch, extract the initial feature information of the facial organ area of ​​the left eyebrow, and perform deep feature extraction based on the initial feature information to obtain the feature information of the facial organ area. The rest of the process is the same as the second network branch of the mouth. The implementation form of the second network branch of the right eyebrow can refer to the left eyebrow, which will not be repeated here. As can be seen from the figure, in the present application example, the second network branch of the left eyebrow can output the key point information of 13 left eyebrow facial organs, and the second network branch of the right eyebrow can output the key point information of 13 right eyebrow facial organs.

[0166] After obtaining the above-mentioned key points of the face and the key points of the facial organs, some post-processing can be performed on the key points, such as point order adjustment, to meet the actual use requirements of key point detection.

[0167] Through the above process, a single target neural network can be used to simultaneously obtain the key point information of the face and the detection results of the key point information of each facial organ, and the facial organ area is extracted using the region of interest calibration layer ROI Align, which not only saves the key point detection time in the entire process and reduces the total time consumption of key point detection, but also improves the accuracy of the obtained facial organ area, thereby improving the accuracy of the key point information of the detected facial organs; at the same time, in each second network branch, the feature information of the facial organ area can be fused with the key point information of the face output by the first network branch to obtain fused feature information, so as to obtain the output key point information of the facial organs based on the fused feature information. Through the above process, the key point information of the facial organs and the key point information of the face can be made more unified, and through feature fusion, the influence of occlusion of the face image on the detection of the key point information of the facial organs can be reduced, thereby improving the accuracy of key point detection.

[0168] Furthermore, since the key point detection method proposed in the application example of the present disclosure can be used through the target neural network, the method proposed in the application example of the present disclosure can also be used in the training process of the target neural network. Figure 7As shown, the process of training the target neural network is basically the same as the process of the above application process. The difference is that during the training process, the face image contains the true value annotations of each key point, and the detection frame information output by the first network branch is enhanced and then input into each second network branch. The enhancement method can refer to the above disclosed embodiments and will not be repeated here. In one example, during the training process, in order to determine the position of the left eyebrow and the right eyebrow, the detection frame position of the left eyebrow and the right eyebrow can be calculated according to the true value annotations of each key point in the training image to obtain the true value detection frame of the left eyebrow and the right eyebrow (i.e., the detection frame (true value) in the figure), which is input into the corresponding second network branch.

[0169] During the training process, the first network branch and each second network branch can be trained simultaneously and parameters can be optimized together to achieve global optimum. Through the above training process, end-to-end global optimization can be achieved for the entire target neural network, thereby improving the key point detection accuracy of the target neural network.

[0170] The key point detection method proposed in the application example of the present disclosure can be applied not only to the key point detection of face images, but also to the processing of other images, such as human body images, bone images, etc.

[0171] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not go into details.

[0172] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0173] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium may be a volatile computer-readable storage medium or a non-volatile computer-readable storage medium.

[0174] The embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured as the above method.

[0175] In practical applications, the above-mentioned memory can be a volatile memory (volatile memory), such as RAM; or a non-volatile memory (non-volatile memory), such as ROM, flash memory, hard disk drive (HDD) or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor.

[0176] The processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It is understandable that for different devices, the electronic device used to implement the processor function may also be other, which is not specifically limited in the embodiments of the present disclosure.

[0177] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0178] Based on the same technical concept as the aforementioned embodiment, the embodiment of the present disclosure further provides a computer program, which implements the aforementioned method when executed by a processor.

[0179] Figure 8 800 is a block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.

[0180] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0181] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0182] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0183] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0184] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0185] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0186] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0187] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0188] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related personnel information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0189] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0190] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.

[0191] Fig. 9 1 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Fig. 9, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0192] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0193] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0194] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0195] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0196] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0197] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state personnel information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0198] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0199] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0200] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0201] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0202] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A key point detection method, characterized in that: include: Get face image; Using at least two neural network branches included in the target neural network, the face and at least one facial organ in the facial image are processed to obtain a facial key point information set, wherein the facial key point information set includes key point information of the face and key point information of the facial organs; The at least two neural network branches include a first network branch for detecting a face and at least one second network branch for detecting a facial organ, the first detection result output by the first network branch includes global information of the face, key point information of the face and / or feature information of the facial image included in the global information of the face is transmitted to each of the second network branches, and each of the second network branches is used to determine the key point information of the corresponding facial organ in combination with the global information of the face; The second network branch includes a region of interest calibration layer and a feature extraction layer; The method of using at least two neural network branches included in the target neural network to detect the face and at least one facial organ in the facial image to obtain a set of facial key point information includes: Detecting the face through the first network branch to obtain the first detection result; Extracting the detection area of ​​the facial organ through the region of interest calibration layer of each of the second network branches; Extracting image features of the detection area corresponding to the at least one facial organ through the feature extraction layer of each of the second network branches; The key point information of the at least one facial organ is obtained by utilizing the image features of the detection area and the global information of the face.

2. The method according to claim 1, characterized in that The obtaining key point information of at least one facial organ by using the image features of the detection area and the global information of the face includes: Performing at least one fusion process on the image features of the detection area and the corresponding key point information of the face and / or the feature information of the face image to obtain fused feature information; According to the fused feature information, key point information of the facial organs is obtained.

3. The method according to claim 1 or 2, characterized in that: The first detection result also includes detection frame information of at least one facial organ; The extracting the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch includes: Determining the position coordinates of the at least one facial organ in the facial image according to the detection frame information of the at least one facial organ; Through the region of interest calibration layer of each second network branch, the detection area of ​​the facial organ that matches the detection frame information of the at least one facial organ is extracted with the accuracy of the position coordinates.

4. The method according to claim 1 or 2, characterized in that: The detection area of ​​the facial organ includes: feature information of the facial organ area extracted from the facial image, and / or feature information of the facial organ area extracted from feature information of the facial image output by the first network branch.

5. The method according to claim 1 or 2, characterized in that: The first detection result also includes detection frame information of at least one facial organ; Before extracting the detection area of ​​the facial organ through the region of interest calibration layer of each of the second network branches, the method further includes: The detection frame information of the at least one facial organ is enhanced, wherein the enhancement processing includes: scaling transformation processing and / or translation transformation processing.

6. The method according to claim 1 or 2, characterized in that: The number of key points of the face in the key point information of the face ranges from 68 to 128; and / or, The number of the key points of the mouth in the key point information of the facial organs is 40 to 80; and / or, The number of key points of the left eye in the key point information of the facial organs includes 16 to 32; and / or, The number of key points of the right eye in the key point information of the facial organs includes 16 to 32; and / or, The number of key points of the left eyebrow in the key point information of the facial organ includes 10 to 20; and / or, The number of key points of the right eyebrow in the key point information of the facial organs ranges from 10 to 20.

7. The method according to claim 1 or 2, characterized in that: The face image includes key point annotations, and the method further includes: Determining the error loss of the target neural network according to the key point annotations and the face key point information set; Based on the error loss, parameters of at least two neural network branches in the target neural network are jointly updated.

8. A key point detection device, characterized in that: include: An image acquisition module, used for acquiring a face image; A key point detection module, used to process the face and at least one facial organ in the facial image using at least two neural network branches included in the target neural network to obtain a facial key point information set, wherein the facial key point information set includes key point information of the face and key point information of the facial organs; The at least two neural network branches include a first network branch for detecting a face and at least one second network branch for detecting a facial organ, the first detection result output by the first network branch includes global information of the face, key point information of the face and / or feature information of the facial image included in the global information of the face is transmitted to each of the second network branches, and each of the second network branches is used to determine the key point information of the corresponding facial organ in combination with the global information of the face; The second network branch includes a region of interest calibration layer and a feature extraction layer; the key point detection module is used to: detect the face through the first network branch to obtain the first detection result; extract the detection area of ​​the facial organ through the region of interest calibration layer of each second network branch; extract the image features of the detection area corresponding to the at least one facial organ through the feature extraction layer of each second network branch; use the image features of the detection area and the global information of the face to obtain the key point information of the at least one facial organ.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Face detection method and device

    CN107622240A

  • Face key point positioning method and device, equipment and storage medium

    CN108121952A

  • Face image processing method and device and electronic equipment

    CN108229293A

  • Image processing method and system and server

    CN108460343A

  • Face pose angle detection method and system based on neural network

    CN109359537A