Refined photo hair dyeing method and system

A refined, photographic technology, applied in image data processing, instruments, calculations, etc., can solve the problems of poor transition effect between hair and skin areas, inability to transition naturally, inaccurate segmentation, etc., and achieve better natural and transitional dyeing results. The effect is natural and avoids the effect of probabilistic models

Active Publication Date: 2020-04-07
HANGZHOU QUWEI SCI & TECH
View PDF12 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above-mentioned virtual hair dyeing method based on semantic segmentation of image semantic segmentation can improve the accuracy and robustness of virtual hair dyeing to a certain extent. However, it uses a deep learning model to segment the hair region of the image, and the segmentation is not accurate. The problem is that in the segmentation results, in addition to the hair area, there are also mis-segmented skin areas and background areas such as clothes
Therefore, when the segmentation of hair regions, especially hair strands, is not yet precise, this hair dyeing method has the problems of very poor transition effect between hair and skin regions, no natural transition, and obvious dividing lines

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Refined photo hair dyeing method and system
  • Refined photo hair dyeing method and system
  • Refined photo hair dyeing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] Such as figure 1 As shown, the present embodiment proposes a method for refining photo hair dyeing, including:

[0063] S1. Based on the convolutional neural network, the segmentation network model training is performed on the hair sample data;

[0064] As mentioned above, to color a photo, you first need to segment the hair region. In order to improve the accuracy of photo segmentation, the hair sample data of the present invention includes 10000+ hair sample photos. Due to the large sample set, it is difficult to collect sample data. Therefore, the present invention collects 1000 hair photos, and randomly performs image enhancement operations such as rotation, translation, staggered transformation, and scaling on the 1000 hair photos to expand the data samples. Operations such as rotation angle and zoom ratio randomly select the corresponding values ​​to ensure the randomness of the generated pictures. Through the enhancement of photo data, 10000+ hair sample photo...

Embodiment 2

[0111] Such as figure 2 As shown, the present embodiment proposes a refined photo hair coloring system, including:

[0112] The training module is used to perform segmentation network model training on the hair sample data based on the convolutional neural network;

[0113] As mentioned above, to color a photo, you first need to segment the hair region. In order to improve the accuracy of photo segmentation, the hair sample data of the present invention includes 10000+ hair sample photos. Due to the large sample set, it is difficult to collect sample data. Therefore, the present invention collects 1000 hair photos, and randomly performs image enhancement operations such as rotation, translation, staggered transformation, and scaling on the 1000 hair photos to expand the data samples. Operations such as rotation angle and zoom ratio randomly select the corresponding values ​​to ensure the randomness of the generated pictures. Through the enhancement of photo data, 10000+ ha...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a refined photo hair dyeing method and system, and the method comprises the steps: S1, carrying out the segmentation network model training of hair sample data based on a convolutional neural network; s2, performing hair region segmentation on the original picture based on the trained segmentation network model to obtain a segmentation picture mask; s3, performing Gaussianfiltering on the segmentation image mask to obtain a filtering effect image; s4, obtaining a hair area in the original picture according to the filtering effect picture, and performing color adjustment on the hair area to obtain a first dyed picture; s5, performing Alpha fusion on the original picture, the filtering effect picture and the first dyed picture to obtain a second dyed picture; s6, calculating a hair probability graph based on the original picture; and S7, performing refined hair fusion on the original picture, the second dyed picture and the hair probability graph to obtain a final dyed hair picture. According to the method, the hair probability graph is calculated, the influence of areas such as skin and clothes on hair dyeing is effectively weakened, transition is natural, and the sense of discomfort is small.

Description

technical field [0001] The invention relates to the field of photo processing, in particular to a fine photo hair dyeing method and system. Background technique [0002] Makeup and styling are an indispensable part of women's daily life, and hairstyle and hair color have a key impact on women's overall makeup image. Therefore, how to choose a hair color that suits them has gradually become a hot issue for women. Hair dyeing has become a common method for people to change their styling. Due to the uncertainty of the effect after hair dyeing, most people take a cautious attitude towards hair dyeing. Image processing technology for virtual hair coloring has begun to emerge. After the user uploads the photo, through image processing, different dyeing effects are presented to the user. [0003] In the process of realizing the function of virtual hair dyeing, the segmentation of hair area is the most basic and most important step. It mainly focuses on segmentation based on human...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/11G06T7/90
CPCG06T7/11G06T7/90G06T2207/20081G06T2207/20084G06T2207/20221G06T2207/30196Y02P90/30
Inventor 胡耀武李云夕熊永春
Owner HANGZHOU QUWEI SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products