Method, system and neural network training method and storage medium related to problem skin part detection

Through feature fusion neural network training and labeling methods, combined with original and enhanced facial images, the problem of difficulty in detecting early acne and spots in the existing technology is solved, and accurate labeling and detection of problematic skin parts is achieved.

CN112257782BActive Publication Date: 2024-09-10GUANGDONG HOYAR TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011140109.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-22
Publication Date
2024-09-10
Estimated Expiration
2040-10-22

AI Technical Summary

Technical Problem

It is difficult to accurately detect problem skin areas such as early stage acne and spots with existing technology, and the image enhancement method will cause the color of the problem skin area to be similar to the color of the inherent parts of the face, making it difficult to distinguish.

Method used

The feature fusion neural network training method is used to obtain the original facial image and the facial enhanced image, and then combine the problem skin part annotation map for pattern recognition training. After the training is completed, the feature fusion neural network is used to output the problem skin part annotation map to achieve the problem skin part identification map. Accurate detection.

Benefits of technology

It can accurately detect all problem skin parts, avoid the problem of difficulty in distinguishing the color of problem skin parts from the inherent parts of the face after image enhancement, and improve the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112257782B
    Figure CN112257782B
Patent Text Reader

Abstract

Compared with the prior art, the method, system, neural network training method and storage medium related to problem skin part detection provided by the present invention determine the problem skin parts that are difficult to detect through facial enhanced images, exclude the inherent parts of the face through the original facial images, and use the feature fusion neural network to fuse the features of the original facial image and the facial enhanced image, thereby obtaining the ability to accurately mark all problem skin parts, thereby providing a method for accurately detecting problem skin parts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method, system and neural network training method and storage medium related to problem skin part detection. Background Art

[0002] Usually, before performing facial beauty treatment, it is necessary to determine the user's skin condition according to the user's needs. For example, if a user wants to remove spots, it is necessary to detect the facial skin to determine the parts of the facial skin with spots, and then remove the spots on the skin with spots. Similarly, if a user wants to remove acne, it is also necessary to first determine the parts with acne, and then remove the acne on the skin with acne. For the sake of ease of description, the skin parts with spots, acne and other problems are referred to as problem skin parts below.

[0003] At present, the commonly used method for detecting problematic skin parts is to directly take a facial photo, and then use the characteristic that the color of the problematic skin part is darker than the color of the non-problematic skin part to identify the problematic skin part through image recognition technology, so as to detect the problematic skin part. The beauty equipment then performs targeted beauty treatment on the detected problematic skin part. The disadvantage of this method is that for skin with early acne and spots, since the color is not much different from the color of the non-problematic skin part, it is difficult to detect them. It is often necessary to wait until the acne and spots become darker and the situation becomes more serious before they can be detected. At this time, the effect of beauty treatment is not as good as that of beauty treatment in the early stage.

[0004] In this regard, there is currently a method for detecting problematic skin parts by image enhancement. Specifically, the facial image is enhanced to make the color of the problematic skin parts darker and easier to detect. However, this method also has the following disadvantages: due to the darkening of the color of the problematic skin parts after image enhancement, the color of some problematic skin parts will be similar to the color of the inherent facial parts such as moles and eyebrows, making it difficult to distinguish the problematic skin parts from the inherent facial parts by color.

[0005] In summary, there is currently a lack of a method that can accurately detect problematic skin areas. Summary of the invention

[0006] The technical problem solved by the invention is to provide a method for accurately detecting problematic skin parts.

[0007] The present invention provides a method for detecting problematic skin parts, including a method for training a feature fusion neural network and a method for labeling problematic skin parts, which are described in detail as follows.

[0008] First, the training method for the feature fusion neural network is given:

[0009] P. Perform the following sample acquisition steps multiple times to obtain multiple groups of learning samples. Each sample acquisition step includes the following A, B, and C:

[0010] ——A. Obtain original facial images and facial enhanced images;

[0011] ——B. Obtain a marked image of the problematic skin area;

[0012] ——C. Taking the original face image and the enhanced face image as input signals and the problematic skin part annotation map as output signals, a set of learning samples is formed for the feature fusion neural network to perform pattern recognition training;

[0013] Q. Use the above-mentioned multiple groups of learning samples to perform pattern recognition training on the feature fusion neural network until the feature fusion neural network has the ability to give a labeling map of the problematic skin parts based on the original facial image and the facial enhanced image.

[0014] After the feature fusion neural network is trained, we can detect problematic skin parts based on the original facial image. The present invention provides a method for marking problematic skin parts:

[0015] An image acquisition step, which acquires an original facial image;

[0016] An image enhancement step is performed on the original facial image to obtain a facial enhanced image;

[0017] The result output step inputs the original facial image and the enhanced facial image into a trained feature fusion neural network, and the feature fusion neural network outputs a labeled image of the problematic skin area.

[0018] Correspondingly, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for training a feature fusion neural network to obtain a labeled map of problematic skin areas.

[0019] Correspondingly, the present invention also provides a computer-readable storage medium storing a computer program, which implements the method for marking problematic skin areas when executed by a processor.

[0020] Furthermore, the present invention also provides a problem skin area detection system based on a neural network, including a camera, a processor, and the computer-readable storage medium, wherein the processor executes a program stored in the computer-readable storage medium to control the camera to capture an original facial image.

[0021] Compared with the prior art, the method, system, neural network training method and storage medium related to problem skin part detection provided by the present invention determine the problem skin parts that are difficult to detect through facial enhanced images, exclude the inherent parts of the face through the original facial images, and use the feature fusion neural network to fuse the features of the original facial image and the facial enhanced image, thereby obtaining the ability to accurately mark all problem skin parts, thereby providing a method for accurately detecting problem skin parts. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 Schematic diagram of a problem skin area detection method based on a neural network algorithm. DETAILED DESCRIPTION

[0023] When the user needs to perform freckle removal beauty treatment, it is necessary to first identify the skin with freckles. The skin with freckles is called the problem skin area. The steps for detecting the problem skin area are as follows: Figure 1 As shown, details are as follows.

[0024] S1. Image acquisition step: The camera captures a facial photo in RGB color mode, which is the original facial image.

[0025] S2. Image enhancement step: convert the original facial image from RGB color mode to YCbCr color mode, and calculate the color coordinates of each pixel in the original facial image in YCbCr color mode. Calculate the relative position relationship parameters between the color coordinates of each pixel in the original facial image in YCbCr color mode and the preset straight line L in the rectangular coordinate system, and magnify the relative position relationship parameters by a set multiple to obtain a parameter-enlarged image. Perform Butterworth probability fusion calculation on the parameter-enlarged image and the grayscale photo. The grayscale photo has the same size as the parameter-enlarged image, and the grayscale values ​​of all pixels in the grayscale photo are preset values. Convert the relative position relationship parameters between the color coordinates of each pixel after probability fusion and the straight line L into integer grayscale values, assign the integer grayscale values ​​to the corresponding pixels, and thus obtain a facial grayscale image. Replace the grayscale values ​​of each pixel in the facial grayscale image with the corresponding color values ​​according to the preset correspondence between grayscale values ​​and color values ​​to obtain a facial enhanced image.

[0026] S3. Result output step: Before this step, the feature fusion neural network needs to be trained. In order to train the feature fusion neural network, it is necessary to collect feature fusion neural network learning samples. The learning sample collection process is as follows:

[0027] Obtain an original facial image, perform the aforementioned image enhancement on the original facial image, and thereby obtain an enhanced facial image. Artificially mark the darker problematic skin areas on the original facial image (these darker problematic skin areas are problematic skin areas that are easily detected on the original facial image and can be directly marked manually), and then artificially mark the lighter problematic skin areas on the original facial image based on the enhanced image (these lighter problematic skin areas are not easily detected on the original facial image, but can be detected on the enhanced facial image, so the lighter problematic skin areas can be artificially marked on the original facial image based on the enhanced facial image, thereby marking all problematic skin areas on the original facial image), and the original facial image with all problematic skin areas marked is used as a problematic skin area marking map. The original facial image and the enhanced facial image are used as input signals, and the enhanced facial image with all problematic skin areas marked is used as an output signal to form a set of learning samples. Multiple sets of learning samples are constructed using the above method to train the feature fusion neural network. Among them, the problem skin part marking map: can be changed to a facial enhanced image with all problem skin parts marked. Specifically, all darker skin parts are manually marked on the original facial image. Since the color of the problem skin parts becomes darker after image enhancement, the color of some problem skin parts will be close to the color of the inherent facial parts such as moles and eyebrows that originally existed on the face. All the marked darker skin parts include both problem skin parts and inherent facial parts. Therefore, it is necessary to manually exclude the inherent facial parts from all darker skin parts based on the original facial image, so as to manually mark all problem skin parts on the enhanced facial image; it can also be changed to be composed of the aforementioned original facial image with all problem skin parts marked and the aforementioned enhanced facial image with all problem skin parts marked.

