Image processing method and device
By adjusting the color of the image template and performing background blur processing, the problem of unsatisfactory overlay effect of the image template in the prior art is solved, and the visual effect of the image and the publicity effect are enhanced.
Patent Information
- Application Number
- CN201911008138.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-10-22
AI Technical Summary
In the existing technology, the visual effect generated by superimposing the image template on the original image is not ideal, and it is difficult to effectively improve the publicity effect of the image.
By receiving the user's image processing request, the original image and the corresponding image template are obtained, and the image template is adjusted according to the background and main object color of the image, and color matching and blur processing are performed to synthesize the target image and improve the visual effect.
It improves the visual effect of the image, highlights the main object, enhances the publicity effect of the image, is suitable for advertising and promotion scenarios, and increases product sales.
Smart Images

Figure CN112700513B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer application technology, and in particular, to an image processing method and device. Background Art
[0002] Currently, images are often used for object promotion, and promotional images are usually obtained by processing the original images containing the object content, such as adding decorative elements such as text, etc. However, if the image processing is completely done by humans, it is time-consuming and costly.
[0003] In the prior art, an image template is also provided. The image template has a specific visual effect. By superimposing the image template on the original image, a specific visual effect can be formed, thereby increasing the publicity effect of the object.
[0004] However, the visual effect of the image synthesized by superimposing the image template on the original image is still not ideal. Therefore, how to improve the visual effect of the image becomes a technical problem that needs to be solved. Summary of the invention
[0005] The embodiments of the present application provide an image processing method and device for improving the visual effect of an image.
[0006] In a first aspect, an embodiment of the present application provides an image processing method, comprising:
[0007] Receive a user's image processing request;
[0008] Obtaining an original image and an image template corresponding to the original image;
[0009] adjusting the image template;
[0010] The adjusted image template and the original image are synthesized into a target image.
[0011] In a second aspect, an embodiment of the present application provides an image processing method, comprising:
[0012] Receiving an image processing request from a user; wherein the image processing request includes an adjustment instruction;
[0013] Obtaining an original image and an image template corresponding to the original image;
[0014] Adjusting the image template according to the adjustment instruction;
[0015] The adjusted image template and the original image are synthesized into a target image.
[0016] In a third aspect, an embodiment of the present application provides an image processing method, comprising:
[0017] Receive a user's image processing request;
[0018] Acquire an original image and an image template corresponding to the original image;
[0019] Performing blur processing on the background image area in the original image;
[0020] The original image after blurring is combined with the image template to form a target image.
[0021] In a fourth aspect, an embodiment of the present application provides an image processing method, comprising:
[0022] Receive a user's image processing request;
[0023] Obtain a product image and an image template corresponding to the product image;
[0024] adjusting the image template;
[0025] The adjusted image template and the product image are combined into a promotional image.
[0026] In a fifth aspect, an embodiment of the present application provides an image processing method, comprising:
[0027] Receiving an image processing request from a user; the image processing request includes an adjustment instruction;
[0028] Obtain a product image and an image template corresponding to the product image;
[0029] Adjusting the image template according to the adjustment instruction;
[0030] The adjusted image template and the product image are combined into a promotional image.
[0031] In a sixth aspect, an embodiment of the present application provides an image processing method, comprising:
[0032] Receive a user's image processing request;
[0033] Obtain a product image and an image template corresponding to the product image;
[0034] Blurring the background image area in the product image;
[0035] The blurred product image and the image template are combined into a promotional image.
[0036] In a seventh aspect, an embodiment of the present application provides an image processing device, including:
[0037] A first request receiving module, used for receiving an image processing request from a user;
[0038] A first acquisition module, used to acquire an original image and an image template corresponding to the original image;
[0039] A first adjustment module, used for adjusting the image template;
[0040] The first synthesis template is used to synthesize the adjusted image template and the original image into a target image.
[0041] In an eighth aspect, an embodiment of the present application provides an image processing device, including:
[0042] A second request receiving module, configured to receive an image processing request from a user; wherein the image processing request includes an adjustment instruction;
[0043] A second acquisition module, used to acquire an original image and an image template corresponding to the original image;
[0044] A second adjustment module, used for adjusting the image template according to the adjustment instruction;
[0045] The second synthesis template is used to synthesize the adjusted image template and the original image into a target image.
[0046] In a ninth aspect, an embodiment of the present application provides an image processing device, including:
[0047] A third request receiving module, used for receiving an image processing request from a user;
[0048] A third acquisition module, used to acquire an original image and an image template corresponding to the original image;
[0049] An image processing module, used for blurring the background image area in the original image;
[0050] The third synthesis module is used to synthesize the target image by combining the original image after blurring with the image template.
[0051] In a tenth aspect, an embodiment of the present application provides an application program, including:
[0052] An input interface, used to receive a user's image processing request;
[0053] A loading component is used to obtain an original image and an image template corresponding to the original image;
[0054] The processing engine is used to adjust the image template and synthesize the adjusted image template and the original image into a target image.
[0055] In an eleventh aspect, an embodiment of the present application provides an application program, including:
[0056] An input interface, used to receive a user's image processing request; the image processing request includes an adjustment instruction;
[0057] A loading component is used to obtain an original image and an image template corresponding to the original image;
[0058] The processing engine is used to adjust the image template according to the adjustment instruction, and synthesize the adjusted image template and the original image into a target image.
[0059] In a twelfth aspect, an application is provided in an embodiment of the present application, including:
[0060] An input interface, used to receive a user's image processing request;
[0061] A loading component is used to obtain an original image and an image template corresponding to the original image;
[0062] The processing engine is used to perform blur processing on the background image area in the original image, and to synthesize the target image by combining the original image after blur processing with the image template.
[0063] In a thirteenth aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;
[0064] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component;
[0065] The processing component is used to:
[0066] Receive a user's image processing request;
[0067] Obtaining an original image and an image template corresponding to the original image;
[0068] adjusting the image template;
[0069] The adjusted image template and the original image are synthesized into a target image.
[0070] In a fourteenth aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;
[0071] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component;
[0072] The processing component is used to:
[0073] Receiving an image processing request from a user; wherein the image processing request includes an adjustment instruction;
[0074] Obtaining an original image and an image template corresponding to the original image;
[0075] Adjusting the image template according to the adjustment instruction;
[0076] The adjusted image template and the original image are synthesized into a target image.
[0077] In a fifteenth aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;
[0078] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component;
[0079] The processing component is used to:
[0080] Receive a user's image processing request;
[0081] Acquire an original image and an image template corresponding to the original image;
[0082] Performing blur processing on the background image area in the original image;
[0083] The original image after blurring is combined with the image template to form a target image.
[0084] In an embodiment of the present application, a user's image processing request is received, an original image and an image template corresponding to the original image are obtained, and then the image template is adjusted, and the adjusted image template is combined with the original image to form a target image. The embodiment of the present application automatically adjusts the image template and then superimposes it with the original image, thereby adaptively changing the image template to improve the image visual effect of the synthesized target image.
[0085] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0087] Figure 1 A schematic diagram showing a flow chart of an embodiment of an image processing method provided by the present application;
[0088] Figure 2 A schematic diagram showing a flow chart of another embodiment of an image processing method provided by the present application;
[0089] Figure 3a A schematic diagram of image synthesis in a practical application of the present application is shown;
[0090] Figure 3b A schematic diagram of image blur in a practical application of the present application is shown;
[0091] Figure 3c A schematic diagram of a target image in a practical application of the present application is shown;
[0092] Figure 3d A schematic diagram of image separation in a practical application of the present application is shown;
[0093] Figure 3e A schematic diagram showing at least part of an image template in a practical application of the present application is shown;
[0094] Figure 3f A schematic diagram of a target image in a practical application of the present application is shown;
[0095] Figure 4 A schematic diagram showing a flow chart of another embodiment of an image processing method provided by the present application;
[0096] Figure 5 A schematic diagram showing a flow chart of another embodiment of an image processing method provided by the present application;
[0097] Figure 6 A schematic diagram showing a flow chart of another embodiment of an image processing method provided by the present application;
[0098] Figure 7 A schematic diagram of image processing in a practical application of an embodiment of the present application is shown;
[0099] Figure 8 A schematic diagram showing the structure of an embodiment of an image processing device provided by the present application is shown;
[0100] Fig. 9 A schematic diagram showing the structure of an embodiment of an application program provided by the present application is shown;
[0101] Fig.10 A schematic diagram showing the structure of an embodiment of a computing device provided by the present application is shown;
[0102] Fig.11 A schematic structural diagram of another embodiment of an image processing device provided by the present application is shown;
[0103] Fig.12 A structural schematic diagram of another embodiment of a computing device provided by the present application is shown. DETAILED DESCRIPTION
[0104] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0105] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0106] The technical solution of the embodiment of the present application can be applied to the scene of processing pictures uploaded by merchants, corporate users, individual users, or design solution providers, so as to achieve the purpose of promoting or beautifying the main object in the uploaded picture. For the convenience of distinction in description, the picture obtained by processing the original image is called the target image. In some scenarios, the target image obtained by processing can be published as an advertising picture, a poster picture, or a promotional picture, so as to achieve the purpose of effective promotion through enhanced visual effects. In the case of a commodity, it can further increase the sales volume of the commodity.
[0107] Although the original image can be artificially processed by PS (Adobe Photoshop, image processing software) technology to obtain the target image to increase the promotion effect of the target image, it is time-consuming and labor-intensive to perform image processing artificially, especially in batch processing scenarios, which requires high technical skills of the processing personnel. Therefore, in the prior art, image templates are usually used to implement image processing. At least one template layer is usually defined in the image template. Each template layer can achieve different visual effects. The target image can be synthesized by superimposing the image template on the original image, so that the target image has the visual effect of the image template. Then, the image template is pre-configured and directly superimposed on the original image. The visual effect of the generated target image is not ideal. The inventor found in the study that the image template is composed of at least one template layer, which usually mainly includes a template background layer and a modification element layer. The colors of each layer of the image template are pre-defined. Each layer is superimposed on the original image in turn. In the target image that may be formed, the background image color and the modification element color are not coordinated with the main object color, resulting in a more abrupt visual effect. In addition, if the modification element is defined in the image template, in order to highlight the modification element, the bottom of the modification element will have a color block, which will also affect the overall visual effect. In addition, image templates are usually superimposed on original images, and only content with specific visual effects can be superimposed on the original images, and the visual effects are also relatively simple.
[0108] In order to enhance the visual effect of images, the inventor has proposed the technical solution of the present application after a series of studies. For the convenience of understanding, the following first explains the technical terms that may appear in this article:
[0109] Layer: A layer is like a film containing elements such as text or graphics, which are stacked together in sequence and combined to form the final image effect.
[0110] Image template: used to synthesize with the original image to modify the background image of the original image and / or add modifying elements to the original image. Usually, an image template includes at least one template layer and defines the merging order of at least one template layer and the color scheme of each template layer.
[0111] Original image: an image obtained by photographing and collecting a specific object, or an image obtained after corresponding processing of an image obtained by photographing and collecting a specific object. The specific object forms the main object in the original image.
[0112] Main object: The subject of the image is the main content of the image and can also be considered as the foreground image in the image.
[0113] Background image: other image areas in the image that are not the main object area.
[0114] Decorative elements: including text, controls, borders, patches, patterns and / or other graphics with specific shapes.
[0115] HSV: Hue (Hue-Saturation-Value), a color model, in which hue refers to the appearance of various colors, used to distinguish different colors, such as red, yellow, green, blue, etc.; saturation refers to the degree to which the color is close to the spectrum color. The higher the saturation, the deeper and brighter the color; brightness refers to the brightness of the color.
[0116] RGB: red - green - blue, refers to the color standard. A variety of colors can be obtained by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other.
[0117] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0118] Figure 1 A flowchart of an embodiment of an image processing method provided in an embodiment of the present application, the method may include the following steps:
[0119] 101: Receive an image processing request from a user.
[0120] In a possible implementation, the technical solution of this embodiment may be executed by the server, and the user may send the image processing request through the client;
[0121] In another possible implementation, in the scenario of personal user image processing, the technical solution of this embodiment can also be executed by an application, and the application can directly receive the user's image processing request. The application can, for example, refer to some current image processing applications.
[0122] 102: Acquire an original image and an image template corresponding to the original image.
[0123] The image template is pre-configured and may include at least one template layer.
[0124] When multiple image templates are provided, an image template matching the original image may be obtained.
[0125] Optionally, based on the position of the main object in the original image, an image template that does not block the main object can be selected as the image template that matches the original image. That is, after the original image and the image template are combined, it is ensured that the main object in the original image is not blocked.
[0126] In addition, in practical applications, image templates can be pre-configured according to object categories. Therefore, based on the object category of the main object in the original image, at least one corresponding image template can be determined, and then an image template that does not block the main object can be selected from the at least one image template. For example, in a product poster promotion scene, when the main object in the original image is a product, different image templates can be pre-configured according to the product category. The product category can refer to clothing, department stores, food, home appliances, etc., so that based on the product category of the product in the original image, an image template matching the product category can be determined, and then an image template that does not block the product can be selected from it.
[0127] In addition, in the scenario of personal user image processing, when the technical solution of this embodiment is executed by an application, the original image can be provided by the user, and the image template can be obtained by user selection, so the image processing request can include the original image and the image template.
[0128] 103: Adjust the image template.
[0129] The image template may be adjusted according to the standard of highlighting the main object in the original image. There are many possible implementations of adjusting the image template, which will be described in detail in the following embodiments.
[0130] In the scenario of personal user image processing, when the technical solution of this embodiment is executed by an application, the application can adjust the image template through the server. Of course, the adjustment operation can also be performed by the application.
[0131] 104: Synthesize the adjusted image template and the original image into a target image.
[0132] Those skilled in the art will appreciate that the original image may first be subjected to necessary processing operations such as corresponding cropping or scaling according to the display requirements of the image template for size, etc., and this application does not make any specific limitation on this.
[0133] In this embodiment, the image template is adjusted instead of being directly superimposed with the original image, so that the image template can be adaptively changed, thereby improving the image visual effect of the synthesized target image.
[0134] The image template can be adjusted based on the main object color or background image color in the original image, such as Figure 2 As shown in Figure 2 A flowchart of an embodiment of an image processing method provided in an embodiment of the present application, the method may include the following steps:
[0135] 201: receiving a user's image processing request.
[0136] 202: Acquire an original image and an image template corresponding to the original image.
[0137] 203: Extract at least one of a background image color and a main object color from the original image.
[0138] Among them, the background image color may refer to the main color of the background image; the main object color may refer to the main color of the main object. The main color extraction is the same as the prior art and will not be repeated here.
[0139] 204: Adjust the color of the image template according to at least one of the background image color and the main object color.
[0140] The color adjustment standard may be to ensure accurate and vivid representation of the subject object. 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 contrasting color of the subject object color.
[0141] In addition, the image template is mainly used to modify the background image of the original image and / or add a modification element to the original image. Therefore, the image template usually defines a template background and a modification element, as well as a template background color and a modification element color. Therefore, optionally, adjusting the color of the image template according to at least one of the background image color and the main object color may refer to:
[0142] According to at least one of the background image color and the main object color, the template background color and the modification element color of the image template are adjusted.
[0143] The template background is used to cover the background image of the original image so as to highlight the main object in the original image. The template background can be composed of a single color.
[0144] Modifying elements are used to enhance the image publicity effect. Modifying elements are used to display in the background image area and cover the template background. Therefore, the color of the modifying elements can be adjusted at the same time to ensure that the modifying elements can be highlighted and viewed, and enhance their visibility, especially when the modifying elements are text information about the main object, to ensure the readability of the text information. And by adjusting the color of the modifying elements, the visual effect of the modifying elements can be guaranteed, without the need for color blocks as a foil, and the overall coordination of the image can also be guaranteed.
[0145] In order to improve the visual effect of the image, in this embodiment, the color of the image template may be adjusted according to at least one of the background image color and the main object color, in accordance with a rule for displaying in contrast with the main object.
[0146] 205: Synthesize a target image by combining the adjusted image template and the original image.
[0147] The image template after color adjustment and the original image can be combined into a target image. The target image can be used as an image required by the business for corresponding applications, such as being published as an advertisement image in a page advertisement position, or being published in a specific position in a specific page, or being downloaded by users.
[0148] Those skilled in the art will appreciate that the original image may first be subjected to some necessary processing operations such as corresponding cropping or scaling according to the display requirements of the image template for size, etc., and this application does not make any specific limitation on this.
[0149] In this embodiment, the color of the image template is adjusted according to the background image color in the original image and at least one of the main object colors, and then merged with the original image, so that the color of the image template can be adaptively adjusted according to different original images to achieve personalized settings. The template color is adjusted in combination with the background image color in the original image and at least one of the main object colors, which can ensure the coordination of the color of the image template after adjustment with the original image, so that the main object can be expressed more accurately, clearly and vividly, thereby improving the image visual effect of the target image.
[0150] In an optional implementation, the template background color and the color of the modifying elements in the image template may be adjusted according to the background image color.
[0151] Therefore, in some embodiments, adjusting the template background color and the color of the modifying element in the image template according to at least one of the background image color and the main object color may include:
[0152] Adjusting the saturation and / or brightness of the background image color to obtain a first color;
[0153] Adjust the template background color to the first color;
[0154] According to the background image color, obtaining a second color that is displayed in contrast with the background image color;
[0155] Adjust the color of the modifier element to the second color.
[0156] That is, under the condition that the color of the background image remains unchanged, the first color is obtained by adjusting the saturation and / or brightness to enhance the visual effect, and the first color is the same as the background image color and will not affect the overall visual effect of the original image.
[0157] The template background in the image template usually has a certain degree of transparency, for example, it is semi-transparent or the transparency gradually increases in order of distance from the main object area to form a gradual transparency effect.
[0158] Therefore, if the transparency of the template background is zero, in order to further improve the visual effect, in addition to adjusting the template background color to the first color, the transparency of the template background color can also be increased. For example, the transparency of the template background can be adjusted to a semi-transparent or gradient transparent effect.
[0159] Optionally, adjusting the saturation and / or brightness of the background image color to obtain the first color may be:
[0160] The saturation of the background image color is increased to obtain a first color.
[0161] Increasing the saturation of the background image color to obtain the first color may be multiplying the saturation of the background image color by a saturation coefficient to obtain the first color.
[0162] The value range of the saturation coefficient may be, for example, 1.5 to 2.5. In a practical application, the saturation coefficient may be selected to be 1.9.
[0163] The template background is used to cover the background image, and the modification element is covered on the template background. Therefore, a second color that contrasts with the background image color can be selected as the modification element color, so that the modification element can be highlighted after being covered on the template background.
[0164] Colors with contrasting display effects may refer to, for example, contrasting colors of the background image color or adjacent colors of the contrasting colors, wherein the colors opposite to each color in the color wheel are contrasting colors, and the colors adjacent to each other on the color band are adjacent colors.
[0165] In addition, in order to further improve the visual effect of the image and avoid the appearance of too many colors in the image to affect the visual experience, in some embodiments, obtaining a second color displayed in contrast with the background image color according to the background image color may include:
[0166] If the brightness of the background image color is less than the first brightness value, determining that the second color is white;
[0167] If the color brightness of the background image is greater than the first brightness value, the saturation and / or brightness of the main object color is adjusted to obtain a second color.
[0168] That is, the second color can be determined according to the brightness of the background image color. If the background image color is dark, a light color can be selected as the second color, such as white. If the background image color is light, a dark color can be selected as the second color.
[0169] In order to ensure the overall visual effect of the image, when the background image color is brighter, the second color can be obtained by adjusting the saturation and / or brightness of the main object color. The second color has the same hue as the main object color, that is, it is a similar color, but with different saturation or brightness, so that there will not be too many colors in the synthesized target image, which will affect the highlighting of the main object.
[0170] Optionally, adjusting the saturation and / or brightness of the main object color may be adjusting the saturation of the main object color to a target saturation and adjusting the brightness of the main object color to a target brightness.
[0171] In an actual application, the target saturation may be set to 100, and the target brightness may be set to 30, for example.
[0172] The first brightness value may be set based on empirical values, for example, may be set to 80.
[0173] Among them, the HSV value of the background image color can be obtained by converting the RGB value of the background image color, and the HSV value of the main object color can be obtained by converting the RGB value of the main object color. The specific conversion method is the same as the prior art and will not be repeated here.
[0174] As another optional method, the template background color and the color of the modifying elements may be adjusted according to the main object color and the background image color.
[0175] Therefore, in some embodiments, adjusting the template background color and the color of the modifying element of the image template according to at least one of the background image color and the main object color may include:
[0176] Determine whether the background image color and the main object color meet the color matching rules;
[0177] If so, adjusting the template background color and the color of the modified elements of the image template according to the background image color;
[0178] If not, the template background color and the color of the modified element of the image template are adjusted according to a third color that satisfies the color matching rule with the main object color.
[0179] The color matching rule may refer to, for example, a contrast display of the background image color and the main object color, such as contrasting colors.
[0180] Since the original image may be taken by a non-professional user, the main object in the original image may be overshadowed by the background image, which affects the highlighting of the main object. Therefore, it is first determined whether the background image color and the main object color meet the color matching rules. If they do, in order to ensure the overall visual effect of the image and not destroy the original visual atmosphere, the template background color and the color of the modified elements of the image template can be directly adjusted based on the background image color. Otherwise, the template background color and the color of the modified elements of the image template can be adjusted according to a third color that meets the color matching rules with the main object color. The third color can be, for example, a contrasting color of the main object color, or an adjacent color of the contrasting color of the main object color.
[0181] Wherein, adjusting the template background color and the color of the modification elements of the image template based on the background image color can refer to the description in the above embodiment.
[0182] Adjusting the template background color and the color of the modification element of the image template based on the third color may include:
[0183] adjusting the saturation and / or brightness of the third color to obtain a first sub-color;
[0184] Adjust the template background color to the first sub-color;
[0185] According to the third color, a second sub-color is obtained to be displayed in contrast with the third color;
[0186] Adjust the color of the modifier element to the second sub-color.
[0187] Wherein, according to the third color, obtaining a second sub-color displayed in contrast with the third color may include:
[0188] If the brightness of the third color is less than the first brightness value, determining that the second sub-color is white;
[0189] If the third color brightness is greater than the first brightness value, the saturation and / or brightness of the main object color is adjusted to obtain a second sub-color.
[0190] The saturation of the main object color may be adjusted to a target saturation and the brightness to a target brightness.
[0191] In yet another optional implementation, the template background color and the color of the modifying elements of the image template may be adjusted according to the color of the main object.
[0192] Therefore, in some embodiments, adjusting the template background color and the color of the modifying element of the image template according to at least one of the background image color and the main object color includes:
[0193] According to a fourth color that satisfies the color matching rule with the main object color, the template background color and the modification element color of the image template are adjusted.
[0194] The color matching rule may be to form a contrast effect with the main object color. For example, the fourth color may be a contrasting color of the main object color, or an adjacent color of the contrasting color of the main object color.
[0195] Wherein, adjusting the template background color and the color of the modified element of the image template according to the fourth color that satisfies the color matching rule with the main object color may include:
[0196] adjusting the saturation and / or brightness of the fourth color to obtain a fifth color;
[0197] Adjust the template background color to the fifth color;
[0198] According to the fourth color, a sixth color is obtained to be displayed in contrast with the fourth color;
[0199] The color of the modification element is adjusted to the sixth color.
[0200] Wherein, according to the fourth color, obtaining a sixth color displayed in contrast with the four colors may include:
[0201] If the brightness of the fourth color is less than the first brightness value, determining that the sixth color is white;
[0202] If the brightness of the fourth color is greater than the first brightness value, the saturation and / or brightness of the main object color is adjusted to obtain a sixth color.
[0203] The saturation of the main object color may be adjusted to a target saturation and the brightness to a target brightness.
[0204] Wherein, in a practical application, the image template may include multiple template layers;
[0205] The multiple template layers may include at least a template background layer and a modification element layer; the template background layer is the template background color, and the modification element layer is used to present modification elements, etc.
[0206] For ease of understanding, Figure 3aAs shown in , it shows a display effect diagram of a target image 303 synthesized from an original image 301 and an image template 302 after color adjustment. The image template includes two template layers, a template background layer and a modification element layer. It should be noted that in actual applications, image templates are usually stored in the form of files. The figure is represented in a graphical form for ease of understanding. Among them, the modification element 304 is specifically a copy. When the color brightness of the background image is less than a first brightness value, the modification element can be directly adjusted to white. When the brightness is less than the first brightness value, the modification element 304 keeps the same hue as the main object 305, and the saturation and / or brightness change. The template background layer can form a shielding effect on the background image area so that the main object 305 can be highlighted.
[0207] In some embodiments, the method may further include:
[0208] Performing blur processing on the background image area in the original image;
[0209] The synthesizing the target image from the original image and the adjusted image template comprises:
[0210] The original image after blurring is combined with the adjusted image template to form a target image.
[0211] By blurring the background image area, the background image in the original image can be blurred, making the main object in the original image more prominent, thereby ensuring that the visual appeal of the main object in the synthesized target image can be enhanced, and the decorative elements superimposed on the background image area can also be highlighted, and there is no need to add color blocks at the bottom of the decorative elements, making the visual effect more harmonious, especially when the decorative elements are text information such as copywriting, the readability of the decorative elements can be improved.
[0212] Among them, at least one of the background image color and the main object color can also be extracted from the original image after blurring; whether the background image of the original image is blurred does not affect its main color, so the extracted background image color is the same.
[0213] In order to further improve the visual effect, the blurring of the background image area in the original image may include:
[0214] Detecting a background image area and a main object area in the original image;
[0215] The background image area of the original image is blurred according to the rule that the farther away from the main object area, the greater the blurring degree.
[0216] Among them, Gaussian blur technology can be used to blur the background image area. Of course, other blur technologies can also be used, such as mean filtering, median filtering, vector filtering and other filtering denoising methods, or image sharpening methods, changing image signal-to-noise ratio methods, etc. This application does not make specific limitations on this.
[0217] When blurring the original image, the template background layer in the image template can be blank, and the visual effect of the modified elements will not be affected.
[0218] For ease of understanding, Figure 3b As shown in FIG. 3 , a blurred image 312 is obtained after blurring the original image 311. Figure 3c As shown in , an image template is superimposed on the image 312, that is, a synthetic target image 313. The image template may include only a modification element layer. In the target image 313, the modification element 314 can be clearly displayed without the need for color blocks as a background, thereby improving the readability of the modification element 314.
[0219] As can be seen from the foregoing description, the image template may include multiple template layers; wherein, the multiple template layers may include at least a template background layer and a modification element layer; the template background layer is the template background color, and the modification element layer is used to present at least one modification element; wherein, the modification element layer may include multiple.
[0220] Therefore, adjusting the template background color and the color of the modifying element of the image template according to at least one of the background image color and the main object color may specifically refer to:
[0221] According to at least one of the background image color and the main object color, the template background color of the template background layer in the image template and the color of the modification element in the modification element layer are adjusted.
[0222] In addition, you can also adjust the transparency of the template background layer, etc.
[0223] The synthesizing the target image by combining the adjusted image template with the original image may include:
[0224] The template background layer and the modification element layer in the adjusted image template are sequentially superimposed on the original image to obtain a target image.
[0225] The image template may also include other template layers, and the remaining template layers may be sequentially superimposed on the modification element layers, or sequentially superimposed according to the merging order defined in the image template. For example, in the scene of generating advertising images or poster images, there is often a promotional theme, or when the main object is a commodity, there will be a corresponding merchant, etc., so a logo will be added to the target image, and the logo will often be highlighted, and its display color is often required not to be changed, so the remaining template layers of the image template may include a logo layer, and the logo layer is superimposed on the modification element layer.
[0226] In addition, for further visual effect, in some embodiments, the method may further include:
[0227] Separating the original image to obtain a background image layer and a main object layer;
[0228] The synthesizing the target image by combining the adjusted image template with the original image comprises:
[0229] Overlaying the template background layer on the background image layer;
[0230] Inserting at least one template layer between the template background layer and the main object layer;
[0231] The remaining template layers are superimposed on the main object layer to obtain a target image.
[0232] Among them, the at least one template layer can be a pre-configured target template layer with target content, and the target template layer is located below the main object layer. For example, it can form a visual effect that the main object partially blocks the target content, so as to enrich the image visual effect.
[0233] Afterwards, if there are any remaining template layers, they are superimposed on the main object layer to obtain the target image.
[0234] In an optional manner, the image template includes a target modifying element layer presenting a target modifying element; the target modifying element layer includes a first modifying layer and a second modifying layer; the first modifying layer and the second modifying layer are superimposed to form the target modifying element, and the first modifying layer and the second modifying layer respectively include partial contents of the target modifying element;
[0235] The inserting at least one template layer between the template background layer and the main object layer comprises:
[0236] Inserting a first modification layer between the template background layer and the main object layer;
[0237] The remaining template layers are superimposed on the main object layer to obtain the target image, including:
[0238] The second modification layer and the remaining template layers are sequentially superimposed on the main object layer to obtain a target image.
[0239] By placing the first modification layer below the main object layer and the second modification layer above the main object layer, it can be presented that at least part of the content in the first modification layer is obscured by the main object, while at least part of the content in the second modification layer obscures the main object, ultimately forming an interlaced effect in which the target modification element is partially obscured by the main object and partially obscures the main object, forming a feeling of interlaced layers, thereby enriching the visual effect of the image.
[0240] For ease of understanding, Figure 3d As shown in , the original image 321 includes a main object and a background image. By processing the original image 321, a main object layer 322 and a background image layer 323 can be separated.
[0241] like Figure 3e As shown in , the image template may include at least a target modification element layer, which is used to image the target modification element. Assuming that the target modification element is a rectangular frame, the target modification element layer may include a first modification layer 324 and a second modification layer 325. The first modification layer 324 and the second modification layer 325 may respectively display at least part of the content in the target modification element, such as Figure 3e In the figure, the first modification layer presents content 31 and the second modification layer presents content 32.
[0242] When performing image synthesis, Figure 3f As shown in , the background image layer 323 is located at the bottom. The template background layer in the image template can be superimposed on the background image layer 323. The template background layer is blank in the main object area, and does not block the main object area after superimposition. A first modification layer 324 is superimposed on the template background layer, a main object layer 322 is superimposed on the first modification layer 324, and a second modification layer 325 is superimposed on the main object layer 322. If there are any remaining template layers, such as other modification element layers, they are superimposed on the second modification layer 325, and finally a target image 326 is synthesized. The target image 326 presents an interlaced effect in which part of the content of the rectangular frame blocks the main object 33 and part of the content is blocked by the main object 33, enriching the visual display effect of the image.
[0243] The image template may be composed of at least one template layer, and the at least one template layer has a stacking order, that is, a stacking position relationship. Therefore, in some embodiments, the image template includes at least one template layer;
[0244] The adjusting the image template includes: adjusting the superimposed position relationship of the at least one template image according to the original image.
[0245] The overlay position relationship may include the overlay position relationship of each template layer, etc., to determine the overlay order between the template layers.
[0246] Specifically, Figure 4 As shown in Figure 4 A flowchart of another embodiment of an image processing method provided in an embodiment of the present application, the method may include the following steps:
[0247] 401: Receive the user's image processing request.
[0248] 402: Obtain an original image and an image template corresponding to the original image.
[0249] Wherein, the image template includes at least one template layer.
[0250] 403: Separate the background image layer and the main object layer from the original image.
[0251] 404: Adjusting the superimposed position relationship of the at least one template image according to the original image.
[0252] That is, the overlay position relationship of the at least one template layer can be adjusted in combination with the background image layer and the main object layer to obtain the overlay sequence between the background image layer, the main object layer, and the at least one template layer.
[0253] 405: inserting one or more template layers between the background image layer and the main object layer according to the adjusted superimposed position relationship, and superimposing the remaining template layers on the main object layer to obtain a target image.
[0254] Specifically, one or more template layers are inserted between the background image layer and the main object layer according to the stacking order of each layer determined by the adjusted stacking position relationship, and the remaining template layers are stacked on the main object layer to obtain the target image.
[0255] In this embodiment, the original image is separated to obtain a background image layer and a main object layer, so that one or more template layers can be inserted between the background image layer and the main object layer. The content of the one or more template layer programs is located below the main object layer, and can form a visual effect of interlaced display of layers with the main object, thereby enriching the visual effect of the image.
[0256] In some embodiments, inserting one or more template layers between the background image layer and the subject object layer according to the adjusted superimposed position relationship, and superimposing the remaining template layers on the subject object layer, to obtain the target image may include:
[0257] According to the adjusted superimposed position relationship, a target template layer is inserted between the background image layer and the main object layer, and remaining template layers are superimposed on the main object layer to obtain a target image.
[0258] That is, only one pre-configured target template layer can be inserted between the background image layer and the main object layer, and the target template layer includes target content, which can be a decorative element or other content, etc. The at least one template layer can 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 of partially blocking the target content by the main object can be formed to enrich the image visual effect. Afterwards, if there are still remaining template layers, the remaining template layers are superimposed on the main object layer to obtain the target image.
[0259] In some embodiments, the image template includes a target modification element layer; the target modification element layer is used to present the target modification element; the target modification element layer includes a first modification layer and a second modification layer;
[0260] The inserting one or more template layers between the background image layer and the main object layer according to the adjusted superimposed position relationship, and superimposing the remaining template layers on the main object layer comprises:
[0261] According to the adjusted superimposed position relationship, the first modification layer is inserted between the background image layer and the main object layer, and the second modification layer is superimposed on the main object layer.
[0262] The image template may include at least one modification element layer, and the first modification layer and the second modification layer included in the target modification element layer may be pre-configured template layers used to form an interlaced effect with the main object.
[0263] In some embodiments, the image template includes a template background layer;
[0264] The method of inserting the first modification layer between the background image layer and the main object layer according to the adjusted superimposed position relationship, and superimposing the second modification image and the remaining template layers on the main object layer comprises:
[0265] According to the adjusted superimposed position relationship, superimposing the template background layer on the background image layer;
[0266] The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0267] Among them, the remaining template layers can be zero.
[0268] In some embodiments, the method may further include:
[0269] Extracting at least one of a background image color and a main object color from the original image;
[0270] According to at least one of the background image color and the main object color, the template background color of the template background layer and the modification element color in the modification element layer are adjusted.
[0271] In an actual application, the image processing request may include the original image, that is, the original image is uploaded by the user.
[0272] In an optional manner, the decorative element in the image template is a text element, and the specific text content can also be provided by the user for the main object, so that a target image with added text content that meets the user's needs can be generated. Therefore, in some embodiments, the target image can also be sent to the user terminal, so that the user can view and download it for use.
[0273] In addition, in some scenarios, such as e-commerce scenarios, many promotional activities are usually launched to attract users. Users can participate in promotional activities and upload product pictures. The system can automatically generate a target image and publish the target image.
[0274] Therefore, in some embodiments, before receiving the original image uploaded by the user, the method may further include:
[0275] Send promotion activity participation reminder information to the user end;
[0276] After synthesizing the target image with the adjusted image template and the original image, the method may further include:
[0277] The target image is published on a corresponding page corresponding to the promotion activity.
[0278] As another optional manner, the image processing request includes an adjustment instruction;
[0279] The adjusting the image template comprises:
[0280] The image template is adjusted according to the adjustment instruction.
[0281] In some embodiments, the adjustment instruction may include a target color;
[0282] The adjusting the image template according to the adjustment instruction comprises:
[0283] According to the target color, the color of the image template is adjusted.
[0284] Optionally, adjusting the color of the image template according to the target color may be:
[0285] Adjust the template background color to the target color;
[0286] According to the target color, a color that is displayed in contrast with the target color is obtained;
[0287] Adjust the color of the modifier element to the second color.
[0288] or;
[0289] Adjusting the color of the modified element to the target color;
[0290] According to the target color, a color that is displayed in contrast with the target color is obtained;
[0291] Adjust the template background color to the second color.
[0292] By having the user provide the target color, the user's personalized needs can be met. The user only needs to provide the target color to adjust the template color, which is convenient and quick.
[0293] In some embodiments, the adjustment instruction may also include target overlay position relationships of different template layers;
[0294] The adjusting the image template according to the adjustment instruction may include:
[0295] The target overlay position relationship may also include an overlay position relationship between a main object layer and a background layer in the original image.
[0296] For example, a possible target overlay position relationship may include: inserting one or more template layers between the background image layer and the main object layer, and overlaying the remaining template layers on the main object layer.
[0297] Therefore, adjusting each template layer in the image template to the target overlay position relationship may include:
[0298] According to the target overlay position relationship, one or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are overlaid on the main object layer to obtain the target image.
[0299] Optionally, the image template includes a target modification element layer; the target modification element layer is used to present the target modification element; the target modification element layer includes a first modification layer and a second modification layer;
[0300] The target overlay position relationship may include an overlay position relationship of a first modified image and a second modified image. Therefore, inserting one or more template layers between the background image layer and the main object layer, and overlaying the remaining template layers on the main object layer may include:
[0301] According to the adjusted superimposed position relationship, the first modification layer is inserted between the background image layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0302] Optionally, inserting the first modification layer between the background image layer and the main object layer, and superimposing the second modification layer and the remaining template layers on the main object layer may include:
[0303] Overlaying the template background layer on the background image layer;
[0304] The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0305] In some embodiments, the adjustment instruction may include an image processing instruction and a template adjustment instruction;
[0306] The adjusting the image template comprises:
[0307] Adjusting the original image according to the image processing instruction;
[0308] Adjusting the image template according to the template adjustment instruction;
[0309] The step of synthesizing the target image with the adjusted image template and the original image comprises:
[0310] The adjusted image template and the adjusted original image are synthesized into a target image.
[0311] The template adjustment instruction may include, for example, a target color and / or a target overlay position relationship, and the specific adjustment method in combination with the target color or the target overlay position relationship may refer to the above description.
[0312] The image processing instruction may include a blur processing instruction, for example; therefore, adjusting the original image according to the image processing instruction may include:
[0313] Performing blur processing on the background image area in the original image;
[0314] The specific implementation of the fuzzy processing can be found in the above description and will not be repeated here.
[0315] As described above, the original image may be adjusted in combination with an adjustment instruction or a pre-configured adjustment method. In addition, as another optional implementation, the adjusting the image template includes:
[0316] determining user characteristics of the user;
[0317] The image template is adjusted in an adjustment manner that matches the user feature.
[0318] That is, the user's preferred adjustment method can be determined in combination with the user's characteristics, so that the image template can be adjusted according to the adjustment method.
[0319] The adjustment method may include, for example, Figure 2 or Figure 4 The adjustment method in the illustrated embodiment is used to adjust the color of the image template or the superimposed position relationship of the template layers in the image template.
[0320] Of course, the adjustment method may also include other implementation forms, for example, the adjustment method may include a target color that matches the user's features, or a target superimposed position relationship, etc.
[0321] Figure 5 A flowchart of another embodiment of an image processing method provided in an embodiment of the present application, the method may include:
[0322] 501: Receive an image processing request from a user; wherein the image processing request includes an adjustment instruction.
[0323] 502: Acquire an original image and an image template corresponding to the original image.
[0324] 503: Adjust the image template according to the adjustment instruction.
[0325] 504: Synthesize the adjusted image template and the original image into a target image.
[0326] That is, the user can provide adjustment instructions according to his own needs to realize automatic adjustment of the image template. In the individual user image processing scenario, the personalized requirements of the individual user for image processing can be met.
[0327] The specific implementation method of adjusting the image template according to the adjustment instruction has been described in detail above and will not be repeated here.
[0328] Figure 6 A flowchart of another embodiment of an image processing method provided in an embodiment of the present application, the method may include:
[0329] 601: Receive a user's image processing request.
[0330] 602: Acquire an original image and an image template corresponding to the original image.
[0331] The image template may include at least a modification element layer for presenting the modification elements.
[0332] 603: Perform blur processing on the background image area in the original image.
[0333] 604: Synthesize a target image by combining the original image after blurring with the image template.
[0334] In this embodiment, by blurring the background image area of the original image, the background image in the original image can be blurred, so that the main object in the original image is more prominently displayed, thereby ensuring that the visual appeal of the main object in the synthesized target image can be enhanced and the visual effect can be improved. The modified elements superimposed on the background image area can be highlighted, without the need for color blocks, and can also be clearly displayed, thereby improving the readability of the modified elements.
[0335] In order to further improve the visual effect, in some embodiments, blurring the background image area in the original image may include:
[0336] Detecting a background image area and a main object area in the original image;
[0337] The background image area of the original image is blurred according to the rule that the farther away from the main object area, the greater the blurring degree.
[0338] The fuzzy processing method can be found in the above description and will not be described in detail here.
[0339] In some embodiments, the method may further include:
[0340] Extracting at least one of a background image color and a main object color from the original image;
[0341] adjusting the color of the image template according to at least one of the background image color and the main object color;
[0342] The synthesizing a target image by combining the original image after blurring with the image template comprises:
[0343] The original image after blurring and the image template after adjustment are synthesized into a target image.
[0344] Optionally, since image templates are usually used to modify the background image of the original image or add modifying elements to the original image, the color of the image template mainly refers to the template background color and the modifying element color. Therefore, the template background color and the modifying element color of the image template can be adjusted according to at least one of the background image color and the main object color.
[0345] Among them, the specific implementation method of adjusting the template background color and the color of the modification element of the image template according to at least one of the background image color and the main object color can be described in the above embodiment and will not be repeated here.
[0346] In some embodiments, the image template includes at least one template layer;
[0347] The synthesizing a target image by combining the original image after blurring with the image template comprises:
[0348] Separating and obtaining a background image layer and a main object layer from the original image after blurring;
[0349] One or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are superimposed on the main object layer to obtain a target image.
[0350] By inserting one or more template layers between the background image layer and the main object layer, a layer interlacing feeling can be formed to enrich the visual effect of the image.
[0351] Optionally, a template layer may be inserted between the background image layer and the main object layer. The template layer may be a preconfigured target template layer. The target template layer may include target content. The target template layer is located below the main object layer. For example, a visual effect of partially obscuring the target content by the main object may be formed, so as to enrich the visual effect of the image.
[0352] In some embodiments, the image template includes a target modification element layer; the target modification element layer includes a first modification layer and a second modification layer;
[0353] The inserting one or more template layers between the background image layer and the main object layer, and superimposing the remaining template layers on the main object layer comprises:
[0354] The first modification layer is inserted between the background image layer and the main object layer, and the second modification layer and the remaining template layers are sequentially superimposed on the main object layer.
[0355] Among them, the remaining template layers can be zero.
[0356] The first modification layer and the second modification layer may be template layers pre-configured to achieve an interlaced effect between the target modification element and the main object.
[0357] In some embodiments, the image template includes a template background layer, and inserting a first modification layer between the background image layer and the subject object layer, and superimposing the second modification layer on the subject object layer may include:
[0358] Overlaying the template background layer on the background image layer;
[0359] The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0360] Specifically, the template background color of the template background layer and the modification element color of the modification element layer may be adjusted according to at least one of the background image color and the main object color.
[0361] In a practical application, the technical solution of the embodiment of the present application can be applied in an e-commerce scenario to generate promotional pictures corresponding to the products based on the product pictures.
[0362] like Figure 7 In the interactive diagram shown, merchants can submit product images through the merchant end 701, and the server end 702 searches for image templates based on the product images. According to the technical solution of the embodiment of the present application, promotional images with high-quality visual effects can be synthesized.
[0363] In an optional implementation, the promotional image can be returned to the merchant side for viewing or downloading by the merchant.
[0364] In addition, the product image submitted by the merchant may be submitted for a certain promotional activity and used to participate in the promotional activity. In this case, the promotional image may be directly published, for example, the promotional image may be displayed at a specific location in a specific page of the user terminal 703. The specific page may refer to the homepage of the user terminal 703 or the activity page of the promotional activity, so that the user can view the promotional image. In addition, the link address of the promotional image may be set so that clicking on the promotional image may index to the description page of the product, etc. By adopting the technical solution of the embodiment of the present application, since the promotional image has a better visual effect and is more conducive to attracting users, the click-through rate of the promotional image may be increased, thereby increasing the sales volume of the product, etc.
[0365] Wherein, when the original image is a product picture, the main object of the original image refers to the product in the product picture. As another embodiment, the embodiment of the present application further provides an image processing method, which may include:
[0366] Receive a user's image processing request;
[0367] Obtain a product image and an image template corresponding to the product image;
[0368] adjusting the image template;
[0369] The adjusted image template and the product image are combined into a promotional image.
[0370] As another embodiment, the present application also provides an image processing method, which may include:
[0371] Receiving an image processing request from a user; the image processing request includes an adjustment instruction;
[0372] Obtain a product image and an image template corresponding to the product image;
[0373] Adjusting the image template according to the adjustment instruction;
[0374] The adjusted image template and the product image are combined into a promotional image.
[0375] As another embodiment, the present application also provides an image processing method, which may include:
[0376] Receive a user's image processing request;
[0377] Obtain a product image and an image template corresponding to the product image;
[0378] Blurring the background image area in the product image;
[0379] The blurred product image and the image template are combined into a promotional image.
[0380] In some embodiments, obtaining a product image and an image template corresponding to the product image may include:
[0381] Obtaining the product image in the image processing request;
[0382] Find image templates that match the product image in question.
[0383] In some embodiments, before receiving the image processing request, the method may further include:
[0384] Send promotion activity participation reminder information to merchants;
[0385] After synthesizing the target image, the method may further include:
[0386] The promotional image is published on a corresponding page corresponding to the promotional activity.
[0387] Among them, publishing the promotional picture on the page may refer to displaying the promotional picture on the page to achieve the purpose of product promotion.
[0388] Optionally, the promotional image may be linked to a description page of the product. Based on a user's triggering operation on the promotional image, the description page of the product may be output accordingly.
[0389] In another practical application, the technical solution of the embodiment of the present application can be applied to the scene of personal user image processing. With the upgrade of camera hardware such as mobile devices, users can take pictures anytime and anywhere. In order to improve the visual effect of the picture, the picture can also be processed through an image processing application, such as superimposing an image template with a specific visual effect to enhance the visual effect of the picture. The user can submit the original image in the application and can select an image template. According to the technical solution of the embodiment of the present application, the image template can also be adjusted. For example, the main object in the original image is a human body, and the main color of the human body is usually the color of clothes. Therefore, the template background color of the image template can be automatically adjusted in combination with the color of clothes, so that the visual effect of the synthesized target image is better; for example, the image template can include decorative elements such as text. By separating the layers of the original image and re-adjusting the superposition order between the layers, the visual effect of the interlaced display of the layers can be achieved, or the visual effect of the main object and the text can be interspersed, so as to enrich the image visual effect, improve the image processing quality of the application, meet the requirements of individual users for image processing, and improve the user experience.
[0390] Figure 8A schematic diagram of the structure of an embodiment of an image processing device provided in an embodiment of the present application, the device may include:
[0391] A first request receiving module 801 is used to receive an image processing request from a user;
[0392] A first acquisition module 802 is used to acquire an original image and an image template corresponding to the original image;
[0393] A first adjustment module 803, used to adjust the image template;
[0394] The first synthesis template 804 is used to synthesize the adjusted image template and the original image into a target image. In some embodiments, the first adjustment module can be specifically used to extract at least one of the background image color and the main object color from the original image; and adjust the color of the image template according to at least one of the background image color and the main object color.
[0395] In some embodiments, the first adjustment module is specifically configured to adjust the template background color and the modification element color of the image template according to at least one of the background image color and the main object color.
[0396] In some embodiments, the first adjustment module is specifically used to adjust the saturation and / or brightness of the background image color to obtain a first color; adjust the template background color to the first color; obtain a second color that is displayed in contrast with the background image color based on the background image color; and adjust the modification element color to the second color.
[0397] In some embodiments, the first adjustment module obtains, according to the background image color, a second color that is displayed in contrast with the background image color, including:
[0398] If the brightness of the background image color is less than the first brightness value, determining that the second color is white;
[0399] If the color brightness of the background image is greater than the first brightness value, the saturation and / or brightness of the main object color is adjusted to obtain a second color.
[0400] In some embodiments, the first adjustment module is specifically used to determine whether the background image color and the main object color satisfy the color matching rules; if so, adjust the template background color and the modifying element color of the image template according to the background image color; if not, adjust the template background color and the modifying element color of the image template according to a third color that satisfies the color matching rules with the main object color.
[0401] In some embodiments, the first adjustment module is specifically configured to adjust the template background color and the color of the modified element of the image template according to a fourth color that satisfies a color matching rule with the main object color.
[0402] In some embodiments, the apparatus may further include:
[0403] A blur processing module, used for blurring the background image area in the original image;
[0404] The first synthesis module is specifically used to synthesize the target image by combining the original image after blurring and the adjusted image template.
[0405] In some embodiments, the blur processing module is specifically used to detect the background image area and the main object area in the original image; and blur the background image area of the original image according to the rule that the farther the distance from the main object area, the greater the blur.
[0406] In some embodiments, the image template includes a plurality of template layers; the plurality of template layers include a template background layer and a modification element layer; the modification element layer is used to present at least one modification element;
[0407] The device also includes:
[0408] An image separation module, used for separating the original image into a background image layer and a main object layer;
[0409] The first synthesis module is specifically used to superimpose the template background layer on the background image layer; insert at least one template layer between the template background layer and the main object layer; and superimpose the remaining template layers on the main object layer to obtain a target image.
[0410] In some embodiments, the image template includes a target modifying element layer; the target modifying element layer includes a first modifying layer and a second modifying layer; the image synthesized by the first modifying layer and the second modifying layer includes a modifying element, and the first modifying layer and the second modifying layer respectively include partial contents of the modifying element;
[0411] The first synthesis module inserts at least one template layer between the template background layer and the main object layer, comprising:
[0412] Inserting a first modification layer between the template background layer and the main object layer;
[0413] The remaining template layers are superimposed on the main object layer to obtain the target image, including:
[0414] The second modification layer and the remaining template layers are sequentially superimposed on the main object layer to obtain a target image.
[0415] In some embodiments, the first acquisition module is specifically configured to receive an original image uploaded by a user; and search for an image template matching the original image.
[0416] In some embodiments, the apparatus may further include:
[0417] Activity promotion module, used to send promotion activity participation reminder information to the user end;
[0418] The business processing module is used to publish the target image on a corresponding page corresponding to the promotion activity.
[0419] In some embodiments, the image template includes at least one template layer;
[0420] The first adjustment module is specifically used to adjust the superimposed position relationship of the at least one template image according to the original image.
[0421] In some embodiments, the first synthesis module can be specifically used to separate a background image layer and a main object layer from the original image; insert one or more template layers between the background image layer and the main object layer according to the adjusted overlay position relationship, and overlay the remaining template layers on the main object layer to obtain a target image.
[0422] In some embodiments, the image template includes a target modification element layer; the target modification element layer is used to present the target modification element; the target modification element layer includes a first modification layer and a second modification layer;
[0423] The first synthesis module is specifically used to insert the first modification layer between the background image layer and the main object layer according to the adjusted superimposed position relationship, and to superimpose the second modification layer and the remaining template layers on the main object layer.
[0424] In some embodiments, the image template includes a template background layer;
[0425] The first synthesis module inserts the first modification layer between the background image layer and the main object layer, and superimposes the second modification image and the remaining template layers on the main object layer, including:
[0426] Overlaying the template background layer on the background image layer;
[0427] The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0428] In some embodiments, the apparatus may further include:
[0429] The color adjustment module is used to extract at least one of the background image color and the main object color from the original image; and adjust the template background color of the template background layer and the modification element color in the modification element layer according to at least one of the background image color and the main object color.
[0430] In some embodiments, the image processing request includes an adjustment instruction;
[0431] The first adjustment module is specifically configured to adjust the image template according to the adjustment instruction.
[0432] In some embodiments, the first adjustment module is specifically configured to determine a user feature of the user; and adjust the image template in an adjustment manner that matches the user feature.
[0433] Figure 8 The image processing device can execute Figure 1 The implementation principle and technical effect of the image processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the image processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.
[0434] In addition, the present application embodiment also provides an application program, such as Fig. 9 As shown in , the application can include:
[0435] Input interface 901, used to receive a user's image processing request;
[0436] A loading component 902 is used to obtain an original image and an image template corresponding to the original image;
[0437] The processing engine 903 is used to adjust the image template and synthesize the adjusted image template and the original image into a target image.
[0438] Fig. 9 The application shown can be executed Figure 1 The implementation principle and technical effects of the image processing method shown will not be repeated here.
[0439] In one possible design, Figure 8 The image processing apparatus of the embodiment shown can be implemented as a computing device, such as Fig.10 As shown, the computing device may include a storage component 1001 and a processing component 1002;
[0440] The storage component 1001 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 1002 .
[0441] The processing component 1002 is used to:
[0442] Receive a user's image processing request;
[0443] Obtaining an original image and an image template corresponding to the original image;
[0444] adjusting the image template;
[0445] The adjusted image template and the original image are synthesized into a target image.
[0446] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.
[0447] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0448] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.
[0449] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The image processing method of the illustrated embodiment.
[0450] In yet another embodiment, the present application also provides an image processing device, including:
[0451] A second request receiving module, configured to receive an image processing request from a user; wherein the image processing request includes an adjustment instruction;
[0452] A second acquisition module, used to acquire an original image and an image template corresponding to the original image;
[0453] A second adjustment module, used for adjusting the image template according to the adjustment instruction;
[0454] The second synthesis template is used to synthesize the adjusted image template and the original image into a target image.
[0455] In one possible design, the image processing apparatus may be implemented as a computing device, which may include a storage component and a processing component;
[0456] The storage component stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component.
[0457] The processing component is used to:
[0458] Receiving an image processing request from a user; wherein the image processing request includes an adjustment instruction;
[0459] Obtaining an original image and an image template corresponding to the original image;
[0460] Adjusting the image template according to the adjustment instruction;
[0461] The adjusted image template and the original image are synthesized into a target image.
[0462] In addition, the present application also provides an application program, including:
[0463] An input interface, used to receive a user's image processing request; the image processing request includes an adjustment instruction;
[0464] A loading component is used to obtain an original image and an image template corresponding to the original image;
[0465] The processing engine is used to adjust the image template according to the adjustment instruction, and synthesize the adjusted image template and the original image into a target image.
[0466] In addition, the present application also provides a computer-readable storage medium storing a computer program, which can achieve the above-mentioned Figure 5 The image processing method of the illustrated embodiment.
[0467] Fig.11 A schematic structural diagram of another embodiment of an image processing device provided in an embodiment of the present application, the device may include:
[0468] The third request receiving module 1101 is used to receive an image processing request from a user;
[0469] The third acquisition module 1102 is used to acquire an original image and an image template corresponding to the original image;
[0470] The image processing module 1103 is used to perform blur processing on the background image area in the original image;
[0471] The third synthesis module 1104 is used to synthesize the target image by combining the original image after blurring with the image template.
[0472] In some embodiments, the device may further include: a color adjustment module, configured to extract at least one of a background image color and a main object color from the original image; and adjust the color of the image template according to at least one of the background image color and the main object color;
[0473] The second synthesis module is specifically used to synthesize the target image by combining the original image after blurring and the image template after adjustment.
[0474] In some embodiments, the image template includes at least one template layer;
[0475] The second synthesis module is specifically used to separate the background image layer and the main object layer from the original image after blurring; insert one or more template layers between the background image layer and the main object layer, and superimpose the remaining template layers on the main object layer to obtain the target image.
[0476] In some embodiments, the image template includes a target modification element layer; the target modification element layer includes a first modification layer and a second modification layer;
[0477] The second synthesis module inserts one or more template layers between the background image layer and the main object layer, and superimposes the remaining template layers on the main object layer, including:
[0478] The first modification layer is inserted between the background image layer and the main object layer, and the second modification layer and the remaining template layers are sequentially superimposed on the main object layer.
[0479] In some embodiments, the image template includes a template background layer;
[0480] The second synthesis module inserts a first modification layer between the background image layer and the main object layer, and superimposes the second modification layer on the main object layer, including:
[0481] Overlaying the template background layer on the background image layer;
[0482] The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
[0483] Fig.11 The image processing device can execute Figure 6The implementation principle and technical effect of the image processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the image processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.
[0484] In one possible design, Fig.11 The image processing apparatus of the embodiment shown can be implemented as a computing device, such as Fig.12 As shown, the computing device may include a storage component 1201 and a processing component 1202;
[0485] The storage component 1201 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 1202 .
[0486] The processing component 1202 is used to:
[0487] Receive a user's image processing request;
[0488] Acquire an original image and an image template corresponding to the original image;
[0489] Performing blur processing on the background image area in the original image;
[0490] The original image after blurring is combined with the image template to form a target image.
[0491] Of course, a computing device may also include other components, such as input / output interfaces, communication components, etc.
[0492] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0493] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.
[0494] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 6 The image processing method of the illustrated embodiment.
[0495] In addition, the present application embodiment also provides an application program, which may include:
[0496] An input interface, used to receive a user's image processing request;
[0497] A loading component is used to obtain an original image and an image template corresponding to the original image;
[0498] The processing engine is used to perform blur processing on the background image area in the original image, and to synthesize the target image by combining the original image after blur processing with the image template.
[0499] The "computing device" mentioned above can be a physical device or an elastic computing host provided by a cloud computing platform. In this case, the computing device can refer to a cloud server, and the processing components, storage components, etc. mentioned above can be basic server resources rented or purchased from a cloud computing platform. Therefore, in practical applications, the "computing device" can be a remote web server, server, computer networking device, chipset, desktop computer, notebook computer, workstation, or any other processing device or equipment.
[0500] Of course, the computing device may also refer to a portable mobile terminal, such as a mobile phone, a tablet computer, a personal computer, etc.
[0501] The processing components described above may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing components 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 components to perform the above method.
[0502] The storage component is configured to store various types of data to support operations in the computing device. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0503] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0504] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0505] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0506] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An image processing method, characterized in that: include: Receive a user's image processing request; Obtaining an original image and an image template corresponding to the original image; Adjusting the image template, wherein the adjusting the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and superimposing the remaining template layers onto the main object layer; The adjusted image template and the original image are synthesized into a target image.
2. The method according to claim 1, characterized in that: The adjusting the image template comprises: Extracting at least one of a background image color and a main object color from the original image; According to at least one of the background image color and the main object color, the template background color and the modification element color of the image template are adjusted.
3. The method according to claim 2, characterized in that The adjusting the template background color and the color of the modified element in the image template according to at least one of the background image color and the main object color comprises: Adjusting the saturation and / or brightness of the background image color to obtain a first color; Adjust the template background color to the first color; According to the background image color, obtaining a second color that is displayed in contrast with the background image color; Adjust the color of the modifier element to the second color.
4. The method according to claim 3, characterized in that The obtaining, according to the background image color, a second color displayed in contrast with the background image color comprises: If the brightness of the background image color is less than the first brightness value, determining that the second color is white; If the color brightness of the background image is greater than the first brightness value, the saturation and / or brightness of the main object color is adjusted to obtain a second color.
5. The method according to claim 2, characterized in that: The adjusting the template background color and the color of the modification element of the image template according to at least one of the background image color and the main object color comprises: Determine whether the background image color and the main object color meet the color matching rules; If so, adjusting the template background color and the color of the modified elements of the image template according to the background image color; If not, the template background color and the color of the modified element of the image template are adjusted according to a third color that satisfies the color matching rule with the main object color.
6. The method according to claim 2, characterized in that The adjusting the template background color and the color of the modification element of the image template according to at least one of the background image color and the main object color comprises: The template background color and the color of the modified element of the image template are adjusted according to a fourth color that satisfies the color matching rule with the main object color.
7. The method according to claim 1, characterized in that Also includes: Performing blur processing on the background image area in the original image; The synthesizing the target image by combining the adjusted image template with the original image comprises: The original image after blurring is combined with the adjusted image template to form a target image.
8. The method according to claim 7, characterized in that The blurring of the background image area in the original image comprises: Detecting a background image area and a main object area in the original image; The background image area of the original image is blurred according to the rule that the farther away from the main object area, the greater the blurring degree.
9. The method according to claim 2, characterized in that: The image template includes a plurality of template layers; The multiple template layers include a template background layer and a modification element layer; the modification element layer is used to present at least one modification element; The method further comprises: Separating the original image to obtain a background image layer and a main object layer; The synthesizing the target image by combining the adjusted image template with the original image comprises: Overlaying the adjusted template background layer in the image template on the background image layer; Inserting at least one template layer in the adjusted image template between the template background layer and the main object layer; The remaining template layers in the adjusted image template are superimposed on the main object layer to obtain a target image.
10. The method according to claim 9, characterized in that The image template includes a target modification element layer; the target modification element layer includes a first modification layer and a second modification layer; the image synthesized by the first modification layer and the second modification layer includes a modification element, and the first modification layer and the second modification layer respectively include partial contents of the modification element; The inserting of at least one template layer in the adjusted image template between the template background layer and the main object layer comprises: Inserting a first modification layer between the template background layer and the main object layer; The remaining template layers are superimposed on the main object layer to obtain the target image, including: The second modification layer and the remaining template layers are sequentially superimposed on the main object layer to obtain a target image.
11. The method according to claim 2, characterized in that The image processing request includes the original image.
12. The method according to claim 11, characterized in that Before receiving the image processing request from the user, the method further includes: Send promotion activity participation reminder information to the user end; After synthesizing the target image with the adjusted image template and the original image, the method further includes: The target image is published on a corresponding page corresponding to the promotion activity.
13. The method according to claim 1, characterized in that The image template includes at least one template layer; The adjusting the image template includes: adjusting the superimposed position relationship of the at least one template layer according to the original image.
14. The method according to claim 13, characterized in that Combining the adjusted image template and the original image into a target image comprises: Separating a background image layer and a main object layer from the original image; According to the adjusted superimposed position relationship, one or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are superimposed on the main object layer to obtain a target image.
15. The method according to claim 14, characterized in that The image template includes a target modification element layer; the target modification element layer is used to present the target modification element; the target modification element layer includes a first modification layer and a second modification layer; The step of inserting one or more template layers between the background image layer and the main object layer according to the adjusted superimposed position relationship, and superimposing the remaining template layers on the main object layer comprises: According to the adjusted superimposed position relationship, the first modification layer is inserted between the background image layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
16. The method according to claim 15, characterized in that The image template includes a template background layer; The method of inserting the first modification layer between the background image layer and the main object layer according to the adjusted superimposed position relationship, and superimposing the second modification image and the remaining template layers on the main object layer comprises: According to the adjusted superimposed position relationship, superimposing the template background layer on the background image layer; The first modification layer is inserted between the template background layer and the main object layer, and the second modification layer and the remaining template layers are superimposed on the main object layer.
17. The method according to claim 1, characterized in that The image processing request includes an adjustment instruction; the adjustment instruction includes a target color; The adjusting the image template comprises: According to the target color, the color of the image template is adjusted.
18. The method according to claim 1, characterized in that The adjusting the image template comprises: determining user characteristics of the user; The image template is adjusted in an adjustment manner that matches the user feature.
19. An image processing method, characterized in that: include: Receiving an image processing request from a user; wherein the image processing request includes an adjustment instruction; Obtaining an original image and an image template corresponding to the original image; According to the adjustment instruction, the image template is adjusted, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate that one or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are superimposed on the main object layer; The adjusted image template and the original image are synthesized into a target image.
20. The method according to claim 19, characterized in that 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; Adjusting the original image according to the image processing instruction; The step of synthesizing the target image with the adjusted image template and the original image comprises: The adjusted image template and the adjusted original image are synthesized into a target image.
21. The method according to claim 19, characterized in that The adjustment instruction includes a target color, and adjusting the image template according to the adjustment instruction includes: According to the target color, the template background color and the modification element color of the image template are adjusted.
22. The method according to claim 21, characterized in that The adjusting the template background color and the color of the modified element of the image template according to the target color comprises: Adjusting the template background color of the image template to the target color; According to the target color, a color that is displayed in contrast with the target color is obtained; Adjusts the color of the modifier element to appear in contrast to the target color.
23. An image processing method, characterized in that: include: Receive a user's image processing request; Acquire an original image and an image template corresponding to the original image; Performing blur processing on the background image area in the original image; The target image is synthesized by combining the original image after blurring with the image template, wherein the image template is used to adjust the template background color and the color of the modifying elements of the image template, or to adjust the overlay position relationship of at least one template layer of the image template, and the adjusted overlay position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and overlaying the remaining template layers onto the main object layer.
24. An image processing method, characterized in that: include: Receive a user's image processing request; Obtain a product image and an image template corresponding to the product image; Adjusting the image template, wherein the adjusting the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and superimposing the remaining template layers onto the main object layer; The adjusted image template and the product image are combined into a promotional image.
25. An image processing method, characterized in that: include: Receiving an image processing request from a user; the image processing request includes an adjustment instruction; Obtain a product image and an image template corresponding to the product image; According to the adjustment instruction, the image template is adjusted, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate that one or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are superimposed on the main object layer; The adjusted image template and the product image are combined into a promotional image.
26. An image processing method, characterized in that: include: Receive a user's image processing request; Obtain a product image and an image template corresponding to the product image; Blurring the background image area in the product image; The blurred product image and the image template are combined into a promotional image, and the image template is used to adjust the template background color and the color of the modifying elements of the image template, or to adjust the overlay position relationship of at least one template layer of the image template, and the adjusted overlay position relationship is used to indicate that one or more template layers are inserted between the background image layer and the main object layer, and that the remaining template layers are overlaid on the main object layer.
27. An image processing device, characterized in that: include: A first request receiving module, used for receiving an image processing request from a user; A first acquisition module, used to acquire an original image and an image template corresponding to the original image; A first adjustment module, used for adjusting the image template, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and superimposing the remaining template layers onto the main object layer; The first synthesis template is used to synthesize the adjusted image template and the original image into a target image.
28. An image processing device, characterized in that: include: A second request receiving module, configured to receive an image processing request from a user; wherein the image processing request includes an adjustment instruction; A second acquisition module, used to acquire an original image and an image template corresponding to the original image; A second adjustment module is used to adjust the image template according to the adjustment instruction, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate that one or more template layers are inserted between the background image layer and the main object layer, and that the remaining template layers are superimposed on the main object layer; The second synthesis template is used to synthesize the adjusted image template and the original image into a target image.
29. An image processing device, characterized in that: include: A third request receiving module, used for receiving an image processing request from a user; A third acquisition module, used to acquire an original image and an image template corresponding to the original image; An image processing module, used for blurring the background image area in the original image; A third synthesis module is used to synthesize the target image by combining the original image after blurring with the image template, wherein the image template is obtained by adjusting the template background color and the color of the modifying elements of the image template, or by adjusting the overlay position relationship of at least one template layer of the image template, and the adjusted overlay position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and overlaying the remaining template layers onto the main object layer.
30. An application program, characterized in that: include: An input interface, used to receive a user's image processing request; A loading component is used to obtain an original image and an image template corresponding to the original image; A processing engine is used to adjust the image template, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, superimposing the remaining template layers onto the main object layer, and synthesizing the adjusted image template and the original image into a target image.
31. An application program, characterized in that include: An input interface, used to receive a user's image processing request; The image processing request includes an adjustment instruction; A loading component is used to obtain an original image and an image template corresponding to the original image; A processing engine is used to adjust the image template according to the adjustment instruction, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, superimposing the remaining template layers onto the main object layer, and synthesizing the adjusted image template and the original image into a target image.
32. An application program, characterized in that include: An input interface, used to receive a user's image processing request; A loading component is used to obtain an original image and an image template corresponding to the original image; A processing engine is used to blur the background image area in the original image, and to synthesize the target image with the original image after blurring and the image template, wherein the image template is used to adjust the template background color and the color of the modifying element of the image template, or to adjust the superimposed position relationship of at least one template layer of the image template, and the adjusted superimposed position relationship is used to indicate to insert one or more template layers between the background image layer and the main object layer, and to superimpose the remaining template layers on the main object layer.
33. A computing device, characterized in that including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component; The processing component is used to: Receive a user's image processing request; Obtaining an original image and an image template corresponding to the original image; Adjusting the image template, wherein the adjusting the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and superimposing the remaining template layers onto the main object layer; The adjusted image template and the original image are synthesized into a target image.
34. A computing device, characterized in that including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component; The processing component is used to: Receiving an image processing request from a user; wherein the image processing request includes an adjustment instruction; Obtaining an original image and an image template corresponding to the original image; According to the adjustment instruction, the image template is adjusted, wherein the adjustment of the image template includes adjusting the template background color and the color of the modifying elements of the image template, or the superimposed position relationship of at least one template layer of the image template, wherein the adjusted superimposed position relationship is used to indicate that one or more template layers are inserted between the background image layer and the main object layer, and the remaining template layers are superimposed on the main object layer; The adjusted image template and the original image are synthesized into a target image.
35. A computing device, characterized in that including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component; The processing component is used to: Receive a user's image processing request; Acquire an original image and an image template corresponding to the original image; Performing blur processing on the background image area in the original image; The target image is synthesized by combining the original image after blurring with the image template, wherein the image template is used to adjust the template background color and the color of the modifying elements of the image template, or to adjust the overlay position relationship of at least one template layer of the image template, and the adjusted overlay position relationship is used to indicate inserting one or more template layers between the background image layer and the main object layer, and overlaying the remaining template layers onto the main object layer.
