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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 