[0028] After the feature fusion neural network training is completed, the problematic skin parts can be detected based on the original facial image: the original facial image obtained in the aforementioned image acquisition step and the facial enhanced image obtained in the aforementioned image enhancement step are input into the trained feature fusion neural network, and the feature fusion neural network outputs a labeled map of the problematic skin parts.

Claims

1. A method for training a feature fusion neural network to obtain a labeled map of problematic skin areas, Its characteristics are The following steps are involved: P. Execute the following sample acquisition steps multiple times to obtain multiple groups of learning samples, each sample acquisition step includes the following A, B, C: - A. Acquire the original facial image and the enhanced facial image; - B. Acquire the problem skin part annotation map: obtain the original annotation map of the problem skin part with darker color manually annotated on the original facial image, and the original annotation map excludes the darker inherent part of the face; obtain the enhanced annotation map of the problem skin part with lighter color manually annotated on the enhanced facial image; the problem skin parts annotated by the original annotation map and the enhanced annotation map together constitute the problem skin parts annotated by the problem skin part annotation map; the original facial image with all the problem skin parts annotated is used as the problem skin part annotation map; - C. Use the original facial image and the enhanced facial image as input signals and the problem skin part annotation map as output signals to form a group of learning samples for pattern recognition training of the feature fusion neural network; Q. Use the above multiple groups of learning samples to perform pattern recognition training on the feature fusion neural network until the feature fusion neural network has the ability to give the problem skin part annotation map based on the original facial image and the enhanced facial image.

2. The method for training a feature fusion neural network for obtaining a problem skin part annotation map according to claim 1, Its characteristics are: The problematic skin parts labeling image includes an original facial image with all problematic skin parts labeled and an enhanced facial image with all problematic skin parts labeled.

3. A computer-readable storage medium storing a computer program, Its characteristics are When the program is executed by a processor, the method for training a feature fusion neural network for obtaining a labeled map of problematic skin parts as described in claim 1 or 2 is implemented.

4. A method for marking problematic skin areas. Its characteristics are The following steps are involved: An image acquisition step, which acquires an original facial image; An image enhancement step is performed on the original facial image to obtain a facial enhanced image; A result output step, in which the original facial image and the enhanced facial image are input into a trained feature fusion neural network, and the feature fusion neural network outputs a labeling map of the problematic skin part; The trained feature fusion neural network is obtained by training the feature fusion neural network according to the training method for obtaining a problem skin part labeling map according to claim 1.

5. A method for marking problematic skin parts according to claim 4, Its characteristics are The image enhancement step specifically comprises: converting the original facial image into an image in a YCbCr color space, calculating the color coordinates of each pixel in the image in the YCbCr color space and the relative position relationship parameters between the color coordinates and a preset straight line L, amplifying the relative position relationship parameters by a set multiple to obtain a parameter-enlarged image, performing a Butterworth probability fusion calculation on the parameter-enlarged image and a preset grayscale photo, converting the relative position relationship parameters between the color coordinates of each pixel after the probability fusion and the straight line L into an integer grayscale value, assigning the integer grayscale value to the corresponding pixel, thereby obtaining a facial grayscale image, replacing the grayscale value of each pixel in the facial grayscale image with the corresponding color value according to the preset correspondence between the grayscale value and the color value, and obtaining a facial enhanced image.

6. A computer-readable storage medium storing a computer program, Its characteristics are When the program is executed by a processor, the method for marking problematic skin parts as claimed in claim 4 or 5 is implemented.

7. A problem skin part detection system based on neural network, comprising a camera, a processor, Its characteristics are The computer-readable storage medium as claimed in claim 6 is included, and the processor executes the program stored in the computer-readable storage medium to control the camera to capture the original facial image.

8. A method for detecting problematic skin areas, Its characteristics are It includes the method for training a feature fusion neural network to obtain a labeled map of problematic skin parts as described in claim 1 and the method for labeling problematic skin parts as described in claim 4.

9. A computer-readable storage medium storing a computer program, Its characteristics are When the program is executed by a processor, the method for detecting problematic skin areas as claimed in claim 8 is implemented.