CN109712066A - From animal head ear adding method and the Related product of shooting the video - Google Patents
From animal head ear adding method and the Related product of shooting the video Download PDFInfo
- Publication number
- CN109712066A CN109712066A CN201811419877.9A CN201811419877A CN109712066A CN 109712066 A CN109712066 A CN 109712066A CN 201811419877 A CN201811419877 A CN 201811419877A CN 109712066 A CN109712066 A CN 109712066A
- Authority
- CN
- China
- Prior art keywords
- point
- ear
- picture
- animal head
- square
- 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.)
- Withdrawn
Links
Landscapes
- Studio Devices (AREA)
- Image Analysis (AREA)
Abstract
The disclosure provides a kind of shoot the video certainly animal head ear adding method and Related product, and described method includes following steps: when terminal determines the self-timer page for entering self-timer Video Applications, receiving the animal head of user's selection;Terminal acquires the first picture, determines the point of addition of ear in the human face region and animal head of the first picture;Terminal determines the hair zones of human face region when the point of addition of ear is located at the top of human face region, and hair zones are substituted for the corresponding hair of animal head and obtain second picture, obtains third picture in second picture addition animal head.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 it is a kind of from shoot the video animal head ear adding 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.
There is existing short Video Applications animal head overlaying function the animal head with ear is not gone
Fall the hair of personage's head portrait, the head portrait of addition ear in this way seems very strange, reduces the quality of picture, affect user's
Experience Degree.
Summary of the invention
The embodiment of the invention provides a kind of from shoot the video animal head ear adding method and Related product, may be implemented
The ear of head portrait is added more naturally, promoting the shooting quality of video, has the advantages that improve user experience.
In a first aspect, the embodiment of the present invention provides a kind of animal head ear adding method that shoots the video certainly, the method packet
Include following steps:
When terminal determines the self-timer page for entering self-timer Video Applications, the animal head of user's selection is received;
Terminal acquires the first picture, determines the point of addition of ear in the human face region and animal head of the first picture;
Terminal determines the hair zones of human face region, by head when the point of addition of ear is located at the top of human face region
Hair region is substituted for the corresponding hair of animal head and obtains second picture, obtains third figure in second picture addition animal head
Piece.
Optionally, the hair zones of the determining human face region specifically include:
The rgb value that rgb value identification determines each pixel is carried out to all pixels point of human face region, finds out black
X pixel of rgb value extracts i-th point of execution in x pixel and constructs operation, and building operation may include: such as i-th
Point is not belonging in the square of building, and i-th of square is constructed centered on i-th point, such as belongs to the square constructed at i-th point
Range is incorporated to the square constructed for i-th point, traverses all x pixels execution building operations and obtains y square, by y
The square intersected in a square is divided into a region and obtains multiple regions, and the maximum region of area in multiple regions is true
It is set to hair zones.
Optionally, the point of addition of ear specifically includes in the animal head:
The type for determining animal determines the position of ear according to the type.
Optionally, the point of addition of ear specifically includes in the animal head:
The position for determining animal head ear determines that the point of addition of the ear is located at face if the position is located at top
The top in region.
Second aspect, provides a kind of terminal, and the terminal includes: processor, camera and display screen,
The display screen receives the animal head of user's selection when for determining the self-timer page for entering self-timer Video Applications
Picture;
The camera, for acquiring the first picture;
The processor, the point of addition of ear in the human face region and animal head for determining the first picture;?
When the point of addition of ear is located at the top of human face region, the hair zones of human face region are determined, hair zones are substituted for dynamic
The corresponding hair of object head portrait obtains second picture, obtains third picture in second picture addition animal head.
Optionally, the processor carries out rgb value identification specifically for all pixels point to human face region and determines each
The rgb value of pixel finds out x pixel of black rgb value, and the i-th point of execution extracted in x pixel constructs operation,
Building operation may include: to be not belonging in the square of building such as i-th point, and i-th of square is constructed centered on i-th point,
If belong to the square range constructed, the square constructed is incorporated to by i-th point at i-th point, traverse all x pixels and execute
Building operation obtains y square, and the square intersected in y square is divided into a region and obtains multiple regions, will
The maximum region of area is determined as hair zones in multiple regions.
Optionally, the processor determines the position of ear according to the type specifically for determining the type of animal.
Optionally, the processor determines the position of ear according to the type specifically for determining the type of animal.
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 the first picture is acquired after technical solution provided by the present application determines the animal head that user selects,
Then the point of addition for determining ear in human face region and animal head, when determining that position is located at top, by human face region
Hair zones are substituted for the corresponding hair of animal, then in the superposition for carrying out animal head, thus avoid the occurrence of the hair of people
The ear of animal improves the visual effect of picture, improves from the Experience Degree to shoot the video.
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 from the animal head ear adding method that shoots 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 provide it is a kind of from the animal head ear adding method that shoots the video, this method as shown in Fig. 2, by
Terminal as shown in Figure 1 executes, and this method comprises the following steps:
Step S201, when terminal determines the self-timer page for entering self-timer Video Applications, the animal head of user's selection is received;
Step S202, terminal acquires the first picture, determines ear in the human face region and animal head of the first picture
Point of addition;
Step S203, terminal determines the hair of human face region when the point of addition of ear is located at the top of human face region
Hair zones are substituted for the corresponding hair of animal head and obtain second picture by region, are obtained in second picture addition animal head
To third picture.
After technical solution provided by the present application determines the animal head of user's selection, the first picture is acquired, is then determined
The point of addition of ear in human face region and animal head, when determining that position is located at top, by the hair zones of human face region
It is substituted for the corresponding hair of animal, then in the superposition for carrying out animal head, thus avoids the occurrence of the ear of the hair animal of people
Piece, the visual effect of picture is improved, is improved from the Experience Degree to shoot the video.
Optionally, the hair zones of above-mentioned determining human face region can specifically include:
The rgb value that rgb value identification determines each pixel is carried out to all pixels point of human face region, finds out black
X pixel of rgb value extracts i-th point of execution in x pixel and constructs operation, and building operation may include: such as i-th
Point is not belonging in the square of building, and i-th of square is constructed centered on i-th point, such as belongs to the square constructed at i-th point
Range is incorporated to the square constructed for i-th point, traverses all x pixels execution building operations and obtains y square, by y
The square intersected in a square is divided into a region and obtains multiple regions, and the maximum region of area in multiple regions is true
It is set to hair zones.
This is directed to the hair zones confirmation method of black hair, for example other colors, black rgb value can be substituted for pair
Answer color, such as white, yellow etc..
Optionally, the implementation method of the point of addition of ear can specifically include in above-mentioned animal head:
The type for determining animal determines the position of ear according to the type.
Specific method, such as animal are the animals such as rabbit, cat, can directly determine the ear location and be located at top.
Optionally, the implementation method of the point of addition of ear can specifically include in above-mentioned animal head:
The position for determining animal head ear determines that the point of addition of the ear is located at face if the position is located at top
The top in region.
A kind of terminal is provided refering to Fig. 3, Fig. 3, the terminal includes: camera, processor and display screen,
The display screen receives the animal head of user's selection when for determining the self-timer page for entering self-timer Video Applications
Picture;
The camera, for acquiring the first picture;
The processor, the point of addition of ear in the human face region and animal head for determining the first picture;?
When the point of addition of ear is located at the top of human face region, the hair zones of human face region are determined, hair zones are substituted for dynamic
The corresponding hair of object head portrait obtains second picture, obtains third picture in second picture addition animal head.
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
A kind of some or all of animal head ear adding method step that shoots the video certainly.
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 animal head ear adding method step that shoots the video.
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 from the animal head ear adding method that shoots 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 animal head of user's selection is received;
Terminal acquires the first picture, determines the point of addition of ear in the human face region and animal head of the first picture;
Terminal determines the hair zones of human face region when the point of addition of ear is located at the top of human face region, by hair area
Domain is substituted for the corresponding hair of animal head and obtains second picture, obtains third picture in second picture addition animal head.
2. the method according to claim 1, wherein the hair zones of the determining human face region specifically include:
The rgb value that rgb value identification determines each pixel is carried out to all pixels point of human face region, finds out black rgb value
X pixel, extract x pixel in i-th point of execution building operate, the building operate may include: as i-th point does not belong to
In in the square of building, constructing i-th of square centered on i-th point, such as belong to the square range constructed at i-th point,
It is incorporated to the square constructed by i-th point, all x pixels execution building operations is traversed and obtains y square, just by y
The square of rectangular middle intersection is divided into a region and obtains multiple regions, and the maximum region of area in multiple regions is determined as
Hair zones.
3. the method according to claim 1, wherein the point of addition of ear specifically wraps in the animal head
It includes:
The type for determining animal determines the position of ear according to the type.
4. the method according to claim 1, wherein the point of addition of ear specifically wraps in the animal head
It includes:
The position for determining animal head ear determines that the point of addition of the ear is located at human face region if the position is located at top
Top.
5. a kind of terminal, the terminal includes: processor, camera and display screen, which is characterized in that
The display screen receives the animal head of user's selection when for determining the self-timer page for entering self-timer Video Applications;
The camera, for acquiring the first picture;
The processor, the point of addition of ear in the human face region and animal head for determining the first picture;In ear
Point of addition when being located at the top of human face region, determine the hair zones of human face region, hair zones be substituted for animal head
As corresponding hair obtains second picture, third picture is obtained in second picture addition animal head.
6. terminal according to claim 5, which is characterized in that
The processor carries out the RGB that rgb value identification determines each pixel specifically for all pixels point to human face region
Value finds out x pixel of black rgb value, extracts i-th point of execution in x pixel and constructs operation, building operation can
To include: to be not belonging in the square of building such as i-th point, i-th of square is constructed centered on i-th point, is such as belonged to for i-th point
The square range of building is incorporated to the square constructed for i-th point, traverses all x pixels execution building operations and obtains y
The square intersected in y square is divided into a region and obtains multiple regions, by area in multiple regions by a square
Maximum region is determined as hair zones.
7. terminal according to claim 5, which is characterized in that
The processor determines the position of ear according to the type specifically for determining the type of animal.
8. terminal according to claim 5, which is characterized in that
The processor determines the position of ear according to the type specifically for determining the type of animal.
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 |
---|---|---|---|
CN201811419877.9A CN109712066A (en) | 2018-11-26 | 2018-11-26 | From animal head ear adding method and the Related product of shooting the video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811419877.9A CN109712066A (en) | 2018-11-26 | 2018-11-26 | From animal head ear adding method and the Related product of shooting the video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109712066A true CN109712066A (en) | 2019-05-03 |
Family
ID=66254343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811419877.9A Withdrawn CN109712066A (en) | 2018-11-26 | 2018-11-26 | From animal head ear adding method and the Related product of shooting the video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109712066A (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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116763A (en) * | 2013-01-30 | 2013-05-22 | 宁波大学 | Vivo-face detection method based on HSV (hue, saturation, value) color space statistical characteristics |
CN105513013A (en) * | 2016-01-18 | 2016-04-20 | 王雨轩 | Method for compounding hair styles in mobile phone pictures |
CN105872338A (en) * | 2016-05-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and device |
CN106203399A (en) * | 2016-07-27 | 2016-12-07 | 厦门美图之家科技有限公司 | A kind of image processing method, device and calculating equipment |
WO2017128252A1 (en) * | 2016-01-28 | 2017-08-03 | 吕璇 | Data collection method for picture processing technology and intelligent mobile terminal |
-
2018
- 2018-11-26 CN CN201811419877.9A patent/CN109712066A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116763A (en) * | 2013-01-30 | 2013-05-22 | 宁波大学 | Vivo-face detection method based on HSV (hue, saturation, value) color space statistical characteristics |
CN105513013A (en) * | 2016-01-18 | 2016-04-20 | 王雨轩 | Method for compounding hair styles in mobile phone pictures |
WO2017128252A1 (en) * | 2016-01-28 | 2017-08-03 | 吕璇 | Data collection method for picture processing technology and intelligent mobile terminal |
CN105872338A (en) * | 2016-05-31 | 2016-08-17 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and device |
CN106203399A (en) * | 2016-07-27 | 2016-12-07 | 厦门美图之家科技有限公司 | A kind of image processing method, device and calculating equipment |
Cited By (2)
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 |
CN113947549B (en) * | 2021-10-22 | 2022-10-25 | 深圳国邦信息技术有限公司 | Self-shooting video decoration prop edge processing method and related product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106156237B (en) | Information processing method, information processing unit and user equipment | |
CN108304562B (en) | Question searching method and device and intelligent terminal | |
CN106162303B (en) | Information processing method, information processing unit and user equipment | |
CN112950738B (en) | Rendering engine processing method and device, storage medium and electronic equipment | |
CN113434844A (en) | Intelligent scene building method and device, storage medium and electronic equipment | |
CN109658328A (en) | From animal head ear processing method and the Related product of shooting the video | |
CN109726632A (en) | Background recommended method and Related product | |
CN109712066A (en) | From animal head ear adding method and the Related product of shooting the video | |
CN109697746A (en) | Self-timer video cartoon head portrait stacking method and Related product | |
CN109697703A (en) | The background stacking method and Related product of video | |
CN109671014A (en) | From the plait stacking method and Related product to shoot the video | |
CN108647069B (en) | Interface display method and device, storage medium and electronic device | |
CN109688452A (en) | Pagination Display stage property stacking method and Related product | |
CN108924628A (en) | The Hardware match playback method and Related product of promotion video | |
CN109712104A (en) | The exposed method of self-timer video cartoon head portrait and Related product | |
CN109660739A (en) | The stacking method and Related product of short-sighted frequency certain effects | |
CN110337074B (en) | Interactive information transmission method, system and terminal equipment | |
CN110147462A (en) | The verification method and Related product of the short-sighted frequency of religion | |
CN109712103A (en) | From the eyes processing method and Related product of the Thunder God picture that shoots the video | |
CN109660717A (en) | From the stacking method and Related product of the earphone image that shoots the video | |
CN109618211A (en) | Short-sighted channel tool edit methods and Related product | |
CN109525499A (en) | The flow managing method and Related product of short Video Applications | |
CN109756672A (en) | Short-sighted frequency animal model stacking method and Related product | |
CN106201930A (en) | A kind of device port determines device, terminal and method | |
CN108989839A (en) | The leading role's selection method and Related product of promotion video |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190503 |