CN109740431A - From the eyebrow processing method and Related product of the head portrait picture to shoot the video - Google Patents
From the eyebrow processing method and Related product of the head portrait picture to shoot the video Download PDFInfo
- Publication number
- CN109740431A CN109740431A CN201811431497.7A CN201811431497A CN109740431A CN 109740431 A CN109740431 A CN 109740431A CN 201811431497 A CN201811431497 A CN 201811431497A CN 109740431 A CN109740431 A CN 109740431A
- Authority
- CN
- China
- Prior art keywords
- picture
- region
- head portrait
- terminal
- human face
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Analysis (AREA)
- Processing Or Creating Images (AREA)
Abstract
The disclosure provides a kind of eyebrow processing method and Related product from the head portrait picture to shoot the video, and described method includes following steps: when terminal determines the self-timer page for entering self-timer Video Applications, determining the head portrait picture of selection;Terminal acquires the first picture, determines the human face region of the first picture;When terminal recognition head portrait picture includes eyebrow, identifies the personage brow region of human face region, obtain second picture after the pixel of the personage brow region of the first picture is arranged to Transparent color, head portrait picture is superimposed upon second picture and obtains third picture.Technical solution provided by the present application has the advantages that user experience is high.
Description
Technical field
The present invention relates to cultural medium technical fields, and in particular to a kind of eyebrow processing side from the head portrait picture to shoot the video
Method and Related product.
Background technique
Short-sighted frequency, that is, short-movie video is a kind of internet content circulation way, usually propagates on internet new media
Video transmission content of the duration within 1 minute.
It if the head portrait picture of existing short Video Applications has eyebrow, is directly superimposed upon on the picture of shooting, this
For sample for personage's head portrait, which will not be overlapped with the eyebrow of personage, and the picture is caused to have 4 eyebrows in this way, influences
The effect of picture, affects the Experience Degree of user.
Summary of the invention
The embodiment of the invention provides a kind of from the eyebrow processing method and Related product of the head portrait picture that shoot the video, can be with
Transparency process is carried out to the eyebrow of personage's head portrait, avoids the appearance of 4 eyebrows, has the advantages that improve user experience.
In a first aspect, the embodiment of the present invention provides a kind of eyebrow processing method from the head portrait picture to shoot the video, the side
Method includes the following steps:
When terminal determines the self-timer page for entering self-timer Video Applications, the head portrait picture of selection is determined;
Terminal acquires the first picture, determines the human face region of the first picture;
When terminal recognition head portrait picture includes eyebrow, the personage brow region of human face region is identified, by the people of the first picture
The pixel of object brow region obtains second picture after being arranged to Transparent color, and head portrait picture is superimposed upon second picture and obtains third
Picture.
Optionally, the personage brow region of the identification human face region specifically includes:
The vertical centerline for determining human face region determines the rgb value of each pixel of human face region, retains black pixel point
Rgb value, multiple regions are obtained by the distance between black pixel point in the pixel of set distance and at a region, from more
It is searched in a region in setting area and is determined as brow region along symmetrical 2 regions of vertical centerline.
Optionally, the pixel of the personage brow region by the first picture obtains second picture after being arranged to Transparent color
It specifically includes:
0 rank is set by the transparency of the pixel of people's favourite brow region of first picture.
Optionally, the method also includes:
By third picture and second picture split screen display available.
Second aspect, provides a kind of terminal, and the terminal includes: processor, camera and display screen,
The display screen determines the head portrait picture of selection when for determining the self-timer page for entering self-timer Video Applications;
The camera, for acquiring the first picture,
The processor, for determining the human face region of the first picture;When identifying that head portrait picture includes eyebrow, face is identified
The personage brow region in region is arranged to the pixel of the personage brow region of the first picture to obtain the second figure after Transparent color
Head portrait picture is superimposed upon second picture and obtains third picture by piece.
Optionally,
The processor determines each pixel of human face region specifically for determining the vertical centerline of human face region
Rgb value retains the rgb value of black pixel point, by the distance between black pixel point in the pixel of set distance and at one
Region obtains multiple regions, is setting in area and is determining along symmetrical 2 regions of vertical centerline from searching in multiple regions
For brow region.
Optionally, the processor is also used to the transparency of the pixel of people's favourite brow region of first picture
It is set as 0 rank.
Optionally, the processor is also used to control display screen for third picture and second picture split screen display available.
Optionally, the terminal are as follows: smart phone or tablet computer.
The third aspect provides a kind of computer readable storage medium, and storage is used for the program of electronic data interchange,
In, described program makes terminal execute the method that first aspect provides.
The implementation of the embodiments of the present invention has the following beneficial effects:
As can be seen that technical solution provided by the present application determines the head of selection when determining the self-timer page of self-timer application
Picture picture determines human face region after acquiring the first picture, when determining that head portrait picture includes eyebrow, to the eyebrow of human face region
After hair-fields domain is identified, brow region progress transparency process is obtained into second picture, second picture is then superimposed head portrait
Picture obtains third picture, and such third picture is not in 4 eyebrows, improves the visual effect of picture, improves use
Family Experience Degree.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of structural schematic diagram of terminal.
Fig. 2 is a kind of flow diagram of eyebrow processing method from the head portrait picture to shoot the video.
Fig. 3 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing
Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be
System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list
Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that the special characteristic, result or the characteristic that describe can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Refering to fig. 1, Fig. 1 provides a kind of terminal, which is specifically as follows smart phone, tablet computer, computer, clothes
Be engaged in device, which can specifically include for the terminal of the systems such as IOS, Android, above-mentioned terminal: processor, memory,
Camera and display screen, above-mentioned component can be connected by bus, can also be connected by other means, the application is not intended to limit
The concrete mode of above-mentioned connection.
Referring to Fig.2, Fig. 2 provides a kind of eyebrow processing method from the head portrait picture to shoot the video, this method such as Fig. 2 institute
Show, executed by terminal as shown in Figure 1, this method comprises the following steps:
Step S201, when terminal determines the self-timer page for entering self-timer Video Applications, the head portrait picture of selection is determined;
Step S202, terminal acquires the first picture, determines the human face region of the first picture;
Step S203, when terminal recognition head portrait picture includes eyebrow, the personage brow region of human face region is identified, by first
The pixel of the personage brow region of picture obtains second picture after being arranged to Transparent color, and head portrait picture is superimposed upon second picture
Obtain third picture.
Technical solution provided by the present application determines the head portrait picture of selection, adopts when determining the self-timer page of self-timer application
After collecting the first picture, human face region is determined, when determining that head portrait picture includes eyebrow, the brow region of human face region is carried out
After identification, brow region progress transparency process is obtained into second picture, second picture superposition head portrait picture is then obtained the
Three pictures, such third picture are not in 4 eyebrows, improve the visual effect of picture, improve user experience.
Optionally, the mode of the human face region of above-mentioned the first picture of determination can be determined by face recognition algorithms, should
Algorithm includes but is not limited to: Baidu's face recognition algorithms, Google's face recognition algorithms etc..
Optionally, above-mentioned terminal recognition head portrait picture includes that the method for eyebrow can specifically include, and determines the head portrait picture
Whether include eyebrow beautification mark, such as with the eyebrow beautification identify, determine include eyebrow, naturally it is also possible to directly by
The user or producer for providing head portrait picture are marked.
Optionally, the personage brow region of above-mentioned identification human face region can specifically include:
The vertical centerline for determining human face region determines the rgb value of each pixel of human face region, retains black pixel point
Rgb value, by the distance between black pixel point in the pixel of set distance (smaller, such as 1mm) and at a region
Obtain multiple regions, searched from multiple regions setting area (it is moderate, it is smaller than hair zones, it is bigger than the region of mole, such as 5*
It is determined as brow region in 20mm) and along symmetrical 2 regions of vertical centerline.
Optionally, the pixel of the above-mentioned personage brow region by the first picture obtains second picture after being arranged to Transparent color
It can specifically include:
0 rank is set by the transparency (alpha) of the pixel of the personage brow region of first picture.
Optionally, the above method can also include:
By third picture and second picture split screen display available.
Optionally, the above method can also include:
If third picture includes double chin, smooth processing is carried out to the double chin in third picture and obtains the 4th picture.
The above-mentioned double chin in third picture, which carries out smooth processing, can specifically include:
Third picture lines line is obtained, the distance of adjacent 2 lines lines and 2 lines lines is less than to the region of set distance
It is determined as region to be determined, region to be determined is constructed to the equal space line of λ lines line, the picture extracted between equal space line compares really
It is fixed whether consistent, it is such as consistent (for example non-double chin region, picture be it is consistent, the mode that picture compares can be by existing
Alignments realize), determine that the region to be determined is non-double chin region, such as inconsistent (distribution of the double chin due to meat
Unevenly, thus the picture different from each region), determine the region to be determined be double chin region, in double chin region
Upper area construct upper equal space line, the γ picture in extraction between equal space line and upper lines line is downward by the γ picture
Extending λ -1 (i.e. each equal space line local is replaced with γ picture), completion smooth processing in replacement double chin region obtains third afterwards
Picture.
Above-mentioned acquisition third picture lines line can specifically include:
The rgb value of all pixels point of third picture is marked as different colours, determines the different colours in same color
Line segment obtains the distance between different colours line segment if the different colours line segment quantity in same color is more than 2, such as should be away from
From set distance threshold value is less than, determine that different colours line segment is lines line.
For lines line, skin is divided into multiple regions, the rgb value of multiple regions because being all skin,
Rgb value is identical, then the color of skin is all identical color when with color mark, but for lines line, due to
The reason of its folding and light, cause the lines line different from the rgb value of skin, due to marking different colors, the line
The color of route and the color of skin area are inconsistent, and it is line segment, in addition, having double chin at least to have 2
Above lines line, therefore quantity is also 2 or more.Lines line can be distinguished by the method.
A kind of terminal is provided refering to Fig. 3, Fig. 3, the terminal includes: camera, processor and display screen,
The display screen determines the head portrait picture of selection when for determining the self-timer page for entering self-timer Video Applications;
The camera, for acquiring the first picture,
The processor, for determining the human face region of the first picture;When identifying that head portrait picture includes eyebrow, face is identified
The personage brow region in region is arranged to the pixel of the personage brow region of the first picture to obtain the second figure after Transparent color
Head portrait picture is superimposed upon second picture and obtains third picture by piece.
The embodiment of the present invention also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer
It is a kind of from some or all of the eyebrow processing method of head portrait picture that shoots the video step.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side
That records in method embodiment is any from some or all of the eyebrow processing method of head portrait picture to shoot the video step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to alternative embodiment, and related actions and modules is not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention
Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English:
Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and
Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention
There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of eyebrow processing method from the head portrait picture to shoot the video, which is characterized in that described method includes following steps:
When terminal determines the self-timer page for entering self-timer Video Applications, the head portrait picture of selection is determined;
Terminal acquires the first picture, determines the human face region of the first picture;
When terminal recognition head portrait picture includes eyebrow, the personage brow region of human face region is identified, by personage's eyebrow of the first picture
The pixel in hair-fields domain obtains second picture after being arranged to Transparent color, and head portrait picture is superimposed upon second picture and obtains third figure
Piece.
2. the method according to claim 1, wherein the personage brow region of the identification human face region is specifically wrapped
It includes:
The vertical centerline for determining human face region determines the rgb value of each pixel of human face region, retains black pixel point
Rgb value obtains multiple regions by the distance between black pixel point in the pixel of set distance and at a region, from multiple
It is searched in region in setting area and is determined as brow region along symmetrical 2 regions of vertical centerline.
3. the method according to claim 1, wherein the pixel of the personage brow region by the first picture
It is arranged to obtain second picture after Transparent color to specifically include:
0 rank is set by the transparency of the pixel of people's favourite brow region of first picture.
4. the method according to claim 1, wherein the method also includes:
By third picture and second picture split screen display available.
5. a kind of terminal, the terminal includes: processor, camera and display screen, which is characterized in that
The display screen determines the head portrait picture of selection when for determining the self-timer page for entering self-timer Video Applications;
The camera, for acquiring the first picture,
The processor, for determining the human face region of the first picture;When identifying that head portrait picture includes eyebrow, human face region is identified
Personage brow region, the pixel of the personage brow region of the first picture is arranged to obtain second picture after Transparent color, will
Head portrait picture is superimposed upon second picture and obtains third picture.
6. terminal according to claim 5, which is characterized in that
The processor determines the RGB of each pixel of human face region specifically for determining the vertical centerline of human face region
Value, retains the rgb value of black pixel point, by the distance between black pixel point in the pixel of set distance and at a region
Multiple regions are obtained, is setting in area from being searched in multiple regions and is being determined as eyebrow along symmetrical 2 regions of vertical centerline
Hair-fields domain.
7. terminal according to claim 5, which is characterized in that
The processor is also used to set 0 rank for the transparency of the pixel of people's favourite brow region of first picture.
8. terminal according to claim 5, which is characterized in that
The processor is also used to control display screen for third picture and second picture split screen display available.
9. according to terminal described in claim 5-8 any one, which is characterized in that
The terminal are as follows: smart phone or tablet computer.
10. a kind of computer readable storage medium, storage is used for the program of electronic data interchange, wherein described program makes
Terminal executes the method provided such as claim 1-4 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811431497.7A CN109740431B (en) | 2018-11-26 | 2018-11-26 | Eyebrow processing method of head portrait picture of self-shot video and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811431497.7A CN109740431B (en) | 2018-11-26 | 2018-11-26 | Eyebrow processing method of head portrait picture of self-shot video and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109740431A true CN109740431A (en) | 2019-05-10 |
CN109740431B CN109740431B (en) | 2021-11-16 |
Family
ID=66359148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811431497.7A Active CN109740431B (en) | 2018-11-26 | 2018-11-26 | Eyebrow processing method of head portrait picture of self-shot video and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109740431B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113947549A (en) * | 2021-10-22 | 2022-01-18 | 深圳国邦信息技术有限公司 | Self-photographing video decoration prop edge processing method and related product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306293A (en) * | 2011-07-29 | 2012-01-04 | 南京多伦科技有限公司 | Method for judging driver exam in actual road based on facial image identification technology |
CN105224910A (en) * | 2015-08-28 | 2016-01-06 | 华中师范大学 | A kind of system and method for training common notice |
CN107679497A (en) * | 2017-10-11 | 2018-02-09 | 齐鲁工业大学 | Video face textures effect processing method and generation system |
CN107818305A (en) * | 2017-10-31 | 2018-03-20 | 广东欧珀移动通信有限公司 | Image processing method, device, electronic equipment and computer-readable recording medium |
-
2018
- 2018-11-26 CN CN201811431497.7A patent/CN109740431B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306293A (en) * | 2011-07-29 | 2012-01-04 | 南京多伦科技有限公司 | Method for judging driver exam in actual road based on facial image identification technology |
CN105224910A (en) * | 2015-08-28 | 2016-01-06 | 华中师范大学 | A kind of system and method for training common notice |
CN107679497A (en) * | 2017-10-11 | 2018-02-09 | 齐鲁工业大学 | Video face textures effect processing method and generation system |
CN107818305A (en) * | 2017-10-31 | 2018-03-20 | 广东欧珀移动通信有限公司 | Image processing method, device, electronic equipment and computer-readable recording medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113947549A (en) * | 2021-10-22 | 2022-01-18 | 深圳国邦信息技术有限公司 | Self-photographing video decoration prop edge processing method and related product |
Also Published As
Publication number | Publication date |
---|---|
CN109740431B (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9367756B2 (en) | Selection of representative images | |
CN109255346A (en) | Reading method, device and electronic equipment | |
CN110297943A (en) | Adding method, device, electronic equipment and the storage medium of label | |
CN105825535B (en) | A kind of figure layer merging method and system | |
CN106156237B (en) | Information processing method, information processing unit and user equipment | |
CN109658328A (en) | From animal head ear processing method and the Related product of shooting the video | |
CN107291238B (en) | Data processing method and device | |
CN109740431A (en) | From the eyebrow processing method and Related product of the head portrait picture to shoot the video | |
CN103169451A (en) | Disease diagnosis method, disease diagnosis device and set top box | |
CN109697746A (en) | Self-timer video cartoon head portrait stacking method and Related product | |
CN106780660B (en) | A kind of image processing method and electronic equipment | |
CN109697703A (en) | The background stacking method and Related product of video | |
CN109712103A (en) | From the eyes processing method and Related product of the Thunder God picture that shoots the video | |
CN109671014A (en) | From the plait stacking method and Related product to shoot the video | |
CN109688452A (en) | Pagination Display stage property stacking method and Related product | |
CN109712104A (en) | The exposed method of self-timer video cartoon head portrait and Related product | |
CN109671138A (en) | The double method of superpositions of self-timer video head portrait background and Related product | |
CN107566718A (en) | A kind of dual-purpose CCTV camera and implementation method | |
CN110147462A (en) | The verification method and Related product of the short-sighted frequency of religion | |
CN109640170B (en) | Speed processing method of self-shooting video, terminal and storage medium | |
CN109800743A (en) | Wisdom hotel guest room welcome's method and system | |
CN113569077A (en) | Method, device and equipment for recommending clothes | |
CN109639962A (en) | The short-sighted frequency mode selecting method of self-timer and Related product | |
CN109658327A (en) | From hair style generation method and the Related product of shooting the video | |
CN113947549B (en) | Self-shooting video decoration prop edge processing method and related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |