Unlock instant, AI-driven research and patent intelligence for your innovation.

A Method of Portrait Background Cutout

A background matting and portrait technology, applied in the field of image processing, can solve the problems of low efficiency in the application of a large number of photos, difficulty in fully automatic processing of the matting process, minor errors in foreground border matting, etc.

Active Publication Date: 2016-05-25
GUANGZHOU XINGFU NETWORK TECH
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, all of these methods have the following problems: 1) human interaction is required to specify all or part of the foreground and background regions; 2) due to the complexity of the natural image background, small errors in the foreground boundary matting can easily be synthesized Especially for ID photos, because the composite background of ID photos is solid color, tiny matting defects are easily enlarged in the composite image, so there is a higher precision requirement for the foreground boundary
[0012] 1) It relies heavily on Trimap images or scribbles that are manually input interactively as input. It is difficult to fully automate the entire matting process, and the application efficiency is low when a large number of photos need to be processed frequently.
[0013] 2) The boundary between the foreground and the background is blurred, blurred or excessively unsmooth

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
  • A Method of Portrait Background Cutout
  • A Method of Portrait Background Cutout
  • A Method of Portrait Background Cutout

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] Such as figure 1 As shown, the method for portrait background matting in this embodiment takes the portrait of a passport photo as an example, and includes the following steps:

[0067] 1) Obtain the jaw position of the portrait in the photo

[0068] 1.1) Call the waterfall cascade classifier trained by Adaboost in OpenCV to perform pattern matching on the image, detect the position of the face in the image, and then detect the positions of the nose and mouth in the face;

[0069] 1.2) In general, the distance from the nose to the mouth is similar to the distance from the mouth to the chin, calculate the distance between the nose and the mouth, and determine the position of the chin according to the distance between the nose and the mouth and the position of the mouth;

[0070] 2) Pixel-label the area above the chin

[0071] 2.1) Since the color of the clothes is very complicated, it is easy to confuse the background and the hair area, so k-means clustering is perform...

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 portrait background cutout method. The portrait background cutout method comprises the following steps of acquiring the jaw position of a portrait in a picture, marking foreground pixel, background pixel, possible foreground pixel and possible background pixel of an area above the jaw, marking foreground pixel, possible foreground pixel and possible background pixel of an area under the jaw, segmenting the photo according to pixel marks on the whole photo, automatically generating an initial Trimap picture along segmented boundaries, finding hair belonging to foreground in the background area of the Trimap picture, detecting hair gaps belonging to background in the hair area, automatically generating the final Trimap picture according to the hair area and the hair gaps, calculating according to the final Trimap picture to obtain an alpha picture and combining the alpha picture with new background to obtain a new composite result picture the portrait background cutout method can automatically process pictures in batch and enables the transition between background and foreground in the final composite result picture to be smooth and real.

Description

technical field [0001] The invention relates to an image cutout method, in particular to a portrait background cutout method. It belongs to the field of image processing. Background technique [0002] As we all know, the research on image matting has a history of more than 20 years. The so-called matting is to accurately extract the foreground of an object from the background, which can be expressed by the following formula: [0003] I z = α z f z +(1-α z )B z [0004] Among them, α z is the transparency of pixel z: when α z = 0, the pixel z is the background, when α z = 1, pixel z is foreground; F z is the foreground color value of pixel z, B z is the background color value of pixel z, I z The foreground color value is mixed with the background color value to obtain the color value of the pixel z itself. Although most pixels are determined foreground or background, it is necessary to accurately estimate α in the transition region between foreground and backgrou...

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 Patents(China)
IPC IPC(8): G06T7/00G06K9/62
Inventor 不公告发明人
Owner GUANGZHOU XINGFU NETWORK TECH