CN105678686A - Picture processing method and device - Google Patents

Picture processing method and device Download PDF

Info

Publication number
CN105678686A
CN105678686A CN201511023543.6A CN201511023543A CN105678686A CN 105678686 A CN105678686 A CN 105678686A CN 201511023543 A CN201511023543 A CN 201511023543A CN 105678686 A CN105678686 A CN 105678686A
Authority
CN
China
Prior art keywords
target
human body
area
type
sticker
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
Application number
CN201511023543.6A
Other languages
Chinese (zh)
Other versions
CN105678686B (en
Inventor
钟久祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jupiter Technology Co ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201511023543.6A priority Critical patent/CN105678686B/en
Publication of CN105678686A publication Critical patent/CN105678686A/en
Application granted granted Critical
Publication of CN105678686B publication Critical patent/CN105678686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a picture processing method and a device, which are used for obtaining a target decoration sticker selected by a user for a target picture, determining a target human body area type corresponding to the target decoration sticker according to the type information of the target decoration sticker, identifying a target human body area of a figure displayed in the target picture, which corresponds to the target human body area type, calculating size information to be utilized and an area to be added of the decoration sticker in the target picture according to the identified target human body area and the type information of the target decoration sticker, adjusting the target decoration sticker according to the size information to be utilized, and adding the adjusted target decoration sticker to the area to be added of the target picture. Therefore, the invention can automatically determine the size information to be utilized and the area to be added of the target decoration sticker, can automatically add the target decoration sticker to the target picture without manual operation of a user, is simple and convenient to operate and reduces the time consumption.

Description

Picture processing method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method and apparatus.
Background
With the development of mobile internet and the popularization of smart phones, people have become very common to take pictures with mobile phones and share pictures with others through networks. Among pictures taken by people, many pictures contain human body information.
Before people can share the pictures with human bodies, people sometimes need to decorate the pictures. Where adding decorative stickers to pictures is a common option. Such as wearing a hat for a person's face, wearing a pair of glasses for the eyes, etc.
The existing sticker adding mode is that after a user selects a needed sticker and issues a sticker adding instruction, a program adds the corresponding sticker to a picture in a position random mode. Because the position and the size of the paster added by the method are random, the paster can be placed at a proper position by a user through manual operation after the paster is added, and therefore, the method is complex in operation and takes much time.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for processing an image, which are simple and convenient to operate and reduce the time consumption. The specific technical scheme is as follows:
the invention provides a picture processing method, which comprises the following steps:
obtaining a target decorative paster selected by a user for a target picture;
determining the type of a target human body area corresponding to the target decoration sticker according to the type information of the target decoration sticker;
identifying a target human body area of a figure displayed in the target picture, wherein the target human body area corresponds to the type of the target human body area;
calculating the size information to be utilized and the area to be added of the target decoration sticker in the target picture according to the identified target human body area and the type information of the target decoration sticker;
and adjusting the target decoration paster according to the size information to be utilized, and adding the adjusted target decoration paster to the area to be added of the target picture.
Optionally, the method further includes:
receiving an adjusting instruction sent by a user;
and responding to the adjusting instruction, and adjusting the area and/or the size of the added target ornament paper in the target picture.
Optionally, according to the type information of the target ornament sticker, determining the type of the target human body region corresponding to the target ornament sticker includes:
determining the human body area type corresponding to the type information of the target decoration sticker as the target human body area type corresponding to the target decoration sticker from a preset database;
the preset database stores the corresponding relation between the type information of the decorative sticker and the type of the human body area.
Optionally, the types of the target human body region are: eyes, nose, mouth or face.
Optionally, when the type of the target human body region is an eye, the identifying a target human body region of a person displayed in the target picture, which corresponds to the type of the target human body region, includes:
identifying a target face area in the target picture, and determining an area where eyes are located according to a first preset position relation between a face and the eyes;
or,
when the type of the target human body region is a nose, the identifying the target human body region of the person displayed in the target picture, which corresponds to the type of the target human body region, includes:
identifying a target face region in the target picture, and determining a region where a nose is located according to a second preset position relation between the face and the nose;
or,
when the type of the target human body area is mouth, the identifying the target human body area of the figure displayed in the target picture, which corresponds to the type of the target human body area, includes:
identifying a target face region in the target picture, and determining a region where the mouth is located according to a third preset position relation between the face and the mouth;
or,
when the type of the target human body region is a face, the identifying a target human body region of a person displayed in the target picture, which corresponds to the type of the target human body region, includes:
and identifying a target face area in the target picture and determining an area where the face is located.
Optionally, adding the adjusted target ornament sticker to the to-be-added area of the target picture includes:
determining a first reference point of the adjusted target ornament mark;
determining a second datum point corresponding to the first datum point in the area to be added;
and adding the adjusted target ornament paster in the area to be added of the target picture based on the first reference point and the second reference point.
The invention provides a picture processing device, comprising: the device comprises an obtaining module, a determining module, an identifying module, a calculating module and an adding module;
the obtaining module is used for obtaining a target ornament paper selected by a user for a target picture;
the determining module is used for determining the type of the target human body area corresponding to the target decoration sticker according to the type information of the target decoration sticker;
the identification module is used for identifying a target human body area of a figure displayed in the target picture, wherein the target human body area corresponds to the type of the target human body area;
the calculation module is used for calculating the size information to be utilized and the area to be added of the target decoration sticker in the target picture according to the identified target human body area and the type information of the target decoration sticker;
and the adding module is used for adjusting the target decoration sticker according to the size information to be utilized and adding the adjusted target decoration sticker to the area to be added of the target picture.
Optionally, the method further includes: the device comprises a receiving module and an adjusting module;
the receiving module is used for receiving an adjusting instruction sent by a user;
and the adjusting module is used for responding to the adjusting instruction and adjusting the area and/or the size of the added target ornament paper in the target picture.
Optionally, the determining module includes:
a first region type determining unit, configured to determine, from a preset database, a human body region type corresponding to the type information of the target decoration sticker as a target human body region type corresponding to the target decoration sticker;
the preset database stores the corresponding relation between the type information of the decorative sticker and the type of the human body area.
Optionally, the types of the target human body region are: eyes, nose, mouth or face.
Optionally, the identification module includes:
the eye identification unit is used for identifying a target human face area in the target picture when the type of the target human body area is eyes, and determining the area where the eyes are located according to a first preset position relation between the human face and the eyes;
or,
the identification module comprises:
the nose identification unit is used for identifying a target face region in the target picture when the type of the target human body region is a nose, and determining a region where the nose is located according to a second preset position relation between the face and the nose;
or,
the identification module comprises:
the mouth recognition unit is used for recognizing a target face region in the target picture when the type of the target human body region is a mouth, and determining a region where the mouth is located according to a third preset position relation between the face and the mouth;
or,
the identification module comprises:
and the face identification unit is used for identifying a target face area in the target picture and determining an area where the face is located when the type of the target human body area is the face.
Optionally, the adding module includes:
a first reference point determining unit, configured to determine a first reference point of the adjusted target ornament sticker after the adding module adjusts the target ornament sticker according to the size information to be utilized;
the second reference point determining unit is used for determining a second reference point corresponding to the first reference point in the area to be added;
and the adding unit is used for adding the adjusted target ornament paster in the area to be added of the target picture based on the first reference point and the second reference point.
Compared with the prior art, in the embodiment of the invention, the size information to be utilized and the area to be added of the target decoration sticker in the target picture are calculated according to the identified target human body area and the type information of the target decoration sticker, the target decoration sticker is adjusted according to the size information to be utilized, and the adjusted target decoration sticker is added to the area to be added of the target picture. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a picture processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another image processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem of the prior art, embodiments of the present invention provide a method and an apparatus for processing an image.
First, a picture processing method provided by an embodiment of the present invention is described below.
It should be noted that the image processing method provided by the embodiment of the present invention is applied to a terminal device. In practical application, the terminal equipment can be a smart phone, a tablet computer, a notebook computer and the like, which are reasonable.
In addition, the functional software for implementing the image processing method provided by the embodiment of the invention can be independent client software for implementing decoration addition.
As shown in fig. 1, an image processing method provided in an embodiment of the present invention may include:
s101: and obtaining the target ornament mark selected by the user for the target picture.
The user can select one or more target decorative stickers according to the actual situation of the target picture, and the target decorative sticker selected by the user is obtained.
S102: and determining the type of the target human body area corresponding to the target decoration sticker according to the type information of the target decoration sticker.
Wherein, can classify the ornament sticker according to the human body region that the ornament sticker was decorated, for example: the decorative sticker may be classified into a type of decorative sticker (cap, hair, etc.) for decorating a face; decorative sticker types (glasses, eyebrows, etc.) that decorate the eyes; decorative sticker types (beard and pipe, etc.) that decorate the mouth.
Furthermore, after the target ornament sticker selected by the user for the target picture is obtained, the human body area decorated by the target ornament sticker can be determined according to the type of the ornament sticker to which the target ornament sticker belongs.
Specifically, in an implementation manner, determining the type of the target human body region corresponding to the target ornament sticker according to the type information of the target ornament sticker may include:
determining the human body area type corresponding to the type information of the target decoration sticker as the target human body area type corresponding to the target decoration sticker from a preset database;
wherein, the preset database stores the corresponding relationship between the type information of the decorative sticker and the type of the human body area.
The body region type may be, but is not limited to, eyes, nose, mouth, or face. In the preset database, the type of the decorative paster for decorating the face corresponds to the face, the type of the decorative paster for decorating the eyes corresponds to the eyes, the type of the decorative paster for decorating the mouth corresponds to the mouth, and the type of the decorative paster for decorating the nose corresponds to the nose.
After the type of the target decoration sticker is determined, the human body region type corresponding to the type can be found from a preset database, and the found human body region type is determined as the target human body region type corresponding to the target decoration sticker.
S103: and identifying a target human body area of the character displayed in the target picture, which corresponds to the type of the target human body area.
After the type of the target human body area is determined, the target human body area corresponding to the type of the target human body area is identified in the target picture, and then corresponding processing is executed according to the identified target human body area and the type of the target decorative sticker to determine the relevant adding information of the target decorative sticker.
Specifically, in one implementation, the target body region types may be: eyes, nose, mouth or face.
When the type of the target human body area is eyes, identifying the target human body area of the figure displayed in the target picture, which corresponds to the type of the target human body area, and the method comprises the following steps:
identifying a target face area in the target picture, and determining an area where eyes are located according to a first preset position relation between a face and the eyes;
or,
when the type of the target human body region is a nose, identifying the target human body region of the person displayed in the target picture, which corresponds to the type of the target human body region, includes:
identifying a target face region in the target picture, and determining a region where a nose is located according to a second preset position relation between the face and the nose;
or,
when the type of the target human body area is mouth, identifying the target human body area of the figure displayed in the target picture, which corresponds to the type of the target human body area, and the method comprises the following steps:
identifying a target face area in the target picture, and determining an area where the mouth is located according to a third preset position relation between the face and the mouth;
or,
when the type of the target human body area is a face, identifying the target human body area of the person displayed in the target picture, which corresponds to the type of the target human body area, and the method comprises the following steps:
and identifying a target face area in the target picture and determining an area where the face is located.
Due to the fact that the five sense organs of the person have certain position relations, the position relations between the face and the eyes, between the face and the nose and between the face and the mouth can be determined, after the target face area in the target picture is identified, the area where the eyes are located can be identified according to the position relation between the face and the eyes, the area where the nose is located can be identified according to the position relation between the face and the nose, and the area where the mouth is located can be identified according to the position relation between the face and the mouth.
It should be noted that, any existing face recognition algorithm may be used for recognizing the target face region in the target picture, which is not limited herein.
S104: and calculating the size information to be utilized and the area to be added of the target ornament paster in the target picture according to the identified target human body area and the type information of the target ornament paster.
In order to add the target ornament sticker to the target picture, it is necessary to determine the size information to be utilized and the area to be added of the target ornament sticker in the target picture.
When decorating the same target human body area, the sizes to be utilized and the areas to be added, which are required by different target decoration stickers, are different, for example: the hu and the pipe are both target decoration stickers for decorating the mouth, the hu needs to be placed on the upper portion of the mouth, the region to be added of the hu in the target picture is determined to be a region formed by a surrounding frame on the upper portion of the mouth, the size of the hu corresponds to the size of the mouth to be decorated, the pipe needs to be placed in the middle of the mouth, the region to be added of the pipe in the target picture is determined to be a region formed by a surrounding frame in the middle of the mouth, and the size of the pipe corresponds to the size of the mouth to be decorated.
S105: and adjusting the target decoration sticker according to the size information to be utilized, and adding the adjusted target decoration sticker to the area to be added of the target picture.
After determining the information of the size to be utilized and the area to be added of the target decoration sticker in the target picture, correspondingly amplifying or reducing the target decoration sticker to the calculated size to be utilized, and adding the amplified or reduced target decoration sticker to the area to be added of the target picture.
Specifically, in an implementation manner, adding the adjusted target ornament paper to the area to be added of the target picture may include:
determining a first reference point of the adjusted target ornament mark;
determining a second datum point corresponding to the first datum point in the area to be added;
and adding the adjusted target ornament paster in the area to be added of the target picture based on the first reference point and the second reference point.
The first reference point can be a center point, a gravity center point or any point capable of calibrating the position of the target decoration sticker, and the second reference point is a point on the area to be added corresponding to the first reference point.
Specifically, based on the first reference point and the second reference point, there are two ways to add the adjusted target ornament sticker to the area to be added of the target picture:
the first method is as follows: the adjusted target ornament paper can be added in the area to be added of the target picture by coinciding the first reference point with the second reference point.
For example: the target decorative sticker is glasses, the area to be added of the glasses in the target picture is an area formed by a surrounding frame which can surround the eyes of the person in the target picture, the size of the glasses corresponds to the size of the eyes of the person in the target picture, then the first datum point is a center point A of the glasses, the second datum point is a center point B of the eyes of the person in the target picture, A and B are overlapped, and the glasses are added to the area formed by the surrounding frame.
In a second mode, the adjusted target ornament sticker can be added in the area to be added of the target picture in a mode of a preset position relation between the first reference point and the second reference point.
For example: the target ornament sticker is a beard, the area to be added of the beard in the target picture is an area formed by a surrounding frame surrounding the upper portion of the mouth of the person in the target picture, the size of the beard corresponds to the size of the mouth of the person in the target picture, the first reference point is a center point A of the beard, the second reference point is a center point B of the mouth of the person in the target picture, and the beard is added to the area formed by the surrounding frame according to the position relationship between A and B due to the fact that the mouth of the person and the beard have a certain position relationship.
Compared with the prior art, in the embodiment of the invention, the size information to be utilized and the area to be added of the target decoration sticker in the target picture are calculated according to the identified target human body area and the type information of the target decoration sticker, the target decoration sticker is adjusted according to the size information to be utilized, and the adjusted target decoration sticker is added to the area to be added of the target picture.
Further, on the basis of the embodiment shown in fig. 1, as shown in fig. 2, another picture processing method provided by the present invention may further include:
s201: and receiving an adjusting instruction sent by a user.
Although the determined size to be utilized and the area to be added of the target decoration sticker can reach higher accuracy, the problem that the size information to be utilized and the area to be added of the target decoration sticker do not meet the requirements of the user may exist due to different requirements of different users on actual decoration, and in order to improve the use experience of the user, the user can finely adjust the target decoration sticker according to actual conditions. Specifically, after the user can select the target ornament sticker, the user performs position dragging operation and size zooming operation on the target ornament sticker, and correspondingly, the terminal device can receive a corresponding adjusting instruction sent by the user, and then subsequently responds to the adjusting instruction.
S202: and responding to the adjusting instruction, and adjusting the area and/or the size of the added target ornament paper in the target picture.
For example: the target ornament paper is a beard, the beard is added to the middle part of the mouth to cover the mouth, and the user can adjust the beard to the upper part of the mouth to enable the beard and the mouth to be matched more.
Therefore, the target ornament paster is adjusted by receiving the adjustment instruction aiming at the target ornament paster sent by the user, so that the adjusted target ornament paster better meets the requirement of the user.
With respect to the foregoing method embodiment, an embodiment of the present invention further provides an image processing apparatus, as shown in fig. 3, the apparatus may include: an obtaining module 301, a determining module 302, a recognizing module 303, a calculating module 304 and an adding module 305;
the obtaining module 301 is configured to obtain a target ornament sticker selected by a user for a target picture;
the determining module 302 is configured to determine a type of a target human body region corresponding to the target ornament sticker according to the type information of the target ornament sticker;
the identification module 303 is configured to identify a target human body region of a person displayed in the target picture, where the target human body region corresponds to the type of the target human body region;
the calculating module 304 is configured to calculate size information to be utilized and an area to be added of the target ornament sticker in the target picture according to the identified target human body area and the type information of the target ornament sticker;
the adding module 305 is configured to adjust the target ornament sticker according to the size information to be utilized, and add the adjusted target ornament sticker to the area to be added of the target picture.
Compared with the prior art, in the embodiment of the invention, the size information to be utilized and the area to be added of the target decoration sticker in the target picture are calculated according to the identified target human body area and the type information of the target decoration sticker, the target decoration sticker is adjusted according to the size information to be utilized, and the adjusted target decoration sticker is added to the area to be added of the target picture. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
The determining module 302 may include:
a first region type determining unit, configured to determine, from a preset database, a human body region type corresponding to the type information of the target decoration sticker as a target human body region type corresponding to the target decoration sticker;
the preset database stores the corresponding relation between the type information of the decorative sticker and the type of the human body area.
The types of the target human body areas are as follows: eyes, nose, mouth or face.
The identification module may include:
the eye identification unit is used for identifying a target human face area in the target picture when the type of the target human body area is eyes, and determining the area where the eyes are located according to a first preset position relation between the human face and the eyes;
or,
the identification module may include:
the nose identification unit is used for identifying a target face region in the target picture when the type of the target human body region is a nose, and determining a region where the nose is located according to a second preset position relation between the face and the nose;
or,
the identification module may include:
the mouth recognition unit is used for recognizing a target face region in the target picture when the type of the target human body region is a mouth, and determining a region where the mouth is located according to a third preset position relation between the face and the mouth;
or,
the identification module may include:
and the face identification unit is used for identifying a target face area in the target picture and determining an area where the face is located when the type of the target human body area is the face.
The adding module 305 may include:
a first reference point determining unit, configured to determine a first reference point of the adjusted target ornament sticker after the adding module adjusts the target ornament sticker according to the size information to be utilized;
the second reference point determining unit is used for determining a second reference point corresponding to the first reference point in the area to be added;
and the adding unit is used for adding the adjusted target ornament paster in the area to be added of the target picture based on the first reference point and the second reference point.
Further, on the basis of the embodiment shown in fig. 3, as shown in fig. 4, another image processing apparatus provided by the present invention may further include: a receiving module 401 and an adjusting module 402;
the receiving module 401 is configured to receive an adjustment instruction sent by a user;
the adjusting module 402 is configured to adjust an area and/or a size of the added target ornament paper in the target picture in response to the adjusting instruction.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A picture processing method, characterized in that the method comprises:
obtaining a target decorative paster selected by a user for a target picture;
determining the type of a target human body area corresponding to the target decoration sticker according to the type information of the target decoration sticker;
identifying a target human body area of a figure displayed in the target picture, wherein the target human body area corresponds to the type of the target human body area;
calculating the size information to be utilized and the area to be added of the target decoration sticker in the target picture according to the identified target human body area and the type information of the target decoration sticker;
and adjusting the target decoration paster according to the size information to be utilized, and adding the adjusted target decoration paster to the area to be added of the target picture.
2. The method of claim 1, further comprising:
receiving an adjusting instruction sent by a user;
and responding to the adjusting instruction, and adjusting the area and/or the size of the added target ornament paper in the target picture.
3. The method according to claim 1 or 2, wherein the determining the type of the target human body region corresponding to the target ornament sticker according to the type information of the target ornament sticker comprises:
determining the human body area type corresponding to the type information of the target decoration sticker as the target human body area type corresponding to the target decoration sticker from a preset database;
the preset database stores the corresponding relation between the type information of the decorative sticker and the type of the human body area.
4. The method according to claim 1 or 2, wherein the target body region types are: eyes, nose, mouth or face.
5. The method of claim 4, wherein when the target human body area type is eye, the identifying the target human body area of the person displayed in the target picture corresponding to the target human body area type comprises:
identifying a target face area in the target picture, and determining an area where eyes are located according to a first preset position relation between a face and the eyes;
or,
when the type of the target human body region is a nose, the identifying the target human body region of the person displayed in the target picture, which corresponds to the type of the target human body region, includes:
identifying a target face region in the target picture, and determining a region where a nose is located according to a second preset position relation between the face and the nose;
or,
when the type of the target human body area is mouth, the identifying the target human body area of the figure displayed in the target picture, which corresponds to the type of the target human body area, includes:
identifying a target face region in the target picture, and determining a region where the mouth is located according to a third preset position relation between the face and the mouth;
or,
when the type of the target human body region is a face, the identifying a target human body region of a person displayed in the target picture, which corresponds to the type of the target human body region, includes:
and identifying a target face area in the target picture and determining an area where the face is located.
6. The method according to claim 1 or 2, wherein the adding the adjusted target ornament sticker to the area to be added of the target picture comprises:
determining a first reference point of the adjusted target ornament mark;
determining a second datum point corresponding to the first datum point in the area to be added;
and adding the adjusted target ornament paster in the area to be added of the target picture based on the first reference point and the second reference point.
7. A picture processing apparatus, characterized in that the apparatus comprises: the device comprises an obtaining module, a determining module, an identifying module, a calculating module and an adding module;
the obtaining module is used for obtaining a target ornament paper selected by a user for a target picture;
the determining module is used for determining the type of the target human body area corresponding to the target decoration sticker according to the type information of the target decoration sticker;
the identification module is used for identifying a target human body area of a figure displayed in the target picture, wherein the target human body area corresponds to the type of the target human body area;
the calculation module is used for calculating the size information to be utilized and the area to be added of the target decoration sticker in the target picture according to the identified target human body area and the type information of the target decoration sticker;
and the adding module is used for adjusting the target decoration sticker according to the size information to be utilized and adding the adjusted target decoration sticker to the area to be added of the target picture.
8. The apparatus of claim 7, further comprising: the device comprises a receiving module and an adjusting module;
the receiving module is used for receiving an adjusting instruction sent by a user;
and the adjusting module is used for responding to the adjusting instruction and adjusting the area and/or the size of the added target ornament paper in the target picture.
9. The apparatus of claim 7 or 8, wherein the determining module comprises:
a first region type determining unit, configured to determine, from a preset database, a human body region type corresponding to the type information of the target decoration sticker as a target human body region type corresponding to the target decoration sticker;
the preset database stores the corresponding relation between the type information of the decorative sticker and the type of the human body area.
10. The apparatus according to claim 7 or 8, wherein the target body region types are: eyes, nose, mouth or face.
CN201511023543.6A 2015-12-30 2015-12-30 Picture processing method and device Active CN105678686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511023543.6A CN105678686B (en) 2015-12-30 2015-12-30 Picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511023543.6A CN105678686B (en) 2015-12-30 2015-12-30 Picture processing method and device

Publications (2)

Publication Number Publication Date
CN105678686A true CN105678686A (en) 2016-06-15
CN105678686B CN105678686B (en) 2019-06-14

Family

ID=56189849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511023543.6A Active CN105678686B (en) 2015-12-30 2015-12-30 Picture processing method and device

Country Status (1)

Country Link
CN (1) CN105678686B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210545A (en) * 2016-08-22 2016-12-07 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN106293393A (en) * 2016-08-01 2017-01-04 北京奇虎科技有限公司 Synthesis display packing based on electronics paster, device and terminal unit
CN106777329A (en) * 2017-01-11 2017-05-31 维沃移动通信有限公司 The processing method and mobile terminal of a kind of image information
CN107092429A (en) * 2017-04-20 2017-08-25 维沃移动通信有限公司 Attribute learning method, terminal and the server of image processing method, Decorative paster
CN107274463A (en) * 2017-06-22 2017-10-20 口碑控股有限公司 Image processing method and device, electronic equipment
CN107767391A (en) * 2017-11-02 2018-03-06 北京奇虎科技有限公司 Landscape image processing method, device, computing device and computer-readable storage medium
CN108346171A (en) * 2017-01-25 2018-07-31 阿里巴巴集团控股有限公司 A kind of image processing method, device, equipment and computer storage media
CN109147007A (en) * 2018-08-01 2019-01-04 Oppo(重庆)智能科技有限公司 Paster loading method, device, terminal and computer readable storage medium
CN109587390A (en) * 2017-09-29 2019-04-05 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN109819316A (en) * 2018-12-28 2019-05-28 北京字节跳动网络技术有限公司 Handle method, apparatus, storage medium and the electronic equipment of face paster in video
CN110168599A (en) * 2017-10-13 2019-08-23 华为技术有限公司 A kind of data processing method and terminal
CN110428360A (en) * 2019-07-05 2019-11-08 中国平安财产保险股份有限公司 Automobile image beautification method, equipment, storage medium and device
WO2019238001A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Photograph capturing control method and related device
CN111295692A (en) * 2017-08-30 2020-06-16 深圳传音通讯有限公司 Three-dimensional watermark sticker realization method, mobile terminal and storage medium
CN111754613A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Image decoration method and device, computer readable medium and electronic equipment
CN113613067A (en) * 2021-08-03 2021-11-05 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
WO2023045860A1 (en) * 2021-09-24 2023-03-30 维沃移动通信有限公司 Display method and apparatus, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018314A (en) * 2006-02-07 2007-08-15 Lg电子株式会社 The apparatus and method for image communication of mobile communication terminal
CN101354789A (en) * 2008-08-22 2009-01-28 北京中星微电子有限公司 Method and device for implementing image face mask specific effect
CN101770574A (en) * 2010-01-22 2010-07-07 黄禹 Method for positioning eyes and identifying facial form
CN103024167A (en) * 2012-12-07 2013-04-03 广东欧珀移动通信有限公司 Photographing method and system for mobile terminal
CN103413118A (en) * 2013-07-18 2013-11-27 毕胜 On-line glasses try-on method
CN105068748A (en) * 2015-08-12 2015-11-18 上海影随网络科技有限公司 User interface interaction method in camera real-time picture of intelligent touch screen equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018314A (en) * 2006-02-07 2007-08-15 Lg电子株式会社 The apparatus and method for image communication of mobile communication terminal
CN101354789A (en) * 2008-08-22 2009-01-28 北京中星微电子有限公司 Method and device for implementing image face mask specific effect
CN101770574A (en) * 2010-01-22 2010-07-07 黄禹 Method for positioning eyes and identifying facial form
CN103024167A (en) * 2012-12-07 2013-04-03 广东欧珀移动通信有限公司 Photographing method and system for mobile terminal
CN103413118A (en) * 2013-07-18 2013-11-27 毕胜 On-line glasses try-on method
CN105068748A (en) * 2015-08-12 2015-11-18 上海影随网络科技有限公司 User interface interaction method in camera real-time picture of intelligent touch screen equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
PATRICK: "GIF动画制作应用LoopCam发布更新,能自动检测人脸并贴上有趣的表情", 《URL:HTTP://36KR.COM/P/204942.HTML》 *
庆少: "【酷七汉化组出品】【Face Mask 面具党V1.1汉化版本】【微软出品,必属精品】", 《URL:HTTP://BBS.RUANFENQUAN.COM/FORUM.PHP?MOD=VIEWTHREAD&TID=66931》 *
李灏: "Face SDK让人脸应用更有趣", 《URL:HTTP://WWW.360DOC.COM/CONTENT/12/0606/01/699582_216286283.SHTML》 *
王了笑颜: "新萌萌哒拍照软件——IN,一分钟教你玩转新神器", 《百度经验》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293393A (en) * 2016-08-01 2017-01-04 北京奇虎科技有限公司 Synthesis display packing based on electronics paster, device and terminal unit
CN106210545A (en) * 2016-08-22 2016-12-07 北京金山安全软件有限公司 Video shooting method and device and electronic equipment
CN106777329B (en) * 2017-01-11 2019-03-05 维沃移动通信有限公司 A kind of processing method and mobile terminal of image information
CN106777329A (en) * 2017-01-11 2017-05-31 维沃移动通信有限公司 The processing method and mobile terminal of a kind of image information
CN108346171B (en) * 2017-01-25 2021-12-10 斑马智行网络(香港)有限公司 Image processing method, device, equipment and computer storage medium
CN108346171A (en) * 2017-01-25 2018-07-31 阿里巴巴集团控股有限公司 A kind of image processing method, device, equipment and computer storage media
CN107092429A (en) * 2017-04-20 2017-08-25 维沃移动通信有限公司 Attribute learning method, terminal and the server of image processing method, Decorative paster
CN107092429B (en) * 2017-04-20 2019-05-17 维沃移动通信有限公司 Attribute learning method, terminal and the server of image processing method, Decorative paster
CN107274463A (en) * 2017-06-22 2017-10-20 口碑控股有限公司 Image processing method and device, electronic equipment
CN107274463B (en) * 2017-06-22 2020-08-04 口碑控股有限公司 Image processing method and device and electronic equipment
CN111295692B (en) * 2017-08-30 2023-08-22 深圳传音通讯有限公司 Method for realizing three-dimensional watermark sticker, mobile terminal and storage medium
CN111295692A (en) * 2017-08-30 2020-06-16 深圳传音通讯有限公司 Three-dimensional watermark sticker realization method, mobile terminal and storage medium
CN109587390A (en) * 2017-09-29 2019-04-05 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN109587390B (en) * 2017-09-29 2021-05-07 腾讯科技(深圳)有限公司 Picture rendering method, picture rendering device and storage medium
CN110168599A (en) * 2017-10-13 2019-08-23 华为技术有限公司 A kind of data processing method and terminal
CN110168599B (en) * 2017-10-13 2021-01-29 华为技术有限公司 Data processing method and terminal
CN107767391A (en) * 2017-11-02 2018-03-06 北京奇虎科技有限公司 Landscape image processing method, device, computing device and computer-readable storage medium
WO2019238001A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Photograph capturing control method and related device
CN109147007A (en) * 2018-08-01 2019-01-04 Oppo(重庆)智能科技有限公司 Paster loading method, device, terminal and computer readable storage medium
CN109147007B (en) * 2018-08-01 2023-09-01 Oppo(重庆)智能科技有限公司 Label loading method, label loading device, terminal and computer readable storage medium
CN109819316A (en) * 2018-12-28 2019-05-28 北京字节跳动网络技术有限公司 Handle method, apparatus, storage medium and the electronic equipment of face paster in video
CN110428360A (en) * 2019-07-05 2019-11-08 中国平安财产保险股份有限公司 Automobile image beautification method, equipment, storage medium and device
CN110428360B (en) * 2019-07-05 2023-08-25 中国平安财产保险股份有限公司 Automobile image beautifying method, equipment, storage medium and device
CN111754613A (en) * 2020-06-24 2020-10-09 北京字节跳动网络技术有限公司 Image decoration method and device, computer readable medium and electronic equipment
CN113613067A (en) * 2021-08-03 2021-11-05 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
WO2023011146A1 (en) * 2021-08-03 2023-02-09 北京字跳网络技术有限公司 Video processing method and apparatus, device, and storage medium
CN113613067B (en) * 2021-08-03 2023-08-22 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium
WO2023045860A1 (en) * 2021-09-24 2023-03-30 维沃移动通信有限公司 Display method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN105678686B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN105678686B (en) Picture processing method and device
US11443462B2 (en) Method and apparatus for generating cartoon face image, and computer storage medium
CN106156730B (en) A kind of synthetic method and device of facial image
CN107767333B (en) Method and equipment for beautifying and photographing and computer storage medium
CN108076290B (en) Image processing method and mobile terminal
US20130129210A1 (en) Recommendation system based on the recognition of a face and style, and method thereof
CN105654420A (en) Face image processing method and device
CN103942705A (en) Advertisement classified match pushing method and system based on human face recognition
CN108781262B (en) Method for synthesizing image and electronic device using the same
CN107766403B (en) Photo album processing method, mobile terminal and computer readable storage medium
KR102541829B1 (en) Electronic apparatus and the controlling method thereof
CN105512605A (en) Face image processing method and device
WO2017032019A1 (en) Screen brightness adjusting method and user terminal
CN109426767A (en) Informer describes guidance device and its method
CN107644396B (en) Lip color adjusting method and device
CN105205457A (en) Information acquisition system and method based on face recognition
CN103413229A (en) Method and device for showing baldric try-on effect
WO2017032018A1 (en) Screen brightness adjustment method and user terminal
US10602091B2 (en) Method and system for providing video call service
EP4113430A1 (en) Beauty treatment method and device
CN109272473B (en) Image processing method and mobile terminal
CN111045774A (en) Intelligent adjustment method, device and equipment for application program and storage medium
CN106651991B (en) Intelligent mapping realization method and system thereof
KR20120046653A (en) System and method for recommending hair based on face and style recognition
JP2019028731A (en) Information processing device and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201120

Address after: Room 115, area C, 1 / F, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing 100123

Patentee after: Beijing LEMI Technology Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240115

Address after: 3870A, 3rd Floor, Building 4, Courtyard 49, Badachu Road, Shijingshan District, Beijing, 100144

Patentee after: Beijing Jupiter Technology Co.,Ltd.

Address before: 100123 room 115, area C, 1st floor, building 8, yard 1, yaojiayuan South Road, Chaoyang District, Beijing

Patentee before: Beijing LEMI Technology Co.,Ltd.