CN112700513B - Image processing method and device - Google Patents
Image processing method and device Download PDFInfo
- Publication number
- CN112700513B CN112700513B CN201911008138.5A CN201911008138A CN112700513B CN 112700513 B CN112700513 B CN 112700513B CN 201911008138 A CN201911008138 A CN 201911008138A CN 112700513 B CN112700513 B CN 112700513B
- Authority
- CN
- China
- Prior art keywords
- image
- template
- layer
- color
- background
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 213
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 64
- 238000005034 decoration Methods 0.000 claims description 101
- 239000003607 modifier Substances 0.000 claims description 76
- 238000000034 method Methods 0.000 claims description 69
- 230000000694 effects Effects 0.000 claims description 31
- 230000015572 biosynthetic process Effects 0.000 claims description 16
- 238000003786 synthesis reaction Methods 0.000 claims description 16
- 230000001105 regulatory effect Effects 0.000 claims description 2
- 238000010030 laminating Methods 0.000 claims 1
- 230000000007 visual effect Effects 0.000 abstract description 54
- 238000004883 computer application Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 11
- 239000003086 colorant Substances 0.000 description 9
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 230000001965 increasing effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000003707 image sharpening Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the application provides an image processing method, an image processing device and computing equipment, and relates to the technical field of computer application. Receiving an image processing request of a user; acquiring an original image and an image template corresponding to the original image; adjusting the image template; and synthesizing the adjusted image template and the original image into a target image. The technical scheme provided by the embodiment of the application realizes automatic adjustment of the template and improves the visual effect of the image.
Description
Technical Field
The embodiment of the application relates to the technical field of computer application, in particular to an image processing method and device.
Background
At present, the object propaganda is usually carried out in the form of an image, and the propaganda image is usually obtained by processing an original image containing the object content, for example, a decorative element such as a document is added, and if the image processing is carried out by a person, the image processing is time-consuming and cost-effective.
In the prior art, an image template is also provided, the image template has a specific visual effect, and the image template is overlapped on an original image to form the specific visual effect, so that the object propaganda effect is increased.
However, the visual effect of the image template superimposed on the image synthesized on the original image is still not ideal enough, and therefore, how to improve the visual effect of the image becomes a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides an image processing method and device, which are used for improving the visual effect of an image.
In a first aspect, an embodiment of the present application provides an image processing method, including:
receiving an image processing request of a user;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
In a second aspect, an embodiment of the present application provides an image processing method, including:
Receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
acquiring an original image and an image template corresponding to the original image;
according to the adjustment instruction, adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
In a third aspect, an embodiment of the present application provides an image processing method, including:
receiving an image processing request of a user;
Acquiring an original image and an image template corresponding to the original image;
performing blurring processing on a background image area in the original image;
and synthesizing the original image after the blurring process and the image template into a target image.
In a fourth aspect, an embodiment of the present application provides an image processing method, including:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
Adjusting the image template;
and synthesizing the adjusted image template and the commodity picture into a popularization picture.
In a fifth aspect, an embodiment of the present application provides an image processing method, including:
receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
according to the adjustment instruction, adjusting the image template;
and synthesizing the adjusted image template and the commodity image into a popularization picture.
In a sixth aspect, an embodiment of the present application provides an image processing method, including:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
performing fuzzy processing on a background image area in the commodity picture;
And synthesizing the commodity picture after the blurring processing with the image template to form a popularization picture.
In a seventh aspect, an embodiment of the present application provides an image processing apparatus, including:
The first request receiving module is used for receiving an image processing request of a user;
The first acquisition module is used for acquiring an original image and an image template corresponding to the original image;
the first adjusting module is used for adjusting the image template;
And the first synthesis template is used for synthesizing the adjusted image template and the original image into a target image.
In an eighth aspect, an embodiment of the present application provides an image processing apparatus, including:
The second request receiving module is used for receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
The second acquisition module is used for acquiring an original image and an image template corresponding to the original image;
the second adjusting module is used for adjusting the image template according to the adjusting instruction;
and the second synthesis template is used for synthesizing the adjusted image template and the original image into a target image.
In a ninth aspect, an embodiment of the present application provides an image processing apparatus, including:
A third request receiving module for receiving an image processing request of a user;
The third acquisition module is used for acquiring an original image and an image template corresponding to the original image;
the image processing module is used for carrying out fuzzy processing on a background image area in the original image;
And a third synthesizing module for synthesizing the original image after the blurring process and the image template into a target image.
In a tenth aspect, an embodiment of the present application provides an application program, including:
an input interface for receiving an image processing request of a user;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
And the processing engine is used for adjusting the image template and synthesizing the adjusted image template and the original image into a target image.
In an eleventh aspect, an embodiment of the present application provides an application program, including:
An input interface for receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
and the processing engine is used for adjusting the image template according to the adjustment instruction and synthesizing the adjusted image template and the original image into a target image.
In a twelfth aspect, an embodiment of the present application provides an application program, including:
an input interface for receiving an image processing request of a user;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
and the processing engine is used for carrying out blurring processing on a background image area in the original image and synthesizing the original image after the blurring processing and the image template into a target image.
In a thirteenth aspect, in an embodiment of the present application, there is provided a computing device including a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
receiving an image processing request of a user;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
In a fourteenth aspect, in an embodiment of the present application, there is provided a computing device, including a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
Receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
acquiring an original image and an image template corresponding to the original image;
according to the adjustment instruction, adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
In a fifteenth aspect, in an embodiment of the present application, a computing device is provided, including a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
receiving an image processing request of a user;
Acquiring an original image and an image template corresponding to the original image;
performing blurring processing on a background image area in the original image;
and synthesizing the original image after the blurring process and the image template into a target image.
In the embodiment of the application, the image processing request of the user is received, the original image and the image template corresponding to the original image are obtained, then the image template is adjusted, and the adjusted image template and the original image are combined into the target image.
These and other aspects of the application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of an image processing method provided by the present application;
FIG. 2 is a schematic flow chart of another embodiment of an image processing method according to the present application;
FIG. 3a shows a schematic image composition of the present application in one practical application;
FIG. 3b shows a schematic image blur diagram of the application in one practical application;
FIG. 3c shows a schematic representation of a target image of the present application in one practical application;
FIG. 3d shows a schematic image separation of the present application in one practical application;
FIG. 3e shows a schematic view of at least a portion of an image template of the present application in one practical application;
FIG. 3f shows a schematic representation of a target image of the present application in one practical application;
FIG. 4 is a schematic flow chart of another embodiment of an image processing method according to the present application;
FIG. 5 is a schematic flow chart diagram of another embodiment of an image processing method according to the present application;
FIG. 6 is a schematic flow chart diagram of another embodiment of an image processing method according to the present application;
FIG. 7 is a schematic diagram of image processing in a practical application of an embodiment of the present application;
fig. 8 is a schematic view showing the structure of an embodiment of an image processing apparatus provided by the present application;
FIG. 9 illustrates a schematic diagram of one embodiment of an application provided by the present application;
FIG. 10 illustrates a schematic diagram of one embodiment of a computing device provided by the present application;
fig. 11 is a schematic view showing the structure of a further embodiment of an image processing apparatus provided by the present application;
FIG. 12 illustrates a schematic diagram of a computing device in accordance with yet another embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
In some of the flows described in the specification and claims of the present application and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The technical scheme of the embodiment of the application can be applied to the scene of processing the uploaded pictures of merchants, enterprise users, individual users, design scheme providers and the like so as to realize the purposes of propaganda, popularization or beautification of main objects in the uploaded pictures, and the original images are processed to obtain the pictures called target images for the convenience of description distinction. In some scenes, the target image obtained through processing can be released as an advertisement picture, a poster picture or a propaganda picture, so that the aim of effectively popularizing the enhanced visual effect fruit is achieved, and further, commodity sales and the like can be improved under the condition that the object is commodity.
Although the original image can be processed by adopting a PS (Adobe Photoshop) technology and the like to obtain the target image, so that the popularization effect of the target image is improved, and then the image processing is time-consuming and labor-consuming, and the technical requirements on processing staff are high especially in a batch processing scene. Therefore, in the prior art, image processing is usually implemented by using an image template, at least one template layer is usually defined in the image template, each template layer can implement different visual effects, and the target image can be synthesized by superposing the image template on the original image, so that the target image has the visual effects of the image template, and then, the image template is preconfigured and directly superposed with the original image, so that the visual effects of the generated target image are not ideal. The inventor finds that in the study, the image template is composed of at least one template layer, and generally mainly comprises a template background layer and a modifier layer, the colors of the layers of the image template are predefined, the layers are sequentially overlapped on an original image, and in a target image which is possibly formed, the colors of the background image and the modifier are not coordinated with the colors of a main object, so that the visual effect is more abrupt. In addition, the image template is usually superimposed on the original image, and only the content having a specific visual effect can be superimposed on the original image, and the visual effect is also relatively single.
In order to enhance the visual effect of the image, the inventor proposes the technical scheme of the application through a series of researches, and for convenience of understanding, the following first explains the technical terms which may appear in the text correspondingly:
layer (c): the layers are like films containing text or graphics, and a Zhang An film is sequentially stacked together to form the final image effect.
Image template: for compositing with an original image to decorate a background image of the original image and/or to add a decoration element or the like to the original image, typically the image template includes at least one template layer and defines a merging order of the at least one template layer and a color scheme of each template layer or the like.
Original image: an image obtained by shooting and acquiring a specific object or an image obtained by correspondingly processing an image obtained by shooting and acquiring a specific object. The specific object forms the subject object in the original image.
The main body object: the subject in the image is the main content in the image and can also be considered as the foreground image in the image.
Background image: other image areas in the image that are not subject object areas.
Modification elements: including text, controls, borders, patches, patterns, and/or other graphics having a particular shape, etc.
HSV: hue-Saturation-Value, a color model, wherein Hue refers to the looks of various colors for distinguishing different colors, such as red, yellow, green, blue, etc., saturation means the degree that the color is close to a spectral color, saturation is higher, the color is darker and brighter, and brightness means the degree that the color is bright.
RGB: red (red) -green (green) -blue (blue) refers to a color standard, and various colors can be obtained by changing three color channels of red (R), green (G), and blue (B) and overlapping them with each other.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
Fig. 1 is a flowchart of an embodiment of an image processing method according to an embodiment of the present application, where the method may include the following steps:
101: an image processing request of a user is received.
In one possible implementation manner, the technical solution of the present embodiment may be executed by a server, and the user may send the image processing request through a client;
in another possible implementation manner, in the scenario of image processing of an individual user, the technical solution of this embodiment may also be executed by an application program, and the application program may directly receive an image processing request of the user. The application may refer to, for example, some image processing class applications at present, and the like.
102: And acquiring an original image and an image template corresponding to the original image.
Wherein the image template is obtained by pre-configuration, the image template can comprise at least one template layer,
Where multiple image templates are provided, it may be to obtain an image template that matches the original image.
Alternatively, an image template that does not occlude the subject object may be selected as an image template that matches the original image based on the subject object position in the original image. That is, after the original image is combined with the image template, the main object in the original image is guaranteed not to be blocked.
In addition, in practical application, the image templates may be preconfigured according to the object types, so that the corresponding at least one image template may be determined first based on the object types of the subject objects in the original image, and then the image template that does not obstruct the subject objects may be selected from the at least one image template. For example, in a commodity poster propaganda scene, when a main object in an original image is a commodity, different image templates can be pre-configured according to commodity categories, wherein the commodity categories can refer to clothes, department products, foods, household appliances and the like, so that the image templates matched with the commodity categories can be determined firstly based on the commodity categories of the commodities in the original image, and then the image templates which do not shade the commodities can be selected.
In addition, in the case where the technical scheme of the present embodiment is executed by an application program in a personal user picture processing scenario, the original image may be provided by the user, and the image template may be obtained by the user selection, so that the original image and the image template may be included in the image processing request.
103: And adjusting the image template.
The image template may be adjusted to the criteria for highlighting the subject object in the original image. There are many possible implementations of adjusting the image template, and these are described in detail in the following embodiments.
In the case of the personal user picture processing scenario, when the technical scheme of the embodiment is executed by the application program, the application program can adjust the image template through the server, and of course, the application program can also execute the adjustment operation.
104: And synthesizing the adjusted image template and the original image into a target image.
It will be appreciated by those skilled in the art that the original image may be first subjected to necessary processing operations such as corresponding cropping or scaling according to the display requirements of the image template on the size, etc., which is not particularly limited in the present application.
In this embodiment, the image template is adjusted, instead of being directly overlapped with the original image, so that the image template can be adaptively changed, thereby improving the image visual effect of the synthesized target image.
Wherein, the image template can be adjusted in combination with the color of the subject object or the color of the background image in the original image, as shown in fig. 2, fig. 2 is a flowchart of an embodiment of an image processing method provided in an embodiment of the present application, and the method may include the following steps:
201: an image processing request of a user is received.
202: And acquiring an original image and an image template corresponding to the original image.
203: At least one of a background image color and a subject object color is extracted from the original image.
The background image color may refer to a main body color of the background image; the subject color may refer to a subject color of a subject, and subject color extraction is the same as in the prior art and will not be described further herein.
204: And adjusting the color of the image template according to at least one of the background image color and the main object color.
Among them, the color adjustment standard may be a subject object of ensuring accurate and vivid expression. Alternatively, the color of the image template may be adjusted according to the background image color or the adjacent color of the background image color or the contrast color of the subject object color.
In addition, the image template is mainly used for modifying the background image of the original image and/or adding the modifying element in the original image, so that the template background and the modifying element, and the template background color and the modifying element color are generally defined in the image template, and therefore, optionally, adjusting the color of the image template according to at least one of the background image color and the subject object color may refer to:
And adjusting the template background color and the decoration element color of the image template according to at least one of the background image color and the main object color.
Wherein the template background is used for shielding the background image of the original image so as to highlight the main object in the original image, and the template background can be formed by single color.
The decoration element is used for enhancing the image propaganda effect, and the decoration element is used for displaying in a background image area and covering on a template background, so that the color of the decoration element can be adjusted at the same time, the decoration element can be highlighted and can be checked, and the observability of the decoration element is enhanced, especially when the decoration element is text information about a main object, so that the reading of the text information is ensured. And the visual effect of the decoration element can be ensured by adjusting the color of the decoration element, the color block is not required to be used as a setting off, and the integral coordination of the image can be ensured.
In order to improve the visual effect of the image, in this embodiment, according to at least one of the background image color and the main object color, the color of the image template may be adjusted according to a rule of comparing and displaying with the main object.
205: And synthesizing the adjusted image template and the original image into a target image.
The image template after the color adjustment and the original image can be combined into the target image. The target image can be used as an image required by a service to carry out corresponding application and the like, such as the release of an advertisement image in a page advertisement position, or the release of the advertisement image in a specific position in a specific page, or the download and the use of the advertisement image by a user and the like.
It will be appreciated by those skilled in the art that the original image may be first subjected to some necessary processing operations such as corresponding cropping or scaling according to the display requirements of the image template on the size, etc., which is not particularly limited in the present application.
In this embodiment, the color of the image template is adjusted according to at least one of the color of the background image and the color of the subject object in the original image, and then the color of the image template is combined with the original image, so that the color of the image template can be adaptively adjusted according to different original images, personalized setting is realized, and the template color adjustment is performed by combining the color of the background image and the color of the subject object in the original image, so that the coordination between the color of the image template and the color of the original image can be ensured, and the subject object can be more accurately, vividly and vividly represented, thereby improving the image visual effect of the target image.
In an alternative implementation, the template background color and the modifier color in the image template may be adjusted according to the background image color.
Thus, in some embodiments, the adjusting the template background color and the modifier element color in the image template according to at least one of the background image color and the subject object color may include:
adjusting the saturation and/or brightness of the background image color to obtain a first color;
Adjusting the color of the template background to the first color;
obtaining a second color which is displayed in a contrasting manner with the background image according to the background image color;
and adjusting the color of the modifying element to the second color.
Namely, under the condition of ensuring that the color of the background image is unchanged, the first color is obtained by adjusting the saturation and/or the brightness so as to enhance the visual effect, and the first color is the same as the color of the background image and does not influence the overall visual effect of the original image.
The template background in the image template usually has a certain transparency, for example, a semitransparent state or the transparency gradually increases from a small distance to a main object area to a large distance, so as to form a gradual transparent effect.
Therefore, if the transparency of the template background is zero, in order to further improve the visual effect, the transparency of the template background color may be increased in addition to the first color, for example, the transparency of the template background may be adjusted to be a semitransparent or gradual transparent effect.
Optionally, adjusting the saturation and/or brightness of the background image color to obtain the first color may be:
And increasing the saturation of the background image color to obtain a first color.
Wherein, the saturation of the background image color is increased, and the first color is obtained by multiplying the saturation of the background image color by a saturation coefficient.
The saturation coefficient may have a value ranging from 1.5 to 2.5, for example, and in one practical application, the saturation coefficient may be 1.9.
The template background is used for shielding the background image, and the decoration element is covered on the template background, so that a second color which is displayed in a contrasting manner with the background image color can be selected as the decoration element color, and the decoration element can be highlighted after being covered on the template background.
The color with the contrast display effect may refer to, for example, a contrast color of the background image color or an adjacent color of the contrast color, wherein the color opposite to each color in the hue circle is the contrast color, and the color adjacent to the color band is the adjacent color.
In addition, to further enhance the visual effect of the image and avoid the influence of excessive colors in the image on the visual feeling, in some embodiments, the obtaining the second color displayed in contrast to the background image color according to the background image color may include:
If the brightness of the background image color is smaller than a first brightness value, determining that the second color is white;
and if the color brightness of the background image is larger than the first brightness value, adjusting the saturation and/or brightness of the color of the main object to obtain a second color.
That is, the second color may be determined according to the brightness of the background image color, and if the background image color is darker, a bright color system color may be selected as the second color, for example, white. Whereas if the background image is brighter, a dark color may be selected as the second color.
In order to ensure the overall visual effect of the image, under the condition that the background image is brighter, the saturation and/or brightness of the color of the main object can be adjusted to obtain a second color, wherein the second color is the same as the hue of the color of the main object, namely the same kind of color, but different in saturation or brightness, so that excessive colors cannot appear in the synthesized target image, and the highlighting of the main object is influenced.
Optionally, adjusting the saturation and/or the brightness of the subject color may be adjusting the saturation of the subject color to a target saturation and adjusting the brightness of the subject color to a target brightness.
In one practical application, the target saturation may be set to 100, and the target brightness may be set to 30, for example.
The first brightness value may be set in combination with an empirical value, for example, 80.
The HSV value of the background image color may be obtained by converting the RGB value of the background image color, and the HSV value of the main object color may be obtained by converting the RGB value of the main object color, which is the same as the prior art, and will not be described herein.
As another alternative, the template background color and the modifier color may be adjusted according to the subject object color and the background image color.
Thus, in some embodiments, the adjusting the template background color and the modifier color of the image template according to at least one of the background image color and the subject object color may include:
Judging whether the color of the background image and the color of the main object meet a color matching rule or not;
If yes, adjusting the template background color and the decoration element color of the image template according to the background image color;
If not, adjusting the template background color and the decoration element color of the image template according to the third color which meets the color matching rule with the color of the main object.
The color matching rule may refer to, for example, that the background image color and the subject object color are displayed in contrast, for example, in contrast to each other.
Because the original image may be obtained by shooting by a non-professional user, the main object in the original image may be noisy by the background image, so as to affect the highlighting of the main object, so that it is firstly judged whether the color of the background image and the color of the main object meet the color matching rule, if so, in order to ensure the overall visual effect of the image, the template background color and the modifying element color of the image template can be directly adjusted based on the background image color without damaging the original visual atmosphere. Otherwise, the template background color and the decoration element color of the image template can be adjusted according to the third color which meets the color matching rule with the color of the main object. The third color may be, for example, a contrast color in the subject color, or an adjacent color to the contrast color in the subject color, or the like.
Wherein adjusting the template background color and the modifier element color of the image template based on the background image color may be described in the embodiments above.
Adjusting the template background color and the modifier color of the image template based on the third color may include:
adjusting the saturation and/or brightness of the third color to obtain a first sub-color;
adjusting the color of the template background to the first sub-color;
obtaining a second sub-color displayed in contrast with the third color according to the third color;
And adjusting the color of the modifying element to the second sub-color.
Wherein, according to the third color, obtaining a second sub-color displayed in contrast to the third color may include:
if the brightness of the third color is smaller than the first brightness value, determining that the second sub-color is white;
And if the brightness of the third color is larger than the first brightness value, adjusting the saturation and/or brightness of the color of the main object to obtain a second sub-color.
The saturation of the subject color may be adjusted to a target saturation and the luminance may be adjusted to a target luminance.
In yet another alternative implementation, the template background color and the modifier color of the image template may be adjusted according to the subject object color.
Thus, in certain embodiments, the adjusting the template background color and the modifier color of the image template according to at least one of the background image color and the subject object color comprises:
and adjusting the template background color and the decoration element color of the image template according to the fourth color which meets the color matching rule with the color of the main object.
Wherein the color matching rule may be a contrast effect with the subject color, for example, the fourth color may be a contrast color of the subject color, or an adjacent color of the contrast color of the subject color, or the like.
Wherein adjusting the template background color and the modifier color of the image template according to the fourth color satisfying the color matching rule with the subject color may include:
adjusting the saturation and/or brightness of the fourth color to obtain a fifth color;
Adjusting the template background color to the fifth color;
According to the fourth color, obtaining a sixth color which is displayed in a contrasting manner with the fourth color;
and adjusting the color of the modifying element to the sixth color.
Wherein obtaining a sixth color to be displayed in contrast to the four colors according to the fourth color may include:
if the brightness of the fourth color is smaller than the first brightness value, determining that the sixth color is white;
and if the brightness of the fourth color is larger than the first brightness value, adjusting the saturation and/or brightness of the color of the main object to obtain a sixth color.
The saturation of the subject color may be adjusted to a target saturation and the luminance may be adjusted to a target luminance.
Wherein, in one practical application, the image template can comprise a plurality of template layers;
The plurality of template layers at least can comprise a template background layer and a modifier layer; the template background layer is the color of the template background, and the modifying element layer is used for presenting modifying elements and the like.
For the sake of understanding, as shown in fig. 3a, that is, a display effect diagram of the target image 303 synthesized by the original image 301 and the image template 302 after color adjustment is shown, the image template is illustrated by taking two template layers, i.e., a template background layer and a modifier layer, for example, where in practical application, the image template is usually stored in a file form, and is shown in a graphic form for the sake of understanding. The decoration element 304 is specifically a document, when the color brightness of the background image is smaller than the first brightness value, the decoration element can be directly adjusted to be white, and when the brightness is smaller than the first brightness value, the color phases of the decoration element 304 and the main object 305 are kept consistent, and the saturation and/or brightness are changed. The template background layer may create an occlusion effect on the background image area so that the subject object 305 may be highlighted.
In certain embodiments, the method may further comprise:
performing blurring processing on a background image area in the original image;
the synthesizing the original image and the adjusted image template into a target image comprises:
and synthesizing the original image after the blurring processing and the adjusted image template into a target image.
The background image in the original image can be blurred by blurring the background image area, so that the main object in the original image is highlighted, visual attractiveness of the main object can be improved in the synthesized target image, the decoration elements overlapped in the background image area can be highlighted, color blocks are not required to be added at the bottoms of the decoration elements, the visual effect is more harmonious, and the readability of the decoration elements can be improved particularly when the decoration elements are text information such as text.
Wherein, at least one of the background image color and the main object color can be extracted from the original image after the blurring process; whether the background image of the original image is blurred does not affect its main body color, so the extracted background image color is the same.
In order to further improve the visual effect, the blurring process for the background image area in the original image may include:
detecting a background image area and a main object area in the original image;
And blurring processing is carried out on the background image area of the original image according to a rule that the blurring degree is larger as the distance from the main object area is larger.
The background image area may be blurred by using a gaussian blur technique, or may be blurred by using other blur techniques, for example, filtering denoising methods such as mean filtering, median filtering, vector filtering, or an image sharpening method, a method for changing an image signal-to-noise ratio, or the like.
Under the condition of blurring processing of an original image, a template background layer in an image template can be blank, and the visual effect of a decoration element is not affected.
For ease of understanding, as shown in fig. 3b, an image 312 after blurring processing obtained after blurring processing is performed on the original image 311 is shown. As shown in fig. 3c, an image template, i.e. a composite target image 313, is superimposed on the image 312, which may include only the modifier element layer, and in the target image 313, the modifier element 314 does not need to be set off by a color patch, and may also be clearly displayed, improving the readability of the modifier element 314.
As can be seen from the foregoing description, the image template may include a plurality of template layers; wherein, the plurality of template layers at least can comprise a template background layer and a modifier layer; the template background layer is the color of the template background, and the modifier layer is used for presenting at least one modifier element; wherein the modifier layer may comprise a plurality of modifier layers.
Thus, adjusting the template background color and the modifier color of the image template according to at least one of the background image color and the subject object color may specifically refer to:
and adjusting the template background color of the template background layer in the image template and the color of the modifying element in the modifying element layer according to at least one of the background image color and the main object color.
In addition, the transparency of the template background layer and the like can be adjusted.
The synthesizing the adjusted image template with the original image into the target image may include:
and sequentially superposing a template background layer and a modifier layer in the adjusted image template on the original image to obtain a target image.
The image template can also comprise other template layers, and the rest template layers can be sequentially overlapped on the modifier element layers or sequentially overlapped according to the combination sequence defined in the image template. For example, in a scene of generating an advertisement picture or a poster picture, a propaganda theme is often generated, or when a main object is a commodity, a merchant is correspondingly generated, so that logo (logo) is added in a target image, the logo is often highlighted, the display color of the logo is often required not to be changed, and therefore the rest template layers of the image template can comprise logo layers, and the logo layers are overlapped on the modifier layers.
Furthermore, for further visual effects. In certain embodiments, the method may further comprise:
separating the original image to obtain a background image layer and a main object image layer;
The synthesizing the adjusted image template and the original image into a target image includes:
Superposing the template background layer on the background image layer;
inserting at least one template layer between the template background layers and the subject object layers;
and superposing the rest template layers on the main object layer to obtain a target image.
The at least one template layer may be a pre-configured target template layer with target content, and the target template layer is located below the subject object layer, for example, a visual effect that the subject object partially occludes the target content may be formed, so as to enrich the visual effect of the image.
And if the residual template image layer exists, the residual template image layer is overlapped on the main object image layer, and then the target image can be obtained.
In one alternative, the image template includes a target modifier layer that presents a target modifier; the target modifying element layer comprises a first modifying layer and a second modifying layer; the target modification element is formed after the first modification layer and the second modification layer are stacked, and partial contents of the target modification element are respectively included in the first modification layer and the second modification layer;
the inserting at least one template layer between the template background layer and the subject object layer comprises:
Inserting a first decoration layer between the template background layer and the main object layer;
superimposing a remaining template layer over the subject object layer, the obtaining a target image comprising:
And sequentially superposing the second decoration layer and the residual template layer on the main object layer to obtain a target image.
By arranging the first decoration layer below the main object layer and arranging the second decoration layer above the main object layer, at least part of the contents in the first decoration layer are shielded by the main object, at least part of the contents in the second decoration layer are shielded by the main object, and finally, the target decoration element is partially shielded by the main object, the interleaving effect of the main object is partially shielded, and the layer interleaving feeling is formed, so that the image visual effect is enriched.
For ease of understanding, as shown in fig. 3d, the original image 321 includes a subject object and a background image, and the subject object layer 322 and the background image layer 323 can be obtained separately by processing the original image 321.
As shown in fig. 3e, the image template may include at least a target modifier element layer for imaging a target modifier element, and assuming that the target modifier element is a rectangular box, the target modifier element layer may include a first modifier layer 324 and a second modifier layer 325, and the first modifier layer 324 and the second modifier layer 325 may display at least part of the content in the target modifier element, as shown in fig. 3e, the content 31 presented by the first modifier layer and the content 32 presented by the second modifier layer, respectively.
In image synthesis, as shown in fig. 3f, the background image layer 323 is located at the lowest position, and a template background layer in the image template can be superimposed on the background image layer 323, where the template background layer is blank corresponding to the main object area, and the main object area is not blocked after the template background layer is superimposed. A first decoration layer 324 is superimposed on the template background layer, a main object layer 322 is superimposed on the first decoration layer 324, a second decoration layer 325 is superimposed on the main object layer 322, if there are remaining template layers, such as other decoration element layers, the remaining template layers are superimposed on the second decoration layer 325, and finally, a target image 326 is synthesized, and the target image 326 presents an interpenetration effect that a rectangular frame part of the content is blocked by the main object 33 and a part of the content is blocked by the main object 33, so that the visual display effect of the image is enriched.
The image template may be formed by at least one template layer, which has a superimposed sequence, i.e. a superimposed positional relationship. Thus in some embodiments, the image template includes at least one template layer;
the adjusting the image template includes: and adjusting the superposition position relation of the at least one template image according to the original image.
The superimposed positional relationship may include a superimposed positional relationship of each template layer, etc., to determine the superimposed order between the template layers.
Specifically, as shown in fig. 4, fig. 4 is a flowchart of another embodiment of an image processing method according to an embodiment of the present application, where the method may include the following steps:
401: an image processing request of a user is received.
402: And acquiring an original image and an image template corresponding to the original image.
Wherein the image template comprises at least one template layer.
403: And separating and obtaining a background image layer and a main object layer from the original image.
404: And adjusting the superposition position relation of the at least one template image according to the original image.
That is, the overlapping positional relationship of the at least one template layer may be adjusted in combination with the background image layer and the subject object layer to obtain the overlapping order of the background image layer, the subject object layer, and the at least one template layer.
405: And inserting one or more template layers between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the rest template layers on the main object layer to obtain a target image.
Specifically, according to the stacking sequence of each image layer determined by the adjusted stacking position relationship, one or more template image layers are inserted between the background image layer and the main object image layer, and the rest template image layers are stacked on the main object image layer, so that a target image is obtained.
In this embodiment, the original image is separated to obtain the background image layer and the subject image layer, so that one or more template layers can be inserted between the background image layer and the subject image layer, and the content of the one or more template layer programs is located below the subject image layer and can form a visual effect of displaying the image layers in a staggered manner with the subject object, thereby enriching the visual effect of the image.
In some embodiments, according to the adjusted superimposed positional relationship, inserting one or more template layers between the background image layer and the subject object layer, and superimposing the remaining template layers on top of the subject object layer, the obtaining the target image may include:
And inserting a target template layer between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the rest template layers on the main object layer to obtain a target image.
That is, only one pre-configured target template layer is inserted between the background image layer and the main object layer, the target template layer includes target content, the target content may be a decoration element or other content, and the at least one template layer may be a pre-configured target template layer with target content, and the target template layer is located below the main object layer, for example, a visual effect that the main object partially occludes the target content may be formed, so as to enrich the visual effect of the image. And if the residual template layer exists, superposing the residual template layer on the main object layer to obtain the target image.
In certain embodiments, the image template includes a target modifier layer; the target modifying element layer is used for presenting target modifying elements; the target modifying element layer comprises a first modifying layer and a second modifying layer;
inserting one or more template layers between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the rest template layers on the main object layer comprises:
and inserting the first decoration layer between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the second decoration layer on the main object layer.
The image template may include at least one modifier layer, and the first modifier layer and the second modifier layer included in the target modifier layer may be pre-configured to form a template layer with a penetrating effect with the subject.
In some embodiments, the image template includes a template background layer;
Inserting the first decoration layer between the background image layer and the main object layer according to the adjusted superposition position relationship, and superposing the second decoration layer and the rest template layer on the main object layer comprises:
superposing the template background layer on the background image layer according to the regulated superposition position relation;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
Wherein the remaining template layers may be zero.
In certain embodiments, the method may further comprise:
Extracting at least one of a background image color and a subject object color from the original image;
and adjusting the template background color of the template background layer and the decoration element color in the decoration element layer according to at least one of the background image color and the main object color.
In one practical application, the image processing request may include an original image, that is, the original image is uploaded by the user.
In an alternative way, the modifier element in the image template is a document element, and specific document content can also be provided by the user aiming at the main object, so that a target image with the document content added according with the requirement of the user can be generated. Therefore, in some embodiments, the target image may also be sent to the user side, so that the user may conveniently view and download the target image for use.
In addition, in some scenes, such as e-commerce scenes, in order to attract users, a lot of popularization activities are usually promoted, the users participate in the popularization activities, commodity pictures can be uploaded, and the system can automatically generate target images and issue the target images.
Thus, in some embodiments, before the receiving the original image uploaded by the user, the method may further comprise:
sending promotion activity participation prompt information to a user terminal;
After the synthesizing the adjusted image template with the original image into the target image, the method may further include:
and publishing the target image on a corresponding page corresponding to the popularization activity.
As a further alternative, the image processing request includes an adjustment instruction;
The adjusting the image template includes:
and adjusting the image template according to the adjustment instruction.
In some embodiments, the adjustment instructions may include a target color therein;
the adjusting the image template according to the adjustment instruction comprises:
and adjusting the color of the image template according to the target color.
Optionally, the adjusting the color of the image template according to the target color may be:
adjusting the color of the template background to the target color;
obtaining a color which is displayed in a contrasting manner with the target color according to the target color;
and adjusting the color of the modifying element to the second color.
Or alternatively;
adjusting the color of the modifying element to the target color;
obtaining a color which is displayed in a contrasting manner with the target color according to the target color;
and adjusting the color of the template background to the second color.
The target color is provided by the user, so that the personalized requirement of the user can be met, and the user can realize the color adjustment of the template by only providing the target color, thereby being convenient and quick.
In some embodiments, the adjustment instruction may further include a target overlay positional relationship of different template layers;
the adjusting the image template according to the adjustment instruction may include:
the target stacking position relationship may further include a stacking position relationship of a subject image layer and a background image layer in the original image.
For example, one possible target overlay positional relationship may include: one or more template layers are inserted between the background image layer and the subject object layer, and the remaining template layers are superimposed over the subject object layer.
Therefore, the adjusting each template layer in the image template to the target superposition positional relationship may include:
And inserting one or more template layers between the background image layer and the main object layer according to the target superposition position relation, and superposing the rest template layers on the main object layer to obtain a target image.
Optionally, the image template includes a target modifier layer; the target modifying element layer is used for presenting target modifying elements; the target modifying element layer comprises a first modifying layer and a second modifying layer;
The target overlay positional relationship may include an overlay positional relationship of the first and second decoration images, and therefore, the inserting one or more template layers between the background image layer and the subject object layer, and the overlaying the remaining template layers on the subject object layer may include:
And inserting the first decoration layer between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the second decoration layer and the residual template layer on the main object layer.
Optionally, inserting the first decoration layer between the background image layer and the subject object layer, and superimposing the second decoration layer and the remaining template layer on top of the subject object layer may include:
Superposing the template background layer on the background image layer;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
In some embodiments, the adjustment instructions may include image processing instructions and template adjustment instructions;
The adjusting the image template includes:
according to the image processing instruction, the original image is adjusted;
Adjusting the image template according to the template adjustment instruction;
the synthesizing the adjusted image template and the original image into a target image comprises:
And synthesizing the adjusted image template and the adjusted original image into a target image.
The template adjustment instruction may include, for example, a target color and/or a target stacking position relationship, and a specific adjustment method combined with the target color or the target stacking position relationship may be described above.
The image processing instructions may include, for example, blurring instructions; thus, said adjusting said original image according to said image processing instructions may comprise:
performing blurring processing on a background image area in the original image;
specific implementation of the blurring process may be referred to above, and will not be described herein.
Wherein, as described above, the original image may be adjusted in combination with an adjustment instruction or a pre-configured adjustment manner. Further, as yet another alternative implementation, the adjusting the image template includes:
determining user characteristics of the user;
and adjusting the image template according to an adjustment mode matched with the user characteristics.
That is, in combination with the user characteristics, an adjustment manner of the user preference may be determined to adjust the image template in accordance with the adjustment manner.
The adjustment method may include, for example, an adjustment method in the embodiment shown in fig. 2 or fig. 4, to adjust the color of the image template or the overlapping positional relationship of the template layers in the image template.
Of course, the adjustment mode may also include other implementation forms, for example, the adjustment mode may include a target color matched with the user feature, or a target overlapping position relationship, etc.
Fig. 5 is a flowchart of another embodiment of an image processing method according to an embodiment of the present application, where the method may include:
501: receiving an image processing request of a user; wherein the image processing request includes an adjustment instruction.
502: And acquiring an original image and an image template corresponding to the original image.
503: And adjusting the image template according to the adjustment instruction.
504: And synthesizing the adjusted image template and the original image into a target image.
That is, the user can provide an adjustment instruction in combination with his own needs to realize automatic adjustment of the image template. In the picture processing scene of the individual user, the personalized requirements of the individual user on picture processing can be met.
The specific implementation manner of adjusting the image template according to the adjustment instruction is described in detail above, and will not be described herein.
Fig. 6 is a flowchart of another embodiment of an image processing method according to an embodiment of the present application, where the method may include:
601: an image processing request of a user is received.
602: And acquiring an original image and an image template corresponding to the original image.
The image template at least comprises a modifier layer for presenting modifier elements.
603: And blurring processing is carried out on the background image area in the original image.
604: And synthesizing the original image after the blurring process and the image template into a target image.
In this embodiment, the background image area of the original image is subjected to blurring processing, so that the background image in the original image can be blurred, and the main object in the original image is more prominently displayed, thereby ensuring that the visual attraction of the main object in the synthesized target image can be improved, and improving the visual effect. The modifier elements overlapped in the background image area can be highlighted without color block setting off, and the modifier elements are clearly displayed, so that the readability of the modifier elements is improved.
To further enhance the visual effect, in some embodiments, the blurring the background image region in the original image may include:
detecting a background image area and a main object area in the original image;
And blurring processing is carried out on the background image area of the original image according to a rule that the blurring degree is larger as the distance from the main object area is larger.
The blurring processing manner may be referred to above, and will not be described herein.
In certain embodiments, the method may further comprise:
Extracting at least one of a background image color and a subject object color from the original image;
adjusting the color of the image template according to at least one of the background image color and the main object color;
The synthesizing the original image after the blurring process with the image template into a target image includes:
and synthesizing the original image after blurring processing and the image template after adjustment into a target image.
Alternatively, since an image template is generally used to decorate a background image of an original image or to add a decoration element or the like to the original image, the color of the image template mainly refers to a template background color and a decoration element color, and thus the template background color and the decoration element color of the image template may be adjusted according to at least one of the background image color and the subject object color.
The specific implementation manner of adjusting the template background color and the decoration element color of the image template according to at least one of the background image color and the main object color may be described in the above embodiments, and will not be described herein again.
In some embodiments, the image template includes at least one template layer;
The synthesizing the original image after the blurring process with the image template into a target image includes:
separating and obtaining a background image layer and a main object layer from the original image after blurring processing;
And inserting one or more template layers between the background image layer and the main object layer, and superposing the rest template layers on the main object layer to obtain a target image.
By inserting one or more template layers between the background image layer and the subject image layer, a layer interlaced feel can be created to enrich the visual effect of the image.
Alternatively, a template layer may be interposed between the background image layer and the subject object layer, and may be a pre-configured target template layer, where the target template layer may include target content, and the target template layer may be located below the subject object layer, for example, may form a visual effect that the subject object partially occludes the target content, so as to enrich the visual effect of the image.
In certain embodiments, the image template includes a target modifier layer; the target modifying element layer comprises a first modifying layer and a second modifying layer;
the inserting one or more template layers between the background image layer and the subject object layer, and the superimposing remaining template layers over the subject object layer includes:
and inserting the first decoration layer between the background image layer and the main object layer, and sequentially overlapping the second decoration layer and the rest template layer on the main object layer.
Wherein the remaining template layers may be zero.
The first decoration layer and the second decoration layer may be template layers that are pre-configured to achieve an effect of interpenetration between the target decoration element and the subject object.
In some embodiments, the image template includes a template background layer, the inserting a first trim layer between the background image layer and the subject object layer, and overlaying the second trim layer over the subject object layer may include:
Superposing the template background layer on the background image layer;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
The method may specifically include adjusting a template background color of the template background layer and a modifier color of the modifier layer according to at least one of the background image color and the subject object color.
In an actual application, the technical scheme of the embodiment of the application can be applied to an electronic commerce scene and used for generating a popularization picture corresponding to the commodity based on the commodity picture.
In the interaction schematic diagram shown in fig. 7, a merchant may submit a commodity picture through the merchant terminal 701, and the server 702 searches an image template based on the commodity picture, so that a popularization picture with a high quality visual effect may be synthesized according to the technical scheme of the embodiment of the present application.
In an alternative implementation, the promotional picture may be returned to the merchant's end, may be available for viewing or download by the merchant, etc.
In addition, the commodity picture submitted by the merchant can be submitted for a certain promotion activity and used for participating in the promotion activity, at this time, the promotion picture can be directly issued, for example, the promotion picture is displayed at a specific position in a specific page of the user terminal 703, the specific page can be, for example, a top page of the user terminal 703 or an active page of the promotion activity, etc., so that the user can view the promotion picture, and in addition, a link address of the promotion picture can be set, so that clicking the promotion picture can index to a description page of the commodity, etc. By adopting the technical scheme of the embodiment of the application, the visual effect of the popularization picture is better, and the popularization picture is more favorable for attracting users, so that the click rate of the popularization picture can be improved, and the sales of commodities and the like can be improved.
In the case that the original image is a commodity picture, the main object of the original image is a commodity in the commodity picture, and as a further embodiment, the embodiment of the present application further provides an image processing method, where the method may include:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
Adjusting the image template;
and synthesizing the adjusted image template and the commodity picture into a popularization picture.
As still another embodiment, an embodiment of the present application further provides an image processing method, which may include:
receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
according to the adjustment instruction, adjusting the image template;
and synthesizing the adjusted image template and the commodity image into a popularization picture.
As still another embodiment, an embodiment of the present application further provides an image processing method, which may include:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
performing fuzzy processing on a background image area in the commodity picture;
And synthesizing the commodity picture after the blurring processing with the image template to form a popularization picture.
In some embodiments, acquiring the commodity picture and the image template corresponding to the commodity picture may include:
acquiring commodity pictures in the image processing request;
And searching an image template matched with the commodity picture.
In some embodiments, before the receiving the image processing request, the method may further include:
sending promotion activity participation prompt information to a merchant terminal;
After synthesizing the target image, the method may further include:
and publishing the promotion pictures on the corresponding pages corresponding to the promotion activities.
Wherein, the step of publishing the promotion picture in the page can be to display the promotion picture in the page so as to realize the aim of commodity propaganda.
Optionally, the promotion picture may be linked to a description page of the commodity, and based on a triggering operation of the user on the promotion picture, the description page of the commodity may be correspondingly output.
In still another practical application, the technical scheme of the embodiment of the application can be applied to a personal user picture processing scene, and a user can shoot pictures anytime and anywhere along with the upgrading of camera hardware such as mobile equipment and the like. In order to improve the visual effect of the picture, the picture can be processed by an application program of an image processing class, for example, an image template with a specific visual effect is overlapped, the visual effect of the picture is enhanced, and the like. According to the technical scheme of the embodiment of the application, a user can submit an original image in an application program and can select an image template, so that the image template can be adjusted, for example, a main body object in the original image is a human body, the main body color of the human body is usually a clothes color, and the template background color and the like of the image template can be automatically adjusted by combining the clothes color, so that the visual effect of a synthesized target image is better; in addition, for example, the image template can comprise decorative elements such as characters, and the superposition sequence among all the layers is readjusted by separating the layers of the original image, so that the visual effect of staggered display of the layers can be realized, or the visual effect of main object and character penetration and the like can also be realized, the visual effect of the image is enriched, the image processing quality of an application program is improved, the requirement of a personal user on image processing is met, and the user experience is improved.
Fig. 8 is a schematic structural diagram of an embodiment of an image processing apparatus according to an embodiment of the present application, where the apparatus may include:
a first request receiving module 801, configured to receive an image processing request of a user;
a first obtaining module 802, configured to obtain an original image and an image template corresponding to the original image;
A first adjustment module 803 for adjusting the image template;
A first synthesis template 804, configured to synthesize the adjusted image template and the original image into a target image. In some embodiments, the first adjustment module may be specifically configured to extract at least one of a background image color and a subject object color from the original image; and adjusting the color of the image template according to at least one of the background image color and the main object color.
In some embodiments, the first adjustment module is specifically configured to adjust a template background color and a modifier color of the image template according to at least one of the background image color and the subject object color.
In some embodiments, the first adjustment module is specifically configured to adjust saturation and/or brightness of the background image color to obtain a first color; adjusting the color of the template background to the first color; obtaining a second color which is displayed in a contrasting manner with the background image according to the background image color; and adjusting the color of the modifying element to the second color.
In some embodiments, the first adjustment module obtaining a second color for display in contrast to the background image color according to the background image color comprises:
If the brightness of the background image color is smaller than a first brightness value, determining that the second color is white;
and if the color brightness of the background image is larger than the first brightness value, adjusting the saturation and/or brightness of the color of the main object to obtain a second color.
In some embodiments, the first adjustment module is specifically configured to determine whether the background image color and the subject color meet a color matching rule; if yes, adjusting the template background color and the decoration element color of the image template according to the background image color; if not, adjusting the template background color and the decoration element color of the image template according to the third color which meets the color matching rule with the color of the main object.
In some embodiments, the first adjustment module is specifically configured to adjust a template background color and a modifier color of the image template according to a fourth color that meets a color matching rule with the subject color.
In some embodiments, the apparatus may further comprise:
the blurring processing module is used for blurring processing the background image area in the original image;
The first synthesizing module is specifically configured to synthesize the original image after the blurring process with the adjusted image template to a target image.
In some embodiments, the blurring processing module is specifically configured to detect a background image area and a subject object area in the original image; and blurring processing is carried out on the background image area of the original image according to a rule that the blurring degree is larger as the distance from the main object area is larger.
In some embodiments, the image template includes a plurality of template layers; the template layers comprise a template background layer and a modifier layer; the modifying element layer is used for presenting at least one modifying element;
the apparatus further comprises:
The image separation module is used for separating the original image to obtain a background image layer and a main object image layer;
The first synthesis module is specifically configured to superimpose the template background layer on the background image layer; inserting at least one template layer between the template background layers and the subject object layers; and superposing the rest template layers on the main object layer to obtain a target image.
In certain embodiments, the image template includes a target modifier layer; the target modifying element layer comprises a first modifying layer and a second modifying layer; the image synthesized by the first decorative layer and the second decorative layer comprises decorative elements, and the first decorative layer and the second decorative layer respectively comprise part of the content of the decorative elements;
the first synthesis module inserting at least one template layer between the template background layer and the subject object layer comprises:
Inserting a first decoration layer between the template background layer and the main object layer;
superimposing a remaining template layer over the subject object layer, the obtaining a target image comprising:
And sequentially superposing the second decoration layer and the residual template layer on the main object layer to obtain a target image.
In some embodiments, the first obtaining module is specifically configured to receive an original image uploaded by a user; and searching an image template matched with the original image.
In some embodiments, the apparatus may further comprise:
the activity promotion module is used for sending promotion activity participation prompt information to the user side;
And the business processing module is used for publishing the target image on the corresponding page corresponding to the popularization activity.
In some embodiments, the image template includes at least one template layer;
the first adjusting module is specifically configured to adjust a superposition positional relationship of the at least one template image according to the original image.
In some embodiments, the first synthesis module may be specifically configured to separate and obtain a background image layer and a subject image layer from the original image; and inserting one or more template layers between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the rest template layers on the main object layer to obtain a target image.
In certain embodiments, the image template includes a target modifier layer; the target modifying element layer is used for presenting target modifying elements; the target modifying element layer comprises a first modifying layer and a second modifying layer;
The first synthesis module is specifically configured to insert the first decoration layer between the background image layer and the subject image layer according to the adjusted overlapping positional relationship, and overlap the second decoration layer and the remaining template layer on the subject image layer.
In some embodiments, the image template includes a template background layer;
The first synthesis module inserts the first decoration layer between the background image layer and the subject object layer, and superimposes the second decoration layer and the remaining template layer on the subject object layer, including:
Superposing the template background layer on the background image layer;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
In some embodiments, the apparatus may further comprise:
a color adjustment module for extracting at least one of a background image color and a subject object color from the original image; and adjusting the template background color of the template background layer and the decoration element color in the decoration element layer according to at least one of the background image color and the main object color.
In some embodiments, the image processing request includes an adjustment instruction;
the first adjusting module is specifically configured to adjust the image template according to the adjusting instruction.
In some embodiments, the first adjustment module is specifically configured to determine a user characteristic of the user; and adjusting the image template according to an adjustment mode matched with the user characteristics.
The image processing apparatus shown in fig. 8 may perform the image processing method described in the embodiment shown in fig. 1, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules, units, and operations of the image processing apparatus in the above embodiments are performed has been described in detail in the embodiments concerning the method, and will not be described in detail here.
In addition, the embodiment of the application also provides an application program, as shown in fig. 9, the application program may include:
an input interface 901 for receiving an image processing request of a user;
the loading component 902 is configured to obtain an original image and an image template corresponding to the original image;
A processing engine 903 for adjusting the image template and synthesizing the adjusted image template and the original image into a target image.
The application program shown in fig. 9 may perform the image processing method shown in fig. 1, and its implementation principle and technical effects will not be described again.
In one possible design, the image processing apparatus of the embodiment shown in fig. 8 may be implemented as a computing device, which may include a storage component 1001 and a processing component 1002 as shown in fig. 10;
The storage component 1001 stores one or more computer instructions for execution by the processing component 1002.
The processing component 1002 is configured to:
receiving an image processing request of a user;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
Of course, the computing device may necessarily include other components, such as input/output interfaces, communication components, and the like.
The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc.
The communication component is configured to facilitate wired or wireless communication between the computing device and other devices, and the like.
The embodiment of the application also provides a computer readable storage medium storing a computer program, which when executed by a computer can implement the image processing method of the embodiment shown in fig. 1.
In still another embodiment, an embodiment of the present application further provides an image processing apparatus, including:
The second request receiving module is used for receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
The second acquisition module is used for acquiring an original image and an image template corresponding to the original image;
the second adjusting module is used for adjusting the image template according to the adjusting instruction;
and the second synthesis template is used for synthesizing the adjusted image template and the original image into a target image.
In one possible design, the image processing apparatus may be implemented as a computing device that may include a storage component and a processing component;
The storage component stores one or more computer instructions, wherein the one or more computer instructions are for execution by the processing component.
The processing assembly is configured to:
Receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
acquiring an original image and an image template corresponding to the original image;
according to the adjustment instruction, adjusting the image template;
and synthesizing the adjusted image template and the original image into a target image.
In addition, the embodiment of the application also provides an application program, which comprises the following steps:
An input interface for receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
and the processing engine is used for adjusting the image template according to the adjustment instruction and synthesizing the adjusted image template and the original image into a target image.
In addition, an embodiment of the present application further provides a computer readable storage medium storing a computer program, where the computer program when executed by a computer may implement the image processing method of the embodiment shown in fig. 5.
Fig. 11 is a schematic structural diagram of another embodiment of an image processing apparatus according to an embodiment of the present application, where the apparatus may include:
A third request receiving module 1101, configured to receive an image processing request of a user;
a third obtaining module 1102, configured to obtain an original image and an image template corresponding to the original image;
an image processing module 1103, configured to perform blurring processing on a background image area in the original image;
A third synthesizing module 1104 is configured to synthesize the original image after the blurring process with the image template to a target image.
In some embodiments, the apparatus may further comprise: a color adjustment module for extracting at least one of a background image color and a subject object color from the original image; adjusting the color of the image template according to at least one of the background image color and the main object color;
the second synthesizing module is specifically configured to synthesize the original image after the blurring process and the image template after the adjustment into a target image.
In some embodiments, the image template includes at least one template layer;
The second synthesis module is specifically configured to separate and obtain a background image layer and a main object layer from the original image after the blurring process; and inserting one or more template layers between the background image layer and the main object layer, and superposing the rest template layers on the main object layer to obtain a target image.
In certain embodiments, the image template includes a target modifier layer; the target modifying element layer comprises a first modifying layer and a second modifying layer;
The second synthesis module inserts one or more template layers between the background image layer and the subject object layer, and superimposes remaining template layers on top of the subject object layer includes:
and inserting the first decoration layer between the background image layer and the main object layer, and sequentially overlapping the second decoration layer and the rest template layer on the main object layer.
In some embodiments, the image template includes a template background layer;
The second synthesis module inserts a first decoration layer between the background image layer and the subject object layer, and superimposes the second decoration layer on top of the subject object layer includes:
Superposing the template background layer on the background image layer;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
The image processing apparatus shown in fig. 11 may perform the image processing method described in the embodiment shown in fig. 6, and its implementation principle and technical effects are not repeated. The specific manner in which the respective modules, units, and operations of the image processing apparatus in the above embodiments are performed has been described in detail in the embodiments concerning the method, and will not be described in detail here.
In one possible design, the image processing apparatus of the embodiment shown in fig. 11 may be implemented as a computing device, which may include a storage component 1201 and a processing component 1202, as shown in fig. 12;
The storage component 1201 stores one or more computer instructions for execution by the processing component 1202.
The processing component 1202 is configured to:
receiving an image processing request of a user;
Acquiring an original image and an image template corresponding to the original image;
performing blurring processing on a background image area in the original image;
and synthesizing the original image after the blurring process and the image template into a target image.
Of course, the computing device may necessarily include other components, such as input/output interfaces, communication components, and the like.
The input/output interface provides an interface between the processing component and a peripheral interface module, which may be an output device, an input device, etc.
The communication component is configured to facilitate wired or wireless communication between the computing device and other devices, and the like.
The embodiment of the application also provides a computer readable storage medium storing a computer program, which when executed by a computer can implement the image processing method of the embodiment shown in fig. 6.
In addition, the embodiment of the application also provides an application program, which can include:
an input interface for receiving an image processing request of a user;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
and the processing engine is used for carrying out blurring processing on a background image area in the original image and synthesizing the original image after the blurring processing and the image template into a target image.
The computing device may be a physical device or an elastic computing host provided by the cloud computing platform, and the computing device may be a cloud server, and the processing component, the storage component, and the like may be a base server resource rented or purchased from the cloud computing platform. Thus, in actual practice, the "computing device" may be a remote web server, a computer networking device, a chipset, a desktop computer, a notebook computer, a workstation, or any other processing device or equipment.
Of course, the computing device may also refer to a portable mobile terminal, such as a cell phone, tablet computer, personal computer, and the like.
The processing components described above may include one or more processors to execute computer instructions to perform all or part of the steps in the methods described above. Of course, the processing component may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements for executing the methods described above.
The storage component is configured to store various types of data to support operations in the computing device. The memory component may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (35)
1. An image processing method, comprising:
receiving an image processing request of a user;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template, wherein the adjusting the image template comprises adjusting a template background color and a modifier color of the image template or a superposition position relation of at least one template image layer of the image template, the adjusted superposition position relation is used for indicating that one or more template image layers are inserted between a background image layer and a main object image layer, and the rest template image is superposed on the main object image layer;
and synthesizing the adjusted image template and the original image into a target image.
2. The method of claim 1, wherein said adjusting said image template comprises:
Extracting at least one of a background image color and a subject object color from the original image;
And adjusting the template background color and the decoration element color of the image template according to at least one of the background image color and the main object color.
3. The method of claim 2, wherein adjusting the template background color and the modifier element color in the image template according to at least one of the background image color and the subject object color comprises:
adjusting the saturation and/or brightness of the background image color to obtain a first color;
Adjusting the color of the template background to the first color;
obtaining a second color which is displayed in a contrasting manner with the background image according to the background image color;
and adjusting the color of the modifying element to the second color.
4. A method according to claim 3, wherein said obtaining a second color displayed in contrast to said background image color from said background image color comprises:
If the brightness of the background image color is smaller than a first brightness value, determining that the second color is white;
and if the color brightness of the background image is larger than the first brightness value, adjusting the saturation and/or brightness of the color of the main object to obtain a second color.
5. The method of claim 2, wherein adjusting the template background color and the modifier color of the image template according to at least one of the background image color and the subject object color comprises:
Judging whether the color of the background image and the color of the main object meet a color matching rule or not;
If yes, adjusting the template background color and the decoration element color of the image template according to the background image color;
If not, adjusting the template background color and the decoration element color of the image template according to the third color which meets the color matching rule with the color of the main object.
6. The method of claim 2, wherein adjusting the template background color and the modifier color of the image template according to at least one of the background image color and the subject object color comprises:
And adjusting the template background color and the decoration element color of the image template according to the fourth color which meets the color matching rule with the color of the main object.
7. The method as recited in claim 1, further comprising:
performing blurring processing on a background image area in the original image;
The synthesizing the adjusted image template and the original image into a target image comprises the following steps:
and synthesizing the original image after the blurring process and the adjusted image template into a target image.
8. The method of claim 7, wherein blurring the background image region in the original image comprises:
detecting a background image area and a main object area in the original image;
And blurring processing is carried out on the background image area of the original image according to a rule that the blurring degree is larger as the distance from the main object area is larger.
9. The method of claim 2, wherein the image template comprises a plurality of template layers; the template layers comprise a template background layer and a modifier layer; the modifying element layer is used for presenting at least one modifying element;
the method further comprises the steps of:
separating the original image to obtain a background image layer and a main object image layer;
The synthesizing the adjusted image template and the original image into a target image comprises the following steps:
Superposing a template background layer in the adjusted image template on the background image layer;
Inserting at least one template layer in the adjusted image template between the template background layers and the main object layers;
And superposing the rest template layers in the adjusted image template on the main object layer to obtain a target image.
10. The method of claim 9, wherein the image template comprises a target modifier layer; the target modifying element layer comprises a first modifying layer and a second modifying layer; the image synthesized by the first decorative layer and the second decorative layer comprises decorative elements, and the first decorative layer and the second decorative layer respectively comprise part of the content of the decorative elements;
The inserting at least one template layer in the adjusted image template between the template background layer and the main object layer comprises:
Inserting a first decoration layer between the template background layer and the main object layer;
superimposing a remaining template layer over the subject object layer, the obtaining a target image comprising:
And sequentially superposing the second decoration layer and the residual template layer on the main object layer to obtain a target image.
11. The method of claim 2, wherein the original image is included in the image processing request.
12. The method of claim 11, wherein prior to receiving the user's image processing request, the method further comprises:
sending promotion activity participation prompt information to a user terminal;
after the image template is combined with the original image into the target image, the method further comprises:
and publishing the target image on a corresponding page corresponding to the popularization activity.
13. The method of claim 1, wherein the image template comprises at least one template layer;
The adjusting the image template includes: and adjusting the superposition position relation of the at least one template layer according to the original image.
14. The method of claim 13, wherein synthesizing the adjusted image template and the original image into a target image comprises:
Separating and obtaining a background image layer and a main object layer from the original image;
And inserting one or more template layers between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the rest template layers on the main object layer to obtain a target image.
15. The method of claim 14, wherein the image template comprises a target modifier layer; the target modifying element layer is used for presenting target modifying elements; the target modifying element layer comprises a first modifying layer and a second modifying layer;
Inserting one or more template layers between the background image layer and the main object layer according to the adjusted superposition position relationship, and superposing the rest template layers on the main object layer comprises:
And inserting the first decoration layer between the background image layer and the main object layer according to the adjusted superposition position relation, and superposing the second decoration layer and the residual template layer on the main object layer.
16. The method of claim 15, wherein the image template comprises a template background layer;
The inserting the first decoration layer between the background image layer and the main object layer according to the adjusted superposition position relationship, and superposing the second decoration layer and the rest template layer above the main object layer includes:
superposing the template background layer on the background image layer according to the regulated superposition position relation;
The first decoration layer is inserted between the template background layer and the subject object layer, and the second decoration layer and the rest of the template layers are overlapped on the subject object layer.
17. The method of claim 1, wherein the image processing request includes an adjustment instruction; the adjustment instruction comprises a target color;
The adjusting the image template includes:
and adjusting the color of the image template according to the target color.
18. The method of claim 1, wherein said adjusting said image template comprises:
determining user characteristics of the user;
and adjusting the image template according to an adjustment mode matched with the user characteristics.
19. An image processing method, comprising:
Receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template according to the adjustment instruction, wherein the adjusting the image template comprises adjusting the template background color and the modifier element color of the image template or the superposition position relation of at least one template layer of the image template, wherein the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer;
and synthesizing the adjusted image template and the original image into a target image.
20. The method of claim 19, wherein the adjustment instructions include image processing instructions and template adjustment instructions;
the adjusting the image template according to the adjustment instruction comprises:
Adjusting the image template according to the template adjustment instruction;
According to the image processing instruction, the original image is adjusted;
the synthesizing the adjusted image template and the original image into a target image comprises:
And synthesizing the adjusted image template and the adjusted original image into a target image.
21. The method of claim 19, wherein the adjustment instruction includes a target color, and wherein adjusting the image template according to the adjustment instruction includes:
and adjusting the template background color and the decoration element color of the image template according to the target color.
22. The method of claim 21, wherein adjusting the template background color and the modifier color of the image template according to the target color comprises:
Adjusting the template background color of the image template to the target color;
obtaining a color which is displayed in a contrasting manner with the target color according to the target color;
and adjusting the color of the decoration element to be the color displayed in contrast with the target color.
23. An image processing method, comprising:
receiving an image processing request of a user;
Acquiring an original image and an image template corresponding to the original image;
performing blurring processing on a background image area in the original image;
And synthesizing the original image after the blurring processing with the image template to obtain a target image, wherein the image template is used for adjusting the template background color and the decoration element color of the image template or adjusting the superposition position relation of at least one template layer of the image template, the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer.
24. An image processing method, comprising:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
Adjusting the image template, wherein the adjusting the image template comprises adjusting a template background color and a modifier color of the image template or a superposition position relation of at least one template image layer of the image template, the adjusted superposition position relation is used for indicating that one or more template image layers are inserted between a background image layer and a main object image layer, and the rest template image is superposed on the main object image layer;
and synthesizing the adjusted image template and the commodity picture into a popularization picture.
25. An image processing method, comprising:
receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
Adjusting the image template according to the adjustment instruction, wherein the adjusting the image template comprises adjusting the template background color and the modifier element color of the image template or the superposition position relation of at least one template layer of the image template, wherein the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer;
and synthesizing the adjusted image template and the commodity picture into a popularization picture.
26. An image processing method, comprising:
receiving an image processing request of a user;
acquiring commodity pictures and image templates corresponding to the commodity pictures;
performing fuzzy processing on a background image area in the commodity picture;
and synthesizing the commodity picture after the blurring processing with the image template to obtain a popularization picture, wherein the image template is used for adjusting the template background color and the decoration element color of the image template or adjusting the superposition position relation of at least one template layer of the image template, and the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer and the rest template layers are superposed on the main object layer.
27. An image processing apparatus, comprising:
The first request receiving module is used for receiving an image processing request of a user;
The first acquisition module is used for acquiring an original image and an image template corresponding to the original image;
A first adjustment module, configured to adjust the image template, where the adjusting the image template includes adjusting a template background color and a modifier color of the image template, or an overlapping positional relationship of at least one template layer of the image template, where the adjusted overlapping positional relationship is used to indicate that one or more template layers are inserted between a background image layer and a subject object layer, and stacking a remaining template layer onto the subject object layer;
And the first synthesis template is used for synthesizing the adjusted image template and the original image into a target image.
28. An image processing apparatus, comprising:
The second request receiving module is used for receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
The second acquisition module is used for acquiring an original image and an image template corresponding to the original image;
The second adjustment module is configured to adjust the image template according to the adjustment instruction, where the adjusting the image template includes adjusting a template background color and a modifier color of the image template, or an overlapping position relationship of at least one template layer of the image template, where the adjusted overlapping position relationship is used to indicate that one or more template layers are inserted between a background image layer and a subject image layer, and stacking a remaining template layer onto the subject image layer;
and the second synthesis template is used for synthesizing the adjusted image template and the original image into a target image.
29. An image processing apparatus, comprising:
A third request receiving module for receiving an image processing request of a user;
The third acquisition module is used for acquiring an original image and an image template corresponding to the original image;
the image processing module is used for carrying out fuzzy processing on a background image area in the original image;
And the third synthesis module is used for synthesizing the original image after the blurring processing and the image template into a target image, the image template is used for adjusting the template background color and the decoration element color of the image template or adjusting the superposition position relation of at least one template layer of the image template, the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer.
30. An application program, comprising:
an input interface for receiving an image processing request of a user;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
The processing engine is configured to adjust the image template, where adjusting the image template includes adjusting a template background color and a modifier color of the image template, or an overlapping positional relationship of at least one template layer of the image template, where the adjusted overlapping positional relationship is used to indicate that one or more template layers are inserted between a background image layer and a subject object layer, and a remaining template layer is overlapped on the subject object layer, and the adjusted image template and the original image are combined into a target image.
31. An application program, comprising:
An input interface for receiving an image processing request of a user; the image processing request comprises an adjustment instruction;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
The processing engine is configured to adjust the image template according to the adjustment instruction, where the adjusting the image template includes adjusting a template background color and a decoration element color of the image template, or an overlapping position relationship of at least one template layer of the image template, where the adjusted overlapping position relationship is used to indicate that one or more template layers are inserted between a background image layer and a subject image layer, and a remaining template layer is overlapped on the subject image layer, and the adjusted image template and the original image are combined into a target image.
32. An application program, comprising:
an input interface for receiving an image processing request of a user;
the loading assembly is used for acquiring an original image and an image template corresponding to the original image;
The processing engine is used for carrying out blurring processing on a background image area in the original image, synthesizing the original image after blurring processing with the image template into a target image, adjusting the template background color and the modifier element color of the image template or adjusting the superposition position relation of at least one template image layer of the image template, and indicating that one or more template image layers are inserted between the background image layer and a main object image layer and laminating the rest template image layer on the main object image layer.
33. A computing device comprising a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
receiving an image processing request of a user;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template, wherein the adjusting the image template comprises adjusting a template background color and a modifier color of the image template or a superposition position relation of at least one template image layer of the image template, the adjusted superposition position relation is used for indicating that one or more template image layers are inserted between a background image layer and a main object image layer, and the rest template image is superposed on the main object image layer;
and synthesizing the adjusted image template and the original image into a target image.
34. A computing device comprising a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
Receiving an image processing request of a user; wherein the image processing request comprises an adjustment instruction;
acquiring an original image and an image template corresponding to the original image;
Adjusting the image template according to the adjustment instruction, wherein the adjusting the image template comprises adjusting the template background color and the modifier element color of the image template or the superposition position relation of at least one template layer of the image template, wherein the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer;
and synthesizing the adjusted image template and the original image into a target image.
35. A computing device comprising a processing component and a storage component;
The storage component stores one or more computer instructions; the one or more computer instructions are to be invoked for execution by the processing component;
The processing assembly is configured to:
receiving an image processing request of a user;
Acquiring an original image and an image template corresponding to the original image;
performing blurring processing on a background image area in the original image;
And synthesizing the original image after the blurring processing with the image template to obtain a target image, wherein the image template is used for adjusting the template background color and the decoration element color of the image template or adjusting the superposition position relation of at least one template layer of the image template, the adjusted superposition position relation is used for indicating that one or more template layers are inserted between a background image layer and a main object layer, and the rest template layers are superposed on the main object layer.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911008138.5A CN112700513B (en) | 2019-10-22 | 2019-10-22 | Image processing method and device |
PCT/CN2020/120550 WO2021078036A1 (en) | 2019-10-22 | 2020-10-13 | Image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911008138.5A CN112700513B (en) | 2019-10-22 | 2019-10-22 | Image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112700513A CN112700513A (en) | 2021-04-23 |
CN112700513B true CN112700513B (en) | 2024-10-22 |
Family
ID=75504969
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911008138.5A Active CN112700513B (en) | 2019-10-22 | 2019-10-22 | Image processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112700513B (en) |
WO (1) | WO2021078036A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113298921A (en) * | 2021-05-19 | 2021-08-24 | 广州虎牙科技有限公司 | Theme template color matching method and device, electronic equipment and storage medium |
CN113692215A (en) * | 2021-07-30 | 2021-11-23 | 广州佳帆计算机有限公司 | System, method and device for adjusting position of patch element |
CN114546213B (en) * | 2021-08-23 | 2023-04-28 | 成都统信软件技术有限公司 | Picture processing method, computing device and readable storage medium |
CN113947529B (en) * | 2021-10-14 | 2023-01-10 | 万翼科技有限公司 | Image enhancement method, model training method, component identification method and related equipment |
CN115205416B (en) * | 2022-08-12 | 2023-06-09 | 广州鼎甲计算机科技有限公司 | Image generation method, device, computer equipment and storage medium |
CN117710263A (en) * | 2022-09-09 | 2024-03-15 | 北京字跳网络技术有限公司 | Image processing method, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587586A (en) * | 2008-05-20 | 2009-11-25 | 株式会社理光 | Device and method for processing images |
CN107392832A (en) * | 2017-06-30 | 2017-11-24 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN109240689A (en) * | 2018-08-15 | 2019-01-18 | 腾讯科技(深圳)有限公司 | A kind of generation method of application icon, device, server and medium |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753851B (en) * | 2008-12-17 | 2011-12-28 | 华为终端有限公司 | Method for replacing background, method for synthesizing virtual scene, as well as relevant system and equipment |
CN102436666A (en) * | 2011-08-31 | 2012-05-02 | 上海大学 | Object and scene fusion method based on IHS (Intensity, Hue, Saturation) transform |
KR101817657B1 (en) * | 2011-12-21 | 2018-01-11 | 삼성전자주식회사 | Digital photographing apparatus splay apparatus and control method thereof |
WO2014102798A1 (en) * | 2012-12-31 | 2014-07-03 | Given Imaging Ltd. | System and method for displaying an image stream |
CN103530848A (en) * | 2013-09-27 | 2014-01-22 | 中国人民解放军空军工程大学 | Double exposure implementation method for inhomogeneous illumination image |
US9832373B2 (en) * | 2014-06-24 | 2017-11-28 | Cyberlink Corp. | Systems and methods for automatically capturing digital images based on adaptive image-capturing templates |
CN105335939B (en) * | 2014-08-15 | 2020-01-10 | 腾讯科技(深圳)有限公司 | Image processing method and device |
CN105550980B (en) * | 2014-10-29 | 2018-11-27 | 阿里巴巴集团控股有限公司 | A kind of Picture Generation Method and relevant apparatus |
CN105426438A (en) * | 2015-11-05 | 2016-03-23 | 深圳市金立通信设备有限公司 | Information display method and terminal |
CN107517303A (en) * | 2016-06-17 | 2017-12-26 | 中兴通讯股份有限公司 | Wallpaper treatment method and device |
CN107133939A (en) * | 2017-04-24 | 2017-09-05 | 努比亚技术有限公司 | A kind of picture synthesis method, equipment and computer-readable recording medium |
CN107230182B (en) * | 2017-08-03 | 2021-11-09 | 腾讯科技(深圳)有限公司 | Image processing method and device and storage medium |
CN110148102B (en) * | 2018-02-12 | 2022-07-15 | 腾讯科技(深圳)有限公司 | Image synthesis method, advertisement material synthesis method and device |
CN108550101B (en) * | 2018-04-19 | 2023-07-25 | 腾讯科技(深圳)有限公司 | Image processing method, device and storage medium |
CN108874482B (en) * | 2018-05-30 | 2021-06-15 | 北京小米移动软件有限公司 | Image processing method and device |
CN108989678B (en) * | 2018-07-27 | 2021-03-23 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN109345612B (en) * | 2018-09-13 | 2022-11-29 | 腾讯数码(天津)有限公司 | Image generation method, device, equipment and storage medium |
CN109300013A (en) * | 2018-10-25 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating information |
-
2019
- 2019-10-22 CN CN201911008138.5A patent/CN112700513B/en active Active
-
2020
- 2020-10-13 WO PCT/CN2020/120550 patent/WO2021078036A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587586A (en) * | 2008-05-20 | 2009-11-25 | 株式会社理光 | Device and method for processing images |
CN107392832A (en) * | 2017-06-30 | 2017-11-24 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN109240689A (en) * | 2018-08-15 | 2019-01-18 | 腾讯科技(深圳)有限公司 | A kind of generation method of application icon, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021078036A1 (en) | 2021-04-29 |
CN112700513A (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112700513B (en) | Image processing method and device | |
CN107621966B (en) | Graphical user interface display method and device and terminal equipment | |
CN107665482B (en) | Video data real-time processing method and device for realizing double exposure and computing equipment | |
CN105185352B (en) | The edge method of modifying and edge decorating device of image | |
CN107369188A (en) | The synthetic method and device of image | |
CN109416831A (en) | The inexpensive color expansion module of color for expanded images | |
US20140101614A1 (en) | Theme display method and related apparatus | |
US10650488B2 (en) | Apparatus, method, and computer program code for producing composite image | |
CN112800718A (en) | PDF document display method, computer equipment and storage medium | |
CN114564131B (en) | Content publishing method, device, computer equipment and storage medium | |
CN112541955B (en) | Image processing method, device and equipment | |
US10484523B2 (en) | Mobile communication terminal and method therefore | |
US9460544B2 (en) | Device, method and computer program for generating a synthesized image from input images representing differing views | |
CN112218006B (en) | Multimedia data processing method and device, electronic equipment and storage medium | |
CN106155508B (en) | Information processing method and client | |
US10989600B2 (en) | Automated methods and systems to fill background and interstitial space in a visual object layout | |
US20170345192A1 (en) | Systems and methods for displaying content of digital media | |
CN110533744B (en) | Method, device and system for synthesizing picture and mobile terminal | |
CN113360820B (en) | Page display method, system, equipment and storage medium | |
CN111107264A (en) | Image processing method, image processing device, storage medium and terminal | |
US20130054425A1 (en) | Web-based system permitting a customer to shop online for clothes with their own picture | |
CN114266782A (en) | Image processing method and system and electronic equipment | |
CN115115503A (en) | Image display method, device, processor and nonvolatile storage medium | |
CN114565686A (en) | Video processing method and device, electronic equipment and readable storage medium | |
JP2015125543A (en) | Line-of-sight prediction system, line-of-sight prediction method, and line-of-sight prediction program |
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 |