Image editing processing method and device, electronic equipment and storage medium

By determining the image editing template and reference color, image editing processing is carried out to highlight the display of key feature information, the problem of object display image design and optimization is solved, and efficient information communication and display effect is achieved.

CN120147482APending Publication Date: 2025-06-13BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510307950.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The prior art is difficult to design and optimize the object display image, resulting in poor display effect of object resource objects.

Method used

Image editing processes are performed to highlight key feature information by determining the image editing template and reference color.

Benefits of technology

It realizes rapid and accurate editing of images, improving information communication efficiency and image display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120147482A_ABST
    Figure CN120147482A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image editing processing method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a first image editing template adopted by a first image, wherein the first image editing template is used for synchronously highlighting contents expressed by key feature information associated with the first image when the first image is displayed and presented; determining a reference color of the first image, wherein the reference color can be used for indicating a basic color corresponding to key feature information included in the first image in a color mode system; performing color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template; and carrying out editing processing on the first image based on the second image editing template and displaying a second image. According to the scheme of the invention, the method achieves the quick and accurate adaptation of the image editing template for the image material, and enables the key feature information in the image material to be highlighted through the adaptive image editing template.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer software technology, and in particular, to an image editing and processing method, apparatus, electronic device, and storage medium. Background Art

[0002] At present, with the booming development of e-commerce, image materials, as the core carrier for displaying item resource objects, are in increasing demand. To accurately convey the core highlights of item resource objects, item display image design will be carried out on the image materials related to item resource objects. An item display image that performs excellently in content expression can intuitively present the core advantages of item resource objects. However, nowadays, as an image material related to item resource objects, the design and optimization of item display images face many problems. On the one hand, due to the lack of professional item display image design capabilities and image material optimization techniques, it is extremely difficult to design and optimize item display images when independently designing eye-catching and high-quality item display images. On the other hand, the entire process link from item resource object procurement, inventory management to customer service is cumbersome and complex, making it extremely difficult to optimize item display images for image materials related to item resource objects, resulting in a deterioration of the display effect of item resource objects. Summary of the Invention

[0003] Embodiments of the present disclosure provide an image editing and processing method, apparatus, electronic device, and storage medium to achieve fast and accurate adaptation of an image editing template for image materials, and to prominently display key feature information in the image materials through the adapted image editing template.

[0004] In a first aspect, embodiments of the present disclosure provide an image editing and processing method, the method including:

[0005] Determine a first image editing template adopted by a first image, where the first image editing template is used to prominently display the content expressed by key feature information associated with the first image when the first image is presented;

[0006] Determine a reference color of the first image, where the reference color can be used to indicate the base color corresponding to the key feature information included in the first image in a color mode system;

[0007] Perform color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template;

[0008] Perform editing processing on the first image based on the second image editing template and display the second image. In a second aspect, embodiments of the present disclosure also provide an image editing and processing apparatus, the apparatus including:

[0009] A first determination module, configured to determine a first image editing template adopted by a first image, where the first image editing template is used to prominently display the content expressed by key feature information associated with the first image when the first image is presented;

[0010] A second determination module, configured to determine a reference color of the first image, where the reference color can be used to indicate a base color corresponding to the key feature information included in the first image in a color mode system;

[0011] A color matching adjustment module, configured to perform color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template;

[0012] An editing processing module, configured to perform editing processing on the first image based on the second image editing template and display a second image.

[0013] In a third aspect, an electronic device is further provided in an embodiment of the present disclosure. The electronic device includes:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the image editing processing method according to any one of the above embodiments.

[0017] In a fourth aspect, a computer-readable medium is further provided in an embodiment of the present disclosure. The computer-readable medium stores computer instructions, and when the computer instructions are executed by a processor, the image editing processing method according to any one of the above embodiments is implemented.

[0018] The technical solution of the embodiment of the present disclosure determines a first image editing template for highlighting the content to be expressed of key feature information, which can specifically highlight the key content in the first image. Through the image editing template, key feature information such as unique designs and functional highlights in the first image can be made more prominent during display, so that the content expressed by the key feature information in the first image is displayed differently from the entire image, improving the information transmission efficiency. By clarifying the reference color of the first image, the reference color of the base color corresponding to the key feature information of the image can be accurately indicated, assisting in reflecting the image color system. Adjust the color matching of the first image editing template according to the reference color to make the image editing template match the color of the first image. Using the adjusted second image editing template to edit and display the first image can ensure the overall visual effect of the first image is more coordinated and unified to a greater extent, optimize the image display effect in all aspects, and can be flexibly adjusted according to the characteristics and requirements of different first images to adapt to various scenarios.

[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the embodiments of the present disclosure will become more obvious. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the original elements and elements are not necessarily drawn to scale.

[0021] Figure 1 is a flowchart of an image editing and processing method provided by an embodiment of the present disclosure;

[0022] Figure 2 is a template schematic diagram of an image editing template provided by an embodiment of the present disclosure;

[0023] Figure 3 is an effect schematic diagram of using an image editing template to edit and process an image provided by an embodiment of the present disclosure;

[0024] Figure 4 is a flowchart of another image editing and processing method provided by an embodiment of the present disclosure;

[0025] Figure 5 is a schematic diagram of extracting the base color from an image provided by an embodiment of the present disclosure;

[0026] Figure 6 is a flowchart of yet another image editing and processing method provided by an embodiment of the present disclosure;

[0027] Figure 7 It is a schematic diagram of marking color numbers in an image editing template provided by an embodiment of the present disclosure;

[0028] Figure 8 It is a schematic diagram of generating a color palette based on a basic color provided by an embodiment of the present disclosure;

[0029] Figure 9 It is a schematic diagram of a reference color palette provided by an embodiment of the present disclosure;

[0030] Figure 10 It is a schematic diagram of color matching adjustment for an image editing template based on a reference color palette provided by an embodiment of the present disclosure;

[0031] Figure 11 It is a schematic diagram of the structure of an image editing processing device provided by an embodiment of the present disclosure;

[0032] Figure 12 It is a schematic diagram of the structure of an electronic device for implementing an image editing processing method provided by an embodiment of the present disclosure. Detailed implementation manners

[0033] Hereinafter, embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0034] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0035] The term "including" and its variations used herein are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.

[0037] It should be noted that the modifications of "one" and "multiple" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly specified in the context, it should be understood as "one or more".

[0038] The names of the messages or information exchanged between multiple devices in the embodiments of this disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0039] Figure 1 As a schematic flowchart of an image editing and processing method provided by an embodiment of this disclosure, the embodiment of this disclosure is applicable to the situation where it is necessary to highlight the key features of a product when displaying various product pictures, so as to convey the core key features of the product. This image editing and processing method can be executed by an image editing and processing device, which can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication functions. The electronic device can be a mobile terminal, a PC, a server, etc.

[0040] As Figure 1 shown, the image editing and processing method of the embodiment of this disclosure may include the following processes:

[0041] S110. Determine a first image editing template for the first image, where the first image editing template is used to prominently display the content expressed by the key feature information associated with the first image when the first image is presented.

[0042] The first image can be an image that needs to be edited, processed, and displayed to highlight the key features of an item. The first image can be any type of image, such as an item picture, a landscape photo, a promotional poster, etc. The image editing template can be a design framework applied to the production of the first image, supporting the addition of visual effects to the first image that can prominently display the target object in the first image, and can incorporate carefully designed graphic elements, color combinations, and layout arrangements, etc., to present the target object in the first image in an artistic and reasonable manner, ensuring that the key feature information related to the target object in the first image can be visually displayed accurately, clearly, and efficiently. Among them, the target object can be the target to be displayed presented in the first image.

[0043] The first image editing template can be an image editing template with a preset series of styles and layouts, which can include various visual effects that can be used to enhance the display of key feature information in the image. For example, the contrast and brightness of the image can be adjusted, lighting effects can be added, and specific areas can be highlighted. The key feature information associated with the first image can be important content closely related to the theme related to the target object in the first image, such as the unique functions of the items shown in the first image. By highlighting this key feature information, the audience can more quickly and accurately understand the main content conveyed by the image. The prominent display of the content expressed by the key feature information in the first image editing template can be reflected in the visual effect from at least one of the color intensity, the visual impact and recognition of the text content, and the display size of the text content.

[0044] The prominent display of the first image editing template can refer to a display method that, based on the display of the first image, focuses on highlighting and emphasizing the key feature information of the target object in the first image by using a series of visual effect presentation methods included in the first image editing template, so as to enhance the visual effect of the key feature information associated with the first image. The prominent display of the first image editing template can be understood as a purposeful and strategic visual effect presentation, used to make the key feature information associated with the target object in the prominently displayed first image form a contrast with the key feature information presented by the first image itself related to the target object in terms of visual effect. The prominent display of the first image editing template can, through vivid colors, prominent text, unique composition, etc., prominently display the target object in the first image, can clearly convey the key features of the target object in the first image through visual display methods, and can also guide the browsing of the image content in the first image in the desired order through reasonable prominent display, and achieve guiding from the key features of the target object to other relevant information of the target object in turn by using techniques such as lines, size comparison, and color hierarchy.

[0045] Optionally, by analyzing and processing the type and theme of the first image, as well as the content that needs to be prominently displayed in the first image, multiple first image editing templates suitable for the first image can be selected according to the analysis results. For example, if the first image is a photo showing a target object, it is necessary to consider highlighting the key features of the target object, and then select a more suitable image editing template from many preset image editing templates. This first image editing template should have the function of strengthening the key feature information related to the target object, such as enhancing color saturation and highlighting the theme of the target object.

[0046] S120. Determine the reference color of the first image, and the reference color can be used to indicate the base color corresponding to the key feature information included in the first image in the color mode system.

[0047] The reference color(s) can be extracted from the first image and can be one or more colors that represent the main color tendency of the first image and indicate the base color corresponding to the key feature information in the color model system. The reference color(s) can play a key role in subsequent color matching adjustments to the editing template of the first image. The color model system can be used to describe and define colors. Commonly used ones include RGB (Red, Green, Blue), CMYK (Cyan, Magenta, Yellow, Black), HSB (Hue, Saturation, Brightness), etc. Different color model systems are applicable to different scenarios and requirements.

[0048] Optionally, the reference color(s) can be the base color(s) extracted from the first image that are representative of the key feature information of the target object and are the colors in the image color that can reflect the most important and the color characteristics that can best reflect the key feature information associated with the first image under the color model system. Taking the RGB color model as an example, the red (R), green (G), and blue (B) component values of the reference color can be used to describe the specific position and characteristics of the color in this model. Taking the HSB color model as an example, the hue, saturation, and brightness of the reference color can be used to describe the specific position and characteristics of the color in this model.

[0049] S130. Perform color matching adjustment on the editing template of the first image based on the reference color to obtain the second image editing template.

[0050] See Figure 2 , the reference color(s) can assist in guiding the color tendency of the first image in the color model system, play a key role in the color composition of the image, and can be used to infer other related attributes of the first image in the color model system, such as color balance, color hierarchy, etc. During the image editing and processing, the reference color(s) is an important basis for subsequent color adjustment and color matching. If one wants to perform a style conversion or color optimization on an image, the reference color(s) can be used to guide the coordination of colors so as to achieve color change adjustment of the color elements in the editing template of the first image, and then the second image editing template can be obtained. For example, when adding text or decorative elements to the first image, the text color that matches it can be selected according to the hue, saturation, and brightness of the reference color. Another example, if the reference color is a warm color tone, then adjust the text color, decorative line color, etc. in the candidate template to colors that match the warm color tone, so that the color matching of the entire image editing template is coordinated with the color style of the first image.

[0051] By adopting the above method, the color style and theme consistency of the first image can be better maintained. For example, for an image with a retro style, its reference color can be a sepia tone with low saturation and warm colors. In this way, when editing the first image, using these sepia colors as the base colors can ensure that the edited image still retains the retro style characteristics and will not lose its original style due to random color changes.

[0052] S140. Edit the first image based on the second image editing template and display the second image.

[0053] See Figure 3 , after the generation of the second image editing template, the second image editing template contains preset editing rules and styles for the key feature information associated with the first image, such as color adjustment, element addition, layout optimization, etc. Optionally, when editing the first image based on the second image editing template, various elements of the first image can be edited and modified according to the parameters and operations set in the second image editing template. After the editing of the first image is completed, the processed second image will be displayed in a suitable manner to ensure that the image can be presented in the best effect on various terminal devices. Optionally, when editing the first image based on the second image editing template, the second image editing template and the first image can be used as different layers for layer overlay processing, so as to output and display the edited second image. Among them, the visual effect of highlighting the key feature information associated with the target object when the second image is displayed is greater than the visual effect of highlighting the key feature information related to the target object when the first image is displayed. The visual effect can be represented by at least one of the color intensity, the visual impact and recognition of the text content, and the display size of the text content. For example, the color intensity of the key feature information associated with the target object presented when the second image is displayed is greater than the color intensity of the key feature information related to the target object presented when the first image is displayed.

[0054] Optionally, see Figure 3, the second image editing template can be loaded. The second image editing template can be saved in a certain preset data structure, such as a JSON file containing various editing parameters and operation instructions, or a template file format preset in image processing software. Through corresponding reading operations, various editing information in the second image editing template is loaded. According to the color adjustment parameters set in the second image editing template, color correction is performed on the first image. For example, the second image editing template specifies adjusting the brightness, contrast, and saturation of the image. If the second image editing template requires color matching or color adjustment based on a reference color, color conversion calculations may need to be performed on each pixel of the first image. The second image editing template can include preset elements to be added to the first image, such as text, icons, decorative lines, etc. According to the parameters such as position, size, and color set in the second image editing template, these preset elements are added to the first image. For the existing target object elements in the first image, such as the product main body, background, etc., they are adjusted according to the template requirements. The second image editing template can include cropping, scaling, and rotating the target object elements to make the target object elements occupy a more appropriate position and proportion in the image, and blurring and defocusing the background to highlight the product main body.

[0055] Through the first image editing template, the key feature information of the first image can be highlighted specifically, making it easier for the audience to focus on the core content of the image and improving the efficiency of information transmission. By adjusting the color matching of the first image editing template according to the reference color, the coordination and consistency in color between the first image and the image editing template are ensured, avoiding color conflicts. After being processed by the editing template, the first image is optimized in terms of brightness, contrast, color, etc., and the image quality is significantly improved, having more advantages both in visual effects and information transmission. Moreover, according to different first images and display requirements, the first image editing template can be flexibly selected and adjusted accordingly, applicable to various scenarios, such as advertising design, e-commerce product display, post-processing of photographic works, etc.

[0056] The technical solution of the embodiment of the present disclosure determines a first image editing template for highlighting the content to be expressed of key feature information, which can specifically highlight the key content in the first image. Through the image editing template, key feature information such as unique designs and functional highlights in the first image can be made more prominent during display, so that the content expressed by the key feature information in the first image is displayed differently from the entire image, improving the information transmission efficiency; by clarifying the reference color of the first image, the reference color of the base color corresponding to the key feature information of the image can be accurately indicated, assisting in reflecting the image color system. Adjust the color matching of the first image editing template according to the reference color to make the image editing template match the color of the first image. Using the adjusted second image editing template to edit and display the first image can ensure the overall visual effect of the first image during display to be more coordinated and unified, optimize the image display effect in all aspects, and can be flexibly adjusted according to the characteristics and requirements of different first images to adapt to various scenarios.

[0057] Figure 4 It is a flowchart of another image editing processing method provided by the embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of determining the reference color of the first image in the foregoing embodiment on the basis of the technical solution of the foregoing embodiment. This embodiment can be combined with each optional solution in one or more of the foregoing embodiments.

[0058] As Figure 4 shown, the image editing processing method of the embodiment of the present disclosure may include the following processes:

[0059] S410. Determine a first image editing template adopted by the first image. The first image editing template is used to highlight the content expressed by the key feature information associated with the first image when the first image is displayed.

[0060] S420. Determine the hue of at least some reference pixels in the first image. The reference pixels are pixels in a local image area selected from the first image that can reflect the color corresponding to the key feature information in the first image.

[0061] The reference pixels can be a part of the pixels selected from the first image. The local area where the reference pixels are located can reflect the color style corresponding to the key feature information associated with the first image. By analyzing the reference pixels, the color tone of the first image can be determined. Hue is the primary characteristic of color, the most accurate criterion for distinguishing different colors, and is the color reflected or transmitted through an object. In the HSB mode, in addition to hue, there are also saturation and brightness. Select the reference pixels in the local image area of the first image that can reflect the color style corresponding to the key feature information in the image material, extract these reference pixels, and determine their hues. The reference pixels can accurately reflect the hue corresponding to the key feature information in the first image. Through the quantified hue information, the color characteristics of the image can be deeply understood, laying a foundation for determining the reference color subsequently.

[0062] Optionally, an image segmentation algorithm, such as threshold-based segmentation, is used to divide the first image into different image regions according to the differences in the values of each pixel, and select the local image area that can reflect the color corresponding to the key feature information in the first image. Of course, it is also possible to trigger the selection of the local image area in the first image that can reflect the color corresponding to the key feature information in the first image. After determining the local image area that can reflect the color corresponding to the key feature information in the first image, all the pixels in the local image area can be extracted with the help of an image processing tool or a relevant function in a programming language, and the corresponding reference pixels can be screened out, and then the hues of the reference pixels can be calculated.

[0063] Optionally, the first image as a whole may contain multiple colors and complex content. Analyzing all the pixels directly is inefficient and difficult to grasp the key. Selecting a local area can focus on the core color features of the image. For example, in an image of clothes, the color style of the clothes has a great impact on the overall tone of the image. By analyzing the hues of the reference pixels in this local image area, the warm or cool tone tendency of the first image can be obtained. Calculating the hues of the reference pixels is to convert the color information of the reference pixels into quantifiable and comparable values, which is convenient for subsequent analysis. Different color combinations, combined with saturation and brightness, represent different colors. By statistically analyzing these values, the main tone and color distribution of the image can be judged, providing a basis for determining the reference color and subsequent image color processing. For example, if the hues of a large number of pixels are concentrated near orange, it indicates that the image has a warm tone and orange is an important color component. When adjusting the image color or designing the template color scheme, it can be coordinated around orange.

[0064] As an optional but non-limiting implementation solution, determining the hues of at least some reference pixels in the first image includes the following steps A1 - A2:

[0065] Step A1: In response to a selection operation on the target object area in the first image, determine at least some reference pixels included in the target object area in the first image. The target object carries key feature information associated with the first image.

[0066] Step A2: Extract the hue corresponding to at least some reference pixels included in the target object area.

[0067] The target object area can be a specific image area triggered and selected in the first image, and the target object area contains key feature information associated with the first image. For example, in a product promotion picture, the area where the product is located is the target object area, which contains key feature information such as the appearance and details of the product. The reference pixels are pixels selected from the target object area. These reference pixels can be used to analyze the color characteristics of the target object and can represent to a certain extent the color characteristics corresponding to the key feature information associated with the target object area.

[0068] Optionally, the selection operation on the target object area in the first image may include specific operations such as clicking, box-selecting, and gesture operations on the first image to select the target object area containing key feature information. After receiving the selection operation on the target object area in the first image, according to the boundary range of the target object area selected in the first image based on the selection operation, determine the pixels within the target object area, and select at least some of the pixels as reference pixels.

[0069] By using the above method, the analysis object is clearly defined through the selection operation on the first image, focusing on the key feature information. In this way, by using the reference pixels in the selected target object area, the key point of image processing can be placed on the most important part of the image, avoiding interference from other irrelevant areas of the image, and improving the accuracy and efficiency of subsequent analysis and processing.

[0070] Optionally, image processing algorithms and tools can be used to convert the color information of each reference pixel from other color models (such as the RGB model) to a color model containing hue information (such as the HSB color model), and extract the hue value of the reference pixel. Hue is one of the important attributes of color. By extracting the hue of the reference pixel, the color types and distribution of the target object area can be accurately understood, providing a basis for subsequent operations such as determining the reference color of the first image, adjusting the color of the image editing template, and image editing.

[0071] As another optional but non-limiting implementation solution, determining the hue of at least some reference pixels in the first image includes the following steps B1 - B2:

[0072] Step B1: Identify the target object area in the first image, and obtain at least some reference pixels included in the target object area in the first image. The target object carries key feature information associated with the first image.

[0073] Step B2: Extract the hue corresponding to at least some reference pixels included in the target object area.

[0074] Optionally, image recognition technology, such as object detection algorithms based on deep learning (for example, the object detection algorithm can be detection algorithms such as YOLO, Faster R-CNN, etc.), can be used to identify and analyze the first image, which can identify the target object in the image and determine the position and range of the target object in the image, so as to delineate the target object area. After determining the target object area, at least some reference pixels can be selected from the target object area. For example, a certain number of pixels can be evenly selected in the target object area by means of random sampling; or according to the distribution characteristics of the pixels in the target object area, representative pixels can be selectively chosen, such as selecting pixels in edge areas with obvious color changes, areas with complex textures, etc., to ensure that the reference pixels can comprehensively reflect the key features of the target object area.

[0075] Optionally, convert the color information of the reference pixels from the common RGB (Red, Green, Blue) color space to a color space containing hue information, such as the HSB (Hue, Saturation, Brightness) or HSL (Hue, Saturation, Lightness) color space. Because in the RGB color space, the main concern is the mixing ratio of colors, while the HSB or HSL color space can more intuitively separate the hue attribute of colors. In the converted color space, directly extract the hue value corresponding to each reference pixel. Taking the HSB color space as an example, the hue value is usually in the range of 0 - 360 degrees, and different values correspond to different colors. For example, 0 degrees corresponds to red, 120 degrees corresponds to green, 240 degrees corresponds to blue, etc. In this way, the hue information of each reference pixel is obtained from the target object area.

[0076] By identifying the target object area, the attention can be quickly focused on the most important part of the image, avoiding ineffective processing of irrelevant areas, and improving the analysis efficiency and accuracy. Obtaining reference pixels and extracting their hues enables a more in-depth and detailed understanding of the color characteristics of the target object area, providing a basis for subsequent color adjustment, image matching, style analysis, etc. Whether it is image enhancement, image segmentation, or image synthesis tasks, more targeted processing can be carried out based on the analysis of the target object area and hue information, thereby improving the quality and effect of image processing.

[0077] S430: Determine the reference color of the first image based on the hues of at least some reference pixels.

[0078] Among them, the reference color can be used to indicate the base color corresponding to the key feature information included in the first image in the color mode system.

[0079] See Figure 5 , the reference color is one or more colors determined based on the hue of the reference pixels and can indicate the base color corresponding to the key feature information of the first image, which is the key basis for subsequent color matching adjustment of the colors in the image editing template. The reference color provides a foundation and core for the color processing of the first image, ensuring that all color adjustments are made around these base colors during the process of color matching adjustment of the first image editing template, thereby ensuring the consistency and harmony of the image colors. Moreover, the reference color is closely related to the color characteristics corresponding to the key feature information included in the first image. By determining the reference color, the color characteristics of important elements in the first image can be highlighted, making it easier to identify and understand the key feature information that the first image wants to convey.

[0080] Optionally, see Figure 5 , according to the hue of at least some reference pixels in the first image, if in the hue distribution of the reference pixels, there are some reference pixels with a hue whose occurrence frequency is significantly higher than that of other reference pixels with different hues, and the hue of this part of the reference pixels can well represent the overall color style and key feature information of the image, then the hue value of this part of the reference pixels can be directly determined as the reference color. The reference pixels are the pixels in the local image area selected from the first image that can reflect the color style of the image material, and the set of their hue values can effectively summarize the main color characteristics of the image. By analyzing these hue values to determine the reference color, the overall color tendency of the image can be accurately captured, avoiding being affected by some secondary or interfering colors in the image.

[0081] Optionally, see Figure 5 , the first image can contain multiple main colors, reflecting different key feature information. At this time, in addition to the hue corresponding to the pixel with the highest occurrence frequency in the reference pixels, the hues of other reference pixels with relatively higher frequencies also need to be considered, and the reference color that can represent the base color corresponding to the key feature information of the image is determined by combining them. Hue is a basic attribute of color. Determining the reference color based on the hue of the reference pixels makes the whole process quantifiable and standardized. This not only facilitates computer programs to process and analyze, but also in different image processing scenarios, the reference color can be determined based on the same principle and method, improving the stability and repeatability of the image processing process.

[0082] As an optional but non-limiting implementation solution, see Figure 5 , determining the reference color of the first image based on the hue of at least some reference pixels includes the following steps C1 - C2:

[0083] Step C1: Determine the first hue interval to which the hue of each reference pixel among at least some reference pixels belongs.

[0084] Step C2: According to the first hue interval to which the hue of each reference pixel belongs, determine a second hue interval from among at least one first hue interval, where the number of reference pixels belonging to the second hue interval among at least some reference pixels is greater than the number of reference pixels belonging to the first hue intervals other than the second hue interval among at least some reference pixels.

[0085] Step C3: Determine the reference color of the first image based on the hue associated with the second hue interval.

[0086] See Figure 5 , at least one first hue interval can be a pre-set division of the hue range. Specifically, the entire hue range (such as 0 - 360 degrees) can be divided into multiple sub-hue intervals, and each sub-hue interval can be considered a first hue interval for classifying the hue to which the reference pixel belongs. The second hue interval can be a hue interval determined from among multiple first hue intervals, and the number of reference pixels contained within the second hue interval is more than the number of reference pixels within other first hue intervals, representing the hue range where the main color tendency in the first image lies.

[0087] See Figure 5 , for at least some reference pixels selected from the first image, the hue value of each reference pixel can be obtained; then, the hue value of each reference pixel is compared with multiple pre-set first hue intervals to determine the specific first hue interval to which the hue value of each reference pixel belongs. For example, if the pre-set first hue intervals are 0 - 30 degrees, 31 - 60 degrees, 61 - 90 degrees, etc., when the hue value of a reference pixel is 45 degrees, it can be determined that the reference pixel belongs to the first hue interval of 31 - 60 degrees. By classifying the hues of the reference pixels, it is convenient to subsequently count and analyze the distribution of reference pixels within different hue intervals, thereby understanding the distribution characteristics of the colors in the first image in the hue dimension, and thus better obtaining the color tendency in the first image.

[0088] See Figure 5 , count the number of reference pixels contained within each first hue interval. Then, compare the number of reference pixels contained within each first hue interval, find the first hue interval with the largest number of reference pixels contained therein, and determine it as the second hue interval. By determining the second hue interval, the hue range where the dominant color in the first image lies is found, thereby grasping the main color tendency of the first image and providing a key basis for determining the reference color.

[0089] See Figure 5, after determining the second hue range, according to the hue range of this range, select one or more representative hue values to determine the reference color. Specifically, the central hue value of the second hue range can be selected, or according to actual needs, combined with the distribution of hues within this range, select a hue value that can best represent the color characteristics of this range. After determining the hue associated with the second hue range, combine other color attributes (such as saturation, lightness, etc.) to determine the final reference color of the first image.

[0090] Adopting the above solution, through the classification and statistics of the hues of reference pixels, the hue range where the dominant color in the first image is located, that is, the second hue range, can be accurately found. This enables the main color tendency of the first image to be accurately grasped, avoiding interference from secondary colors, and providing a clear direction for subsequent color processing. The reference color plays a core guiding role in subsequent operations such as image editing and color matching adjustment, helps to achieve harmonious color matching, highlights the key feature information of the image, and improves the visual effect and information transmission efficiency of the image.

[0091] Optionally, determining the reference color of the first image based on the hue associated with the second hue range includes: determining the reference color of the first image based on the hue limit values corresponding to the second hue range, a preset default saturation, and a preset default brightness.

[0092] See Figure 5 , the hue limit values corresponding to the second hue range can be the boundary values of the second hue range. For example, if the second hue range is [30°, 60°], 30° and 60° are the hue limit values. The preset default saturation can be a fixed saturation value set in advance, and saturation represents the vividness of the color. The preset default brightness can be a fixed brightness value set in advance, and brightness reflects the brightness of the color.

[0093] See Figure 5 , after determining the hue limit values corresponding to the second hue range, that is, clarifying the starting and ending hue values of the second hue range, the middle value of the second hue range, or the hue average value of the second hue range can be selected, or according to actual needs and the characteristics of the image, select a representative hue value from the hue limit values. Based on this, combined with the preset default saturation and preset default brightness, the selected hue value is combined with the preset saturation and brightness values, and a specific color representation is obtained in the HSB (hue, saturation, brightness) color model, so that the reference color of the first image can be determined.

[0094] By adopting the above method, it is only necessary to determine the reference color quickly based on the hue limit value of the second hue interval and the preset saturation and brightness values, without complex calculations and analyses, which improves the processing efficiency. The preset saturation and brightness values provide a unified standard for color determination, enabling different images to maintain a certain color style consistency during processing, facilitating batch processing and unified design.

[0095] Optionally, determining the reference color of the first image based on the hue associated with the second hue interval includes: calculating the average value of the hues of the reference pixels belonging to the second hue interval to obtain the hue average value, and determining the reference color of the first image according to the hue average value, the preset default saturation, and the preset default brightness.

[0096] The reference pixels belonging to the second hue interval can refer to the reference pixels whose hue values fall within the second hue interval. The result obtained by averaging the hue values of all reference pixels belonging to the second hue interval can more accurately reflect the central tendency of the colors within the second hue interval. Select the pixels with hue values within the second hue interval from all reference pixels. For example, if the second hue interval is [50°, 80°], then select the reference pixels with hue values within this range. Add up the hue values of the selected reference pixels and then divide by the number of pixels to obtain the hue average value. Suppose the hue values of three reference pixels are 55°, 60°, and 65° respectively, then the hue average value is (55 + 60 + 65) / 3 = 60°. Based on this, combined with the preset default saturation and preset default brightness, combine the selected hue value with the pre-set saturation and brightness values, and a specific color representation can be obtained in the HSB (hue, saturation, brightness) color model, thereby determining the reference color of the first image.

[0097] By adopting the above method, by calculating the hue average value, comprehensively considering the hue information of all reference pixels within the second hue interval, it can more accurately represent the color characteristics of the first image in this hue interval, making the reference color more in line with the actual color situation of the image. Compared with determining the reference color only based on the hue limit value, using the hue average value can better adapt to the changes in the color distribution in the image, and can obtain a more reasonable and natural reference color when processing images with more complex colors.

[0098] S440. Perform color matching adjustment on the first image editing template based on the reference color to obtain the second image editing template.

[0099] S450. Edit and process the first image based on the second image editing template and display the second image.

[0100] The technical solution of the embodiment of the present disclosure determines a first image editing template for highlighting the content expressed by key feature information, which can specifically highlight the key content in the first image. Through the image editing template, key feature information such as unique designs and functional highlights in the first image can be made more prominent during display, so that the content expressed by the key feature information in the first image is displayed differently from the entire image, improving the information transmission efficiency; by specifying the reference color of the first image, the reference color of the base color corresponding to the key feature information of the image can be accurately indicated, assisting in reflecting the image color system. According to the reference color, the color matching of the first image editing template is adjusted to make the image editing template match the color of the first image. Using the adjusted second image editing template to edit and display the first image can ensure the overall visual effect of the first image during display to be more coordinated and unified, optimize the image display effect in all aspects, and can be flexibly adjusted according to the characteristics and requirements of different first images to adapt to various scenarios.

[0101] Figure 6 It is a schematic flowchart of another image editing and processing method provided by the embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of obtaining the second image editing template by adjusting the color matching of the first image editing template based on the reference color in the foregoing embodiment. This embodiment can be combined with each optional solution in one or more of the above embodiments.

[0102] As Figure 6 shown, the image editing and processing method of the embodiment of the present disclosure may include the following processes:

[0103] S610. Determine the first image editing template adopted by the first image. The first image editing template is used to highlight the content expressed by the key feature information associated with the first image when the first image is displayed.

[0104] As an optional but non-limiting implementation solution, determining the first image editing template adopted by the first image includes the following steps D1-D2:

[0105] Step D1. Display a plurality of preset image editing templates on the image editing template display page.

[0106] Step D2. In response to the determination operation for at least one preset image editing template, use the preset image editing template triggered by the determination operation as the first image editing template adopted by the first image. The styles and layout positions of the variable-color regions included in each preset image editing template among the plurality of preset image editing templates are different / or the color labels pre-configured and associated with the variable-color regions included in each preset image editing template are different.

[0107] See Figure 7The image editing template display page is a visual interface for interacting with the preset image editing templates, similar to a display platform, which is specifically used to present various preset image editing templates. The preset image editing template can be a pre-set template with specific editing functions and styles, containing a series of predefined editing rules and layout settings, which can be quickly applied to the first image to achieve a specific prominent display effect. For example, some templates are suitable for highlighting product details, and some templates are used to create a retro atmosphere, etc.

[0108] See also Figure 7 , the color-changing area can be a specific area that can change color in a preset image editing template and is pre-selected in the preset image editing template. These color-changing areas are usually closely related to the visual effects to be presented by the image editing template. By changing their colors, the image editing template can be adapted to different first image color requirements. For example, the border, background, decorative elements and other parts in the image editing template can be set as a color-changing area. The style of the color-changing area can refer to the appearance characteristics of the color-changing area, including shape, line style, texture and other aspects. Different styles can give the color-changing area a unique visual experience, such as circular and square color-changing areas, color-changing areas with different line thickness and virtuality, etc., to bring users a variety of visual choices. The layout position of the color-changing area can indicate the specific position of the color-changing area in the preset image editing template. Different layout positions will affect the overall visual center of gravity and information communication effect of the template. For example, the color-changing area at different positions such as the top, bottom, center or edge of the template will guide the line of sight to focus on different places. The color labels associated with the variable color areas can be pre-configured color-related identifiers for each variable color area, similar to color numbers. Different color labels can be used to quickly locate and set the color of the corresponding area, which facilitates color configuration adjustments to the image editing template and achieves different color matching schemes.

[0109] On the image editing template display page, multiple preset image editing templates are displayed in an appropriate manner. These preset image editing templates are presented in a visual form and may be arranged in a list form. Each preset image editing template will display its general appearance, applicable scenarios or key features; it may also be displayed in a grid form to facilitate the overall visual effect of multiple preset image editing templates being browsed at the same time. When one or more preset image editing templates on the display page are subjected to a determination operation (such as a mouse click, touch selection, or other interactive methods), the preset image editing template triggered by the determination operation will be selected as the first image editing template used by the first image. Since the styles and layout positions of the preset image editing templates in the color-changing area are different, or the color labels are different, the template with the highest matching degree can be selected according to the characteristics of the first image (such as theme, color style, elements to be highlighted, etc.).

[0110] By presenting multiple preset image editing templates, a rich selection space is provided, meeting the pursuit of different visual effects. Whether it is the pursuit of a simple style, a gorgeous style, or other specific styles, options that may meet the requirements can be found among numerous templates. Each preset image editing template differs in the style, layout position, or color label of the color-changeable area, enabling targeted selection based on the specific characteristics of the first image. This difference provides a more detailed selection dimension, helping to more accurately select the first image editing template that can prominently present the key feature information of the first image and achieve the ideal display effect. By allowing users to independently select among multiple templates, greater autonomy and control are given to users.

[0111] As another optional but non-limiting implementation solution, determining the first image editing template adopted by the first image includes the following steps:

[0112] Take all the preset image editing templates recommended in the image editing template library as the first image editing template adopted by the first image.

[0113] See Figure 7 , a large number of preset image editing template sets are stored in the image editing template library, containing various types, styles, and uses of preset image editing templates. Based on certain algorithms, rules, or strategies, some templates can be selected from the image editing template library for presentation. After selecting a batch of preset image editing templates that are considered likely to suit the first image editing requirements from the image editing template library, all these recommended preset image editing templates are uniformly classified as the first image editing template adopted by the first image.

[0114] Adopting the above solution, there is no need to screen by oneself in the vast template library, and a batch of potentially applicable image editing templates can be directly recommended, greatly saving the time and effort of finding a suitable template. This is particularly important for those who are not familiar with the characteristics of various templates or need to quickly complete image editing tasks. And since the recommendation is based on certain rules and algorithms, these first image editing templates are highly relevant and applicable to the editing requirements of the first image to a large extent.

[0115] As yet another optional but non-limiting implementation solution, determining the first image editing template adopted by the first image includes the following steps E1 - E3:

[0116] Step E1, identify the target object area in the first image, and obtain at least some reference pixels included in the target object area of the first image. Key feature information associated with the first image is carried on the target object.

[0117] Step E2, extract the saturation and brightness corresponding to at least some reference pixels included in the target object area.

[0118] Step E3: Select the first image editing template used for the first image from multiple preset image editing templates based on the saturation and brightness corresponding to at least some of the reference pixels.

[0119] Using image recognition technology, analyze the first image to determine the target object area containing key feature information. For example, in a picture of an electronic product, use an image recognition algorithm to identify the outline of the electronic product, and then determine the area where the electronic product is located as the target object area. Then, obtain at least some reference pixels from this target object area. Random sampling can be used to evenly select a certain number of pixels in the target object area; or pixels can be selected at positions with obvious color changes or representativeness according to the characteristics of the area to ensure that these reference pixels can better reflect the characteristics of the target object area.

[0120] See Figure 7 , for the obtained reference pixels, with the help of an image processing algorithm, convert their color information from the current color space to a color space containing saturation and brightness information (such as the HSB or HSL color space), and then extract the saturation and brightness values corresponding to each reference pixel. These values quantify the vividness and brightness of the color in the target object area. Based on the saturation and brightness values of the extracted reference pixels, match them with the characteristics of multiple preset image editing templates. Different preset image editing templates have different optimization directions for different color characteristics during design. For example, some templates are suitable for processing images with high saturation and high brightness to further enhance their vivid and bright visual effects; while some templates are good at adjusting images with low saturation and low brightness to present a retro or steady style. By comparing the saturation and brightness values of the reference pixels with the applicable ranges of each preset image editing template, select the first image editing template that is most suitable for the first image.

[0121] By analyzing the saturation and brightness of the reference pixels in the target object area, the first image editing template that matches the color characteristics of the first image can be accurately selected, making the adaptability between the image editing template and the image higher, and avoiding poor editing effects caused by inappropriate selection of the image editing template. Since the target object area carries key feature information, selecting a template based on the color characteristics of this area helps to better highlight these key features in subsequent editing. For example, analyzing and selecting a template for the color characteristics of the product part in a product picture can enable the image editing template to strengthen the visual effect of the product during editing and more effectively convey the key information of the product. Automatically selecting candidate templates according to the color characteristics of the image itself reduces the workload and time cost of manual template screening by the user. There is no need to browse and try numerous preset image editing templates one by one, and a set of possibly suitable templates can be directly provided, improving the efficiency of the entire image editing process.

[0122] As an optional but non-limiting implementation, based on the saturation and brightness corresponding to at least some of the reference pixels, select the first image editing template used for the first image from multiple preset image editing templates, including the following steps E31 - E32:

[0123] Step E31: Based on the saturation and brightness corresponding to at least some of the reference pixels, determine the color system classification of the first image. The color system classification is divided based on the visual effect presented by the saturation and brightness distribution of the pixels in the image.

[0124] Step E32: Select a preset image editing template that matches the color system classification of the first image from multiple preset image editing templates, and use it as the first image editing template used for the first image.

[0125] Saturation is one of the attributes of color, reflecting the vividness of the color. High-saturation colors are vivid and intense, while low-saturation colors are dull and tend to be gray. For example, bright red has a high saturation, while light pink has a relatively low saturation. Brightness refers to the brightness of the color. High-brightness colors are brighter and whiter, while low-brightness colors are darker and blacker. For example, white has a high brightness and black has a low brightness. The color system classification can be a classification of the image based on the overall visual effect presented by the saturation and brightness distribution of the pixels in the image. Different color system classifications have different visual characteristics, such as warm color systems, cold color systems, bright color systems, dull color systems, etc., which helps to generalize the color style of the image.

[0126] See Figure 7 , analyze the saturation and brightness data of at least some of the obtained reference pixels, count the number distribution of pixels in different saturation and brightness intervals, and observe its overall trend. For example, if most of the reference pixels have a high saturation and moderate brightness, it may present a vivid and lively visual effect, and tend to classify the first image as a vivid color system. If more pixels have a low saturation and a low brightness, the visual effect is dull and steady, and it can be classified as a dull color system. Through this analysis of the visual effect presented by the saturation and brightness distribution, determine the color system classification of the first image.

[0127] See Figure 7 , after determining the color system classification of the first image, match the color system classification of the first image with multiple preset image editing templates. When each preset image editing template is designed, it has different optimization directions and applicable characteristics for images of different color systems. For example, the template designed for bright color system images may further enhance the brightness and contrast of the color; for the template of cold color system images, it may adjust the color tone to make it colder and more elegant. According to the color system classification of the first image, select the preset image editing template that matches it, and these selected templates are used as the first image editing template used for the first image.

[0128] By classifying the color system of the first image, it is possible to accurately select a matching template from numerous preset image editing templates according to its color style characteristics. This avoids blind template selection, greatly improves the compatibility between the image editing template and the first image, and makes the subsequent editing effect more in line with expectations. Selecting the template based on color system classification helps to strengthen the original visual style of the first image, and automatically selects the first image editing template according to the color system classification of the first image, reducing the time and effort of manually screening templates. Without having to try each image editing template one by one, it can directly provide a set of templates that match the color style of the image, speeding up the preliminary preparation process of image editing and improving the overall editing efficiency.

[0129] S620. Determine the reference color of the first image. The reference color can be used to indicate the base color corresponding to the key feature information included in the first image in the color mode system.

[0130] S630. Determine the reference color palette associated with the reference color. The reference color palette includes multiple colors obtained by gradually increasing and decreasing the color parameters based on the reference color. The color parameters include hue, saturation, and brightness in the color mode.

[0131] See Figure 8 , the reference color palette can be a series of color sets generated by gradually increasing and decreasing the hue, saturation, and brightness in the color parameters centered on the reference color. It is similar to a color palette containing various related colors, providing rich color choices for image editing. Among them, the color parameters can be the attributes used to define and describe colors in the color mode. Hue determines the type of color, such as red or blue; saturation indicates the vividness of the color; and brightness reflects the brightness of the color.

[0132] See Figure 8 and Figure 9, determine the initial color parameters of the reference color in the HSB color mode, set the adjustment step size of the color parameters, and perform step-by-step incremental and decremental adjustments of the color parameters. Among them, the step-by-step adjustment directions of hue and saturation in the color parameters are opposite to the step-by-step adjustment direction of brightness in the color parameters. That is, centered on the reference color, when performing step-by-step incremental adjustment of hue and saturation in the color parameters, simultaneously perform step-by-step decremental adjustment of brightness in the color parameters; while when performing step-by-step decremental adjustment of hue and saturation in the color parameters, simultaneously perform step-by-step incremental adjustment of brightness in the color parameters. Exemplarily, taking the color parameters corresponding to the reference color as H = 40, S = 100, and B = 30 respectively, H is incremented by 1 step by step, H is incremented by 5 step by step, B is decremented by 15 step by step, and H is decremented by 1 step by step, H is decremented by 5 step by step, B is incremented by 15 step by step, to achieve a series of color sets generated by performing step-by-step incremental and decremental adjustments on hue, saturation, and brightness in the color parameters.

[0133] As an optional but non-limiting implementation solution, determine the reference color palette associated with the reference color, including steps F1 - F2:

[0134] Step F1, generate multiple candidate colors according to the reference items corresponding to the reference color. Among the multiple candidate colors, there are multiple colors formed by performing step-by-step incremental and / or decremental adjustments of the reference items based on the reference items corresponding to the reference color. The reference items correspondingly include hue, saturation, and brightness. The adjustment step sizes used when the hue, saturation, and brightness are incremented step by step and / or decremented step by step increase in sequence. The step-by-step adjustment directions of hue and saturation are opposite to the step-by-step adjustment direction of brightness.

[0135] Step F2, perform a preset screening operation on the multiple candidate colors to obtain several target colors, so as to constitute the reference color palette associated with the reference color. The preset screening operation is used to eliminate some of the multiple candidate colors so that the color difference between adjacent colors among the several target colors is greater than the preset color difference.

[0136] Optionally, starting from the hue, saturation, and brightness corresponding to the reference color, perform step-by-step incremental and decremental adjustments of hue, saturation, and brightness according to the adjustment step sizes associated with each of hue, saturation, and brightness to obtain multiple candidate colors. The adjustment step sizes associated with hue, saturation, and brightness increase in sequence. The step-by-step adjustment directions of hue and saturation are opposite to the step-by-step adjustment direction of brightness. Furthermore, perform a preset screening operation on the multiple candidate colors obtained by step-by-step incremental and decremental adjustments to obtain multiple target colors, and generate the reference color palette associated with the reference color.

[0137] See Figure 8 And Figure 9, the adjustment step can be a fixed value that is increased or decreased each time when adjusting hue, saturation, and brightness step by step. For example, the hue adjustment step is 5 degrees, the saturation adjustment step is 10, the brightness adjustment step is 15, etc., and it is required that the adjustment steps associated with hue, saturation, and brightness increase in sequence. The step-by-step increase and step-by-step decrease adjustments can refer to the operations of gradually increasing and gradually decreasing hue, saturation, and brightness respectively according to the set adjustment steps to generate a series of different colors. A series of colors obtained by performing step-by-step increase and step-by-step decrease adjustments on the hue, saturation, and brightness of the reference color are used to generate the reference color palette. Among them, when performing step-by-step increase adjustments on the hue and saturation in the color parameters with the reference color as the center, the brightness in the color parameters is simultaneously adjusted step by step in a decreasing manner, and when performing step-by-step decrease adjustments on the hue and saturation in the color parameters, the brightness in the color parameters is simultaneously adjusted step by step in an increasing manner.

[0138] See Figure 8 and Figure 9 , the preset screening operation can be a preset rule or algorithm used to screen candidate colors and eliminate colors that do not meet the conditions to ensure that there is sufficient color difference between the target colors after screening. The preset color difference can be a preset standard value for measuring color difference, used to determine whether the difference between two colors is large enough. It can be measured by calculating the distance between colors in the color space. For example, in the HSB color space, the color difference is determined by comprehensively considering the differences in hue, saturation, and brightness. The target colors can be the colors that are retained after the preset screening operation, and these colors will form the reference color palette associated with the reference color. Based on the reference color, a color set composed of multiple screened target colors obtains the reference color palette, providing rich choices for color matching in subsequent image editing.

[0139] By performing step-by-step increase and step-by-step decrease adjustments on hue, saturation, and brightness, a large number of different candidate colors are generated, providing rich materials for subsequent screening, greatly enriching the color diversity, and meeting various complex design requirements. Through the preset screening operation, it is ensured that there is sufficient color difference between adjacent colors in the reference color palette, avoiding visual confusion caused by overly similar colors, enabling the colors in the color palette to be clearly distinguished while maintaining a certain correlation, and facilitating the selection of appropriate colors according to different needs in image editing. The generation of the reference color palette enables the selection of appropriate colors for color matching from a screened and organized color set quickly during the image editing process, without the need to search and compare among a large number of random colors, greatly improving the efficiency and accuracy of color matching.

[0140] S640. Perform color matching adjustment on the first image editing template based on the reference color palette to obtain the second image editing template.

[0141] See Figure 8 and Figure 9 , first analyze each element in the first image editing template that requires color matching, such as the background, text, icons, borders, etc. For the background color of the first image editing template, select a suitable color from the reference color palette according to the overall style of the first image and the atmosphere to be conveyed. If the first image is a fresh-style landscape picture and the reference color is light green, then a light green with slightly lower saturation and slightly higher brightness may be selected from the color palette as the background color to create a fresh and comfortable feeling. For the text color, consider the contrast and readability with the background color. For example, if a lighter color is selected for the background, then a dark text color, such as dark green or dark gray, is selected from the reference color palette to ensure that the text is clearly distinguishable. At the same time, the coordination of the text color with the first image should also be considered to make it not appear obtrusive. For decorative elements such as icons and borders, color matching is also carried out based on the reference color palette. Colors that are similar but have certain differences from the reference color can be selected to increase the layering and visual richness. For example, select a color with slightly higher or lower saturation than the reference color to draw the icons and borders, so that it can be unified with the overall style and highlighted. After completing the color matching adjustment for all elements in the first image editing template, the final second image editing template is obtained.

[0142] By adopting the above method, by generating a reference color palette, a variety of color variations around the reference color are provided for image editing, meeting different scenarios and design requirements, and making the colors used in the image more rich and diverse. Based on the reference color for color adjustment, it is ensured that all colors in the color palette have an internal connection with the key colors of the first image. Therefore, when performing color matching adjustment on the first image editing template, the consistency and coordination of the overall color style can be guaranteed, and the situation of color conflicts can be avoided. Customized color matching adjustment of the first image editing template according to the reference color palette makes the image editing template more suitable for the display requirements of the first image, improves the applicability and pertinence of the image editing template, and helps to better display the content and features of the first image.

[0143] As an optional but non-limiting implementation solution, performing color matching adjustment on the first image editing template based on the reference color palette to obtain the second image editing template includes the following steps H1 - H3:

[0144] Step H1, determine at least one preset color label associated with the first image editing template. The color label is a mark used to distinguish and identify different colors on the color palette.

[0145] Step H2, select the target color matching the preset color label from the reference color palette based on at least one preset color label. Different color labels and the target colors associated and matched with each color label are recorded in the reference color palette.

[0146] Step H3: Based on the target color matched with the preset color label, the first image editing template is color-matched and adjusted to obtain the second image editing template.

[0147] See Figure 10 , at least one preset color label associated in the first image editing template. The preset color label can be a pre-set marker used to distinguish and identify different colors to be used on the first image editing template. Each color label corresponds to a color that the first image editing template needs to use in the color palette. The color labels recorded in the reference color palette are used to distinguish the numerous colors on the reference color palette, so as to accurately operate and manage colors in the image processing process. The reference color palette is a color set generated with the reference color as the core, which details different color labels and the target colors associated and matched with each color label. The reference color palette is a library containing rich and ordered color resources, providing diverse choices for color matching in image editing.

[0148] See Figure 10 , the target color is in the reference color palette, which is the color corresponding to a specific preset color label. These colors are selected from the numerous colors obtained by making a series of adjustments (such as adjusting hue, saturation, and brightness in the previous steps) to the reference color, and are used to color-match and adjust the first image editing template. Based on the first image editing template, after color-matching and adjusting according to the target color selected from the reference color palette, the final editing template is obtained, enabling the image editing template to better adapt to the display requirements of the first image and highlighting the key feature information of the first image.

[0149] See Figure 10 , for the determined preset color label, an exact search is carried out in the reference color palette. The reference color palette is like an ordered color dictionary, and each color label corresponds to a unique target color. Based on the preset color label, quickly locate the target color matched with it, and then extract the target color matched with each preset color label in the first image editing template as the color element for subsequent adjustment of the first image editing template. This matching method based on color labels is efficient and accurate, ensuring the selection of colors that meet the template requirements from the rich reference color palette. Apply the target color matched with the selected preset color label to the first image editing template, and for each element in the template that needs color matching, adjust it according to the target color matched with its corresponding preset color label. Through such operations, a comprehensive color-matching adjustment is made to the first image editing template, making its color combination more in line with the characteristics and display requirements of the first image, thus obtaining the second image editing template.

[0150] Through the cooperation of preset color labels and reference color palettes, precise color selection and application are achieved, avoiding color mismatch problems caused by human subjective judgment or random selection during the color matching process, and ensuring the coordination and consistency between the colors of the image editing template and the first image. Different first image editing templates can be associated with different preset color labels, which makes the templates highly customizable in terms of color selection. Based on the quick matching and application of color labels, the time for color matching adjustment is greatly shortened. There is no need to perform cumbersome comparison and screening among numerous colors, and the process of selecting colors from the reference color palette and applying them to the first image editing template can be quickly completed, improving the efficiency of the entire image editing work.

[0151] Optionally, refer to Figure 10 , the first image editing template includes a plurality of color-changeable regions configured according to preset styles and layout positions. Each color-changeable region is pre-associated with a preset color label for clarifying the color to be used in the color-changeable region. The color-changeable regions are used to carry text prompt content related to the first image and prominently display key feature information associated with the image by combining the colors of the color-changeable regions.

[0152] Refer to Figure 10 , the preset style and layout position can be the pre-set appearance features of the color-changeable regions and their placement positions in the template. The preset style stipulates the shape of the color-changeable regions (such as circular, square, irregular shape, etc.), line thickness, edge effects, etc.; the layout position determines the specific coordinates or relative position relationships of the color-changeable regions in the template, such as positions in the upper left corner, lower right corner of the template, or surrounding the image main body, etc. The color-changeable regions can be specifically set in the first image editing template as regions capable of changing colors. These regions can adjust colors according to the characteristics and requirements of the first image to achieve better visual effects. They are mainly used to carry text prompt content related to the first image and prominently display key feature information associated with the image through the change of their own colors.

[0153] Refer to Figure 10The preset color label can be a pre-configured identifier for each color-changing area, which is used to clarify the color that should be used in the color-changing area. It is like a color index. Through this preset color label, the corresponding color can be quickly found from the color palette or color library, which is convenient for setting the color of the color-changing area during the editing process. The text prompt content can be text information related to the first image. This information is placed in the color-changing area to convey key feature information about the first image, such as product features, usage methods, precautions, etc. The key feature information can be important content closely related to the theme of the first image, such as the unique functions of the product, brand logo, product appearance details, etc., which are the core points that the first image wants to convey. The color adjustment and text prompt content of the color-changing area are centered around these key feature information to enhance its display effect.

[0154] Optionally, different first image editing templates are created according to different image editing requirements and styles. In this process, the preset style and layout position of each color-changing area are determined. For example, in order to highlight a certain function of a product, a circular color-changing area is designed near the product image and is arranged next to the functional display part; at the same time, according to the overall style and color matching scheme of the template, a preset color label is pre-associated with each color-changing area. For example, for a template that emphasizes the high-end quality of a product, the main color-changing area is associated with a color label related to gold that represents calmness and nobility.

[0155] Optionally, when the first image is edited using the first image editing template, the text prompt content that needs to be displayed in the variable color area is first determined based on the key feature information of the first image. For example, for a picture of an electronic product, a text prompt about product performance parameters and unique technology is added to the variable color area. Then, according to the preset color label, a corresponding color is selected from a color palette or a color library to fill the variable color area with color. If the preset color label associated with the variable color area corresponds to blue, the area is filled with blue, thereby completing the setting of the variable color area, so that it can combine color and text content to highlight the key feature information associated with the target object in the first image.

[0156] Through the design of preset styles and layout positions, the color - changeable area can specifically guide the viewer's line of sight, making it focus on the key feature information of the first image. By combining the text - prompt content carried by the color - changeable area with the color, the key feature information of the first image can be conveyed more intuitively and clearly. Color can arouse the emotional resonance of the viewer and enhance the attractiveness of the information, while the text provides specific information content. The two complement each other, improving the information - transmission efficiency. The setting of preset color labels enables the color of the color - changeable area to be quickly changed according to the characteristics and requirements of the image when editing different first images, realizing the personalized customization of the template. Different products or image themes can correspond to different color schemes to meet diverse design needs.

[0157] Optionally, when multiple color - changeable areas configured according to preset styles and layout positions in the first - image editing template are the same but the preset color labels associated with each color - changeable area in the first - image editing template are different, different - colored second - image editing templates can be obtained by performing different color - matching on the same first - image editing template.

[0158] S650. Edit and process the first image based on the second - image editing template and display the second image.

[0159] The technical solution of the embodiments of the present disclosure determines the first - image editing template for highlighting key feature information, which can specifically highlight the key content in the first image. Through the image - editing template, key features such as unique designs and functional highlights in the first image can be made more prominent during display, improving the information - transmission efficiency; by clarifying the reference color of the first image, the basic color corresponding to the key feature information of the image can be accurately indicated, assisting in reflecting the image color system. Adjust the color - matching of the first - image editing template according to the reference color to make the image - editing template match the color of the first image. Using the adjusted second - image editing template to edit and display the first image can, to a greater extent, ensure the overall visual effect coordination and unity when the first image is displayed, optimize the image - display effect in all aspects, and can be flexibly adjusted according to the characteristics and requirements of different first images to adapt to various scenarios.

[0160] Figure 11 FIG. 13 is a schematic structural diagram of an image editing and processing device provided by an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to the situation where key features of a product need to be emphasized and highlighted to convey the core key features of the product when displaying various product pictures. The image editing and processing device can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network - communication functions. The electronic device can be a mobile terminal, a PC, or a server, etc.

[0161] As Figure 11As shown in the figure, the image editing and processing device according to the embodiments of the present disclosure may include the following:

[0162] A first determination module 1110, configured to determine a first image editing template adopted by a first image, where the first image editing template is used to prominently display the content expressed by key feature information associated with the first image when the first image is presented;

[0163] A second determination module 1120, configured to determine a reference color of the first image, where the reference color can be used to indicate a base color corresponding to the key feature information included in the first image in a color mode system;

[0164] A color matching adjustment module 1130, configured to perform color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template;

[0165] An editing and processing module 1140, configured to perform editing and processing on the first image based on the second image editing template and display a second image.

[0166] Based on the above embodiments, optionally, determining the reference color of the first image includes:

[0167] Determining the hue of at least some reference pixels in the first image, where the reference pixels are pixels in a local image area selected from the first image that can reflect the color corresponding to the key feature information in the first image;

[0168] Determining the reference color of the first image based on the hue of the at least some reference pixels.

[0169] Based on the above embodiments, optionally, determining the hue of at least some reference pixels in the first image includes:

[0170] In response to a selection operation on a target object area in the first image, determining at least some reference pixels included in the target object area in the first image, where the target object carries the key feature information associated with the first image;

[0171] Extracting the hue corresponding to at least some reference pixels included in the target object area.

[0172] Based on the above embodiments, optionally, determining the hue of at least some reference pixels in the first image includes:

[0173] Identifying a target object area in the first image and obtaining at least some reference pixels included in the target object area in the first image, where the target object carries the key feature information associated with the first image;

[0174] Extracting the hue corresponding to at least some reference pixels included in the target object area.

[0175] Based on the above embodiments, optionally, determining a reference color of the first image based on the hues of at least some of the reference pixels includes:

[0176] Determining a first hue interval to which the hue of each of the at least some of the reference pixels belongs;

[0177] According to the first hue intervals to which the hues of the respective reference pixels belong, determining a second hue interval from among at least one first hue interval, wherein the number of reference pixels belonging to the second hue interval among the at least some of the reference pixels is greater than the number of reference pixels belonging to the first hue intervals other than the second hue interval among the at least some of the reference pixels;

[0178] Determining the reference color of the first image based on the hue associated with the second hue interval.

[0179] Based on the above embodiments, optionally, determining the reference color of the first image based on the hue associated with the second hue interval includes:

[0180] Determining the reference color of the first image based on the hue limit value corresponding to the second hue interval, a preset default saturation, and a preset default brightness;

[0181] Alternatively, calculating an average value of the hues of the reference pixels belonging to the second hue interval to obtain a hue average value, and determining the reference color of the first image based on the hue average value, the preset default saturation, and the preset default brightness.

[0182] Based on the above embodiments, optionally, performing color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template includes:

[0183] Determining a reference color palette associated with the reference color, wherein the reference color palette includes a plurality of colors obtained by performing step-by-step incremental adjustment and step-by-step decremental adjustment of color parameters based on the reference color, and the color parameters include hue, saturation, and brightness in a color model;

[0184] Performing color matching adjustment on the first image editing template based on the reference color palette to obtain a second image editing template.

[0185] Based on the above embodiments, optionally, determining the reference color palette associated with the reference color includes:

[0186] Generate a plurality of candidate colors according to the reference item corresponding to the reference color. Among the plurality of candidate colors, there are presented a plurality of colors formed by successively adding and / or decreasing the reference item based on the reference item corresponding to the reference color. The reference item correspondingly includes hue, saturation, and brightness. When performing the successive addition and / or successive decrease, the adjustment step sizes adopted by the hue, saturation, and brightness increase in sequence, and the successive adjustment directions of the hue and saturation are opposite to the successive adjustment direction of the brightness;

[0187] Perform a preset screening operation on the plurality of candidate colors to obtain a number of target colors, so as to constitute a reference color palette associated with the reference color. The preset screening operation is used to eliminate some of the plurality of candidate colors so that the color difference between adjacent colors among the number of target colors is greater than a preset color difference.

[0188] Optionally, on the basis of the above embodiments, perform color matching adjustment on the first image editing template based on the reference color palette, including:

[0189] Determine at least one preset color label associated with the first image editing template. The color label is a mark used to distinguish and identify different colors on the color palette;

[0190] Select, from the reference color palette, the target color that matches the preset color label based on the at least one preset color label. Different color labels and the target colors associated and matched with each color label are recorded in the reference color palette;

[0191] Perform color matching adjustment on the first image editing template based on the target color that matches the preset color label to obtain a second image editing template.

[0192] Optionally, on the basis of the above embodiments, the first image editing template includes a plurality of variable-color regions configured according to a preset style and layout position. Each variable-color region is pre-associated with a preset color label for clarifying the color that the variable-color region should use. The variable-color region is used to carry text prompt content related to the first image and highlight key feature information associated with the image in combination with the color of the variable-color region.

[0193] Optionally, on the basis of the above embodiments, determine the first image editing template adopted by the first image, including:

[0194] Display a plurality of preset image editing templates on the image editing template display page;

[0195] In response to a determination operation for at least one preset image editing template, the preset image editing template triggered by the determination operation is used as the first image editing template adopted by the first image. The styles and layout positions of the color-changeable regions included in each preset image editing template among the multiple preset image editing templates are different, and / or the color labels pre-configured and associated with the color-changeable regions included in each of the preset image editing templates are different.

[0196] Based on the above embodiments, optionally, determining the first image editing template adopted by the first image includes:

[0197] Using all the preset image editing templates recommended and provided in the image editing template library as the first image editing template adopted by the first image.

[0198] Based on the above embodiments, optionally, determining the first image editing template adopted by the first image includes:

[0199] Identifying the target object region in the first image, and obtaining at least some reference pixels included in the target object region of the first image. The target object carries key feature information associated with the first image;

[0200] Extracting the saturation and brightness corresponding to at least some reference pixels included in the target object region;

[0201] Selecting, from multiple preset image editing templates, the first image editing template adopted by the first image based on the saturation and brightness corresponding to the at least some reference pixels.

[0202] Based on the above embodiments, optionally, selecting, from multiple preset image editing templates, the first image editing template adopted by the first image based on the saturation and brightness corresponding to the at least some reference pixels includes:

[0203] Based on the saturation and brightness corresponding to the at least some reference pixels, determining the color system classification of the first image. The color system classification is divided based on the visual effect presented by the saturation and brightness distribution of the pixels in the image;

[0204] Selecting, from multiple preset image editing templates, a preset image editing template adapted to the color system classification of the first image, and using it as the first image editing template adopted by the first image.

[0205] The technical solution of the embodiment of the present disclosure determines a first image editing template for highlighting the content to be expressed of key feature information, which can specifically highlight the key content in the first image. Through the image editing template, key feature information such as unique designs and functional highlights in the first image can be made more prominent during display, so that the content expressed by the key feature information in the first image is displayed differently from the entire image, improving the information transmission efficiency; by specifying the reference color of the first image, the reference color of the base color corresponding to the key feature information of the image can be accurately indicated, assisting in reflecting the image color system, adjusting the color matching of the first image editing template according to the reference color, making the image editing template fit the color of the first image, and using the adjusted second image editing template to edit and display the first image can ensure the overall visual effect of the first image is more coordinated and unified during display to optimize the image display effect in all aspects, and can be flexibly adjusted according to different characteristics and requirements of the first image to adapt to various scenarios.

[0206] The image editing and processing device provided by the embodiment of the present disclosure can execute the image editing and processing method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the image editing and processing method.

[0207] It should be noted that the various units and modules included in the above device are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present disclosure.

[0208] Figure 12 FIG. is a schematic structural diagram of an electronic device for implementing an image editing and processing method provided by an embodiment of the present disclosure. The following refers to Figure 12 , which shows a schematic structural diagram of an electronic device 1200 suitable for implementing the embodiment of the present disclosure (such as Figure 12 the terminal device or server in). The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 12 The electronic device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present disclosure.

[0209] As Figure 12As shown, the electronic device 1200 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 1201, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 into a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the electronic device 1200 are also stored. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An editing / output (I / O) interface 1205 is also connected to the bus 1204.

[0210] Generally, the following devices may be connected to the I / O interface 1205: an input device 12012 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 12 the electronic device 1200 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0211] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program codes for executing the image editing processing method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the image editing processing method of the embodiment of the present disclosure are executed.

[0212] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0213] The electronic device provided by the embodiment of the present disclosure and the image editing processing method provided by the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment may be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0214] An embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, the image editing and processing method provided in the above embodiment is implemented.

[0215] It should be noted that the computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0216] In some embodiments, the client and the server may communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with digital data communication in any form or medium (for example, a communication network). Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0217] The above computer-readable medium may be included in the above electronic device; or it may exist separately and not be assembled into the electronic device.

[0218] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: determine a first image editing template adopted by a first image, where the first image editing template is used to prominently display the content expressed by key feature information associated with the first image when the first image is presented; determine a reference color of the first image, where the reference color can be used to indicate the base color corresponding to the key feature information included in the first image in a color mode system; perform color matching adjustment on the first image editing template based on the reference color to obtain a second image editing template; and perform editing processing on the first image based on the second image editing template and display a second image.

[0219] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0220] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0221] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. Among them, the name of a unit does not constitute a limitation on the unit itself in some cases. For example, the first acquisition unit can also be described as "the unit for acquiring at least two Internet protocol addresses".

[0222] The functions described above herein can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0223] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM or Flash memory), an optical fiber, a portable Compact Disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0224] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features having similar functions disclosed in the present disclosure.

[0225] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0226] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An image editing method, characterized in that: The method comprises: Determining a first image editing template used by the first image, wherein the first image editing template is used to highlight content expressed by key feature information associated with the first image when the first image is displayed; Determine a reference color of the first image, where the reference color can be used to indicate a basic color corresponding to key feature information included in the first image in a color mode system; Adjusting the color of the first image editing template based on the reference color to obtain a second image editing template; The first image is edited based on the second image editing template and the second image is displayed.

2. The method according to claim 1, characterized in that Determining a reference color of the first image, including: Determine the hue of at least part of the reference pixels in the first image, where the reference pixels are pixels of a local image area selected from the first image that can reflect the color corresponding to the key feature information in the first image; A reference color of the first image is determined based on the hue of the at least part of the reference pixels.

3. The method according to claim 2, characterized in that Determining the hue of at least some of the reference pixels in the first image includes: In response to a selection operation on a target object region in a first image, determining at least a portion of reference pixels included in the target object region in the first image, the target object carrying key feature information associated with the first image; The hue corresponding to at least part of the reference pixels included in the target object area is extracted.

4. The method according to claim 2, characterized in that: Determining the hue of at least some of the reference pixels in the first image includes: Identify a target object region in a first image, and obtain at least a portion of reference pixels included in the target object region in the first image, wherein the target object carries key feature information associated with the first image; The hue corresponding to at least part of the reference pixels included in the target object area is extracted.

5. The method according to claim 2, characterized in that: Determining a reference color of the first image based on the hue of at least part of the reference pixels includes: Determining a first hue interval to which the hue of each reference pixel in the at least part of the reference pixels belongs; Determine a second hue interval from at least one first hue interval according to the first hue interval to which the hue of each reference pixel belongs, wherein the number of reference pixels belonging to the second hue interval in at least some of the reference pixels is greater than the number of reference pixels belonging to the first hue interval excluding the second hue interval in at least some of the reference pixels; A reference color of the first image is determined based on the hue associated with the second hue interval.

6. The method according to claim 5, characterized in that Determining a reference color of the first image based on the hue associated with the second hue interval includes: determining a reference color of the first image based on a hue limit value corresponding to the second hue interval, a preset default saturation, and a preset default brightness; Alternatively, the hues of the reference pixels belonging to the second hue interval are averaged to obtain a hue mean, and the reference color of the first image is determined according to the hue mean, a preset default saturation, and a preset default brightness.

7. The method according to claim 1, characterized in that Adjusting the color of the first image editing template based on the reference color to obtain a second image editing template includes: Determine a reference color palette associated with the reference color, wherein the reference color palette includes a plurality of colors obtained by adjusting color parameters step by step and step by step based on the reference color, wherein the color parameters include hue, saturation and brightness in a color mode; The first image editing template is color-adjusted based on the reference color palette to obtain a second image editing template.

8. The method according to claim 7, characterized in that Determining a reference color palette associated with the reference color includes: Generate a plurality of candidate colors according to the reference item corresponding to the reference color, wherein the plurality of candidate colors include a plurality of colors formed by adjusting the reference item step by step and / or step by step based on the reference item corresponding to the reference color, wherein the reference item includes hue, saturation and brightness, and the adjustment steps of the hue, saturation and brightness when the step by step addition and / or step by step reduction are performed are successively increased, and the step by step adjustment direction of the hue and saturation is opposite to the step by step adjustment direction of the brightness; A preset screening operation is performed on the multiple candidate colors to obtain several target colors to form a reference color palette associated with the reference color. The preset screening operation is used to eliminate some colors from the multiple candidate colors so that the color difference between adjacent colors in the several target colors is greater than the preset color difference.

9. The method according to claim 7, characterized in that: The method of adjusting the color matching of the first image editing template based on the reference color palette to obtain a second image editing template includes: Determining at least one preset color label associated with the first image editing template, wherein the color label is a mark used to distinguish and identify different colors on a color palette; Based on the at least one preset color label, a target color matching the preset color label is selected from the reference color palette, wherein the reference color palette records different color labels and target colors associated with each color label; Based on the target color matched by the preset color label, the first image editing template is color-adjusted to obtain a second image editing template.

10. The method according to claim 9, characterized in that The first image editing template includes a plurality of variable color areas configured according to a preset style and layout position, each of the variable color areas is pre-associated with a preset color label for clarifying the color that the variable color area should use, and the variable color area is used to carry text prompt content related to the first image and highlight key feature information associated with the image in combination with the color of the variable color area.

11. The method according to claim 1, characterized in that Determining a first image editing template used by the first image includes: Displaying multiple preset image editing templates on the image editing template display page; In response to a determination operation on at least one preset image editing template, the preset image editing template triggered by the determination operation is used as the first image editing template adopted for the first image, and the styles and layout positions of the variable color areas included in each of the multiple preset image editing templates are different / or the pre-configured associated color labels of the variable color areas included in each of the preset image editing templates are different.

12. The method according to claim 1, characterized in that Determining a first image editing template used by the first image includes: All the preset image editing templates recommended and provided in the image editing template library are used as the first image editing templates adopted by the first image.

13. The method according to claim 1, characterized in that Determining a first image editing template used by the first image includes: Identify a target object region in a first image, and obtain at least a portion of reference pixels included in the target object region in the first image, wherein the target object carries key feature information associated with the first image; Extracting saturation and brightness corresponding to at least part of the reference pixels included in the target object area; A first image editing template used by the first image is selected from a plurality of preset image editing templates based on the saturation and brightness corresponding to at least part of the reference pixels.

14. The method according to claim 13, characterized in that Selecting a first image editing template used by the first image from a plurality of preset image editing templates based on the saturation and brightness corresponding to at least part of the reference pixels includes: Determining a color classification of the first image based on the saturation and brightness corresponding to at least part of the reference pixels, wherein the color classification is divided based on a visual effect presented by a distribution of saturation and brightness corresponding to pixels in the image; A preset image editing template that is adapted to the color classification of the first image is selected from a plurality of preset image editing templates and used as a first image editing template used for the first image.

15. An image editing and processing device, characterized in that: The device comprises: A first determination module is used to determine a first image editing template used by the first image, wherein the first image editing template is used to highlight the content expressed by the key feature information associated with the first image when the first image is displayed; A second determination module is used to determine a reference color of the first image, where the reference color can be used to indicate a basic color corresponding to key feature information included in the first image in a color mode system; A color matching adjustment module, configured to adjust the color matching of the first image editing template based on the reference color to obtain a second image editing template; An editing and processing module is used to edit the first image based on the second image editing template and display the second image.

16. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the image editing processing method described in any one of claims 1-14.

17. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the image editing processing method described in any one of claims 1-14 when executed by a computer processor.