Image processing methods, apparatus, devices, computer-readable storage media, and products
The image processing method allows users to select target color cards for decorative materials, addressing the limitations of single color adjustment in existing methods by enhancing the display effect through personalized color adjustments.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-05-20
- Publication Date
- 2026-07-07
AI Technical Summary
Current image color adjustment methods require adjusting each partial area of an image individually, leading to a single and ineffective color combination effect for the entire image.
An image processing method that allows users to select a target color card from multiple categories, each containing different colors, to adjust decorative materials in an image, thereby enhancing the display effect to meet personalization needs.
Enables rapid and efficient color adjustment of decorative elements in images, optimizing the display effect to better match user preferences through simple interface interactions.
Smart Images

Figure 2026522212000001_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application filed on May 23, 2023, with the invention title "Image Processing Method, Apparatus, Device, Computer-readable Storage Medium, and Product" and application number 2023105937221, and the entire content disclosed in the above patent application is incorporated herein by reference.
[0002] Embodiments of the present invention relate to the field of interface interaction technology, and in particular, to an image processing method, apparatus, device, computer-readable storage medium, and product.
Background Art
[0003] In order to achieve a high-quality display effect with an image, a user generally needs to perform operations such as color adjustment on the image.
[0004] However, the current color adjustment operation can only adjust the color of each partial area of the entire image one by one based on content such as the color selected by the user. As a result, the effect of image processing becomes more single, and the color combination effect of different materials for the entire image cannot be realized.
Summary of the Invention
Means for Solving the Problems
[0005] Embodiments of the present invention provide an image processing method, apparatus, device, computer-readable storage medium, and product for solving the technical problem that the adjustment effect of the existing image color adjustment method is more single.
[0006] In a first embodiment, an embodiment of the present invention provides an image processing method, the method comprising: displaying an image processing page, the image processing page comprising an image to be processed and predetermined processing controls, the image to be processed comprising at least one image material and decorative material; displaying a color processing page in response to a trigger operation on the processing controls, the color processing page comprising at least one color processing category, at least some of the color processing categories comprising at least one color card consisting of different colors; determining a target color card selected by the user in response to a selection operation on the color processing page; and performing an adjustment operation on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0007] In a second embodiment, an embodiment of the present invention provides an image processing apparatus, the apparatus comprising: a display module for displaying an image processing page, the image processing page including an image to be processed and a predetermined processing control, the image to be processed comprising at least one image material and a decorative material; a display module for displaying a color processing page in response to a trigger operation on the processing control, the color processing page including at least one color processing category, at least some of the color processing categories including at least one color card consisting of different colors; a determination module for determining a target color card selected by the user in response to a selection operation by the user on the color processing page; and an adjustment module for performing an adjustment operation on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0008] In a third embodiment, an embodiment of the present invention provides an electronic device comprising a processor and a memory, the memory storing computer execution instructions, and the processor causing at least one processor to perform the image processing method described in the first embodiment and various possible designs of the first embodiment by executing the computer execution instructions stored in the memory.
[0009] In a fourth embodiment, an embodiment of the present invention provides a computer-readable storage medium in which computer execution instructions are stored, and when the computer execution instructions are executed by a processor, an image processing method described in the first embodiment and various possible designs thereof is realized.
[0010] In a fifth embodiment, an embodiment of the present invention provides a computer program product including a computer program, where, when the computer program is executed by a processor, an image processing method described in the first embodiment and various possible designs of the first embodiment is realized.
[0011] To more clearly describe embodiments of the present invention or prior art technical solutions, the following briefly introduces the drawings that may be used to illustrate the embodiments or prior art. Clearly, the drawings in the following description are some embodiments of the present invention, and for a general technician in the art, other drawings can be derived based on these without requiring any creative effort. [Brief explanation of the drawing]
[0012] [Figure 1] This is a schematic flowchart of the image processing method provided by an embodiment of the present invention.
[0013] [Figure 2] This is a schematic diagram of an interface interaction provided by an embodiment of the present invention.
[0014] [Figure 3]It is a schematic flowchart of an image processing method provided by another embodiment of the present invention.
[0015] [Figure 4] It is a schematic diagram of another interface interaction provided by an embodiment of the present invention.
[0016] [Figure 5] It is a schematic diagram showing an interface provided by an embodiment of the present invention.
[0017] [Figure 6] It is a schematic flowchart of an image processing method provided by another embodiment of the present invention.
[0018] [Figure 7] It is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present invention.
[0019] [Figure 8] It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
Embodiments for Carrying Out the Invention
[0020] In order to more clearly clarify the objectives, technical solutions, and advantages of the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are not all of the embodiments of the present invention, but some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments that can be obtained by those of ordinary skill in the art without creative effort shall fall within the protection scope of the present invention.
[0021] In order to solve the technical problem that the adjustment effect of the conventional image color adjustment method is more single, the present invention provides an image processing method, apparatus, device, computer-readable storage medium, and product.
[0022] It should be noted that the image processing method, apparatus, device, computer-readable storage medium, and product provided by the present invention can be applied to any application scenario that performs local color adjustment on an image.
[0023] Current image color processing methods generally require a user to select a corresponding filter according to actual needs and perform global color processing on the image. However, the display effect of the obtained image cannot meet the personalized needs of the user.
[0024] In the process of solving the above technical problems, the inventors of the present invention found through research that when a pixel material and a decoration material are included in the image to be processed, in order to realize the target color adjustment of the decoration material and make the color adjustment result match the personalized needs of the user, a plurality of different color processing categories each including at least one color card composed of different colors can be preset. Thereby, the user can select a corresponding target color card according to actual needs and perform color adjustment on the decoration material based on the target color card. In some embodiments, the color scheme in the target color card may be harmonious colors, whereby the display effect of the target image can be improved after performing color adjustment based on the target color card.
[0025] Furthermore, the image to be processed and a processing control can be displayed on an image processing page. In response to a user's trigger operation on the processing control, a predetermined color processing page is displayed, and the above plurality of color cards can be displayed on the color processing page. In response to a user's selection operation on the color processing page, the target color card selected by the user is determined. An adjustment operation is performed on the color of the decoration material associated with the image to be processed based on the target color card to obtain a target image. Thereby, the user can realize the adjustment of the image color through simple interface interaction operations, and the efficiency of image color adjustment is improved.
[0026] Figure 1 is a schematic flowchart of an image processing method provided by an embodiment of the present invention, which may include the following steps, as shown in Figure 1.
[0027] In step 101, an image processing page is displayed, and in some embodiments, the image processing page includes an image to be processed and predetermined processing controls, wherein the image to be processed consists of at least one image material and decorative material.
[0028] The implementing body of this embodiment is an image processing device, which is coupled to a terminal device, thereby enabling image color adjustment operations based on user trigger operations on the terminal device. In some embodiments, the image processing device may also be coupled to a server. The server is communicatively connected to the terminal device, thereby acquiring image processing operations triggered by the user on the terminal device, adjusting the image color based on those image processing operations, and controlling the terminal device to display the adjusted target image.
[0029] In this embodiment, an image processing page can be displayed in the display interface, and in some embodiments, the image processing page includes an image to be processed and predetermined processing controls. The image to be processed may be selected by the user on the terminal device according to the actual needs, or it may be generated by the user based on at least one provided image material. In some embodiments, the image to be processed consists of at least one image material and decorative material, the decorative material including at least one of background decoration, text decoration, and pattern decoration.
[0030] To better match the display effect of the processed image to the user's personalization needs, after obtaining the image to be processed, the system supports further adjustments to the image's color according to the user's actual needs. Therefore, processing controls can be pre-configured on the image processing page, and the user can perform image processing operations based on these controls.
[0031] As a practical application example, the image to be processed may be a poster corresponding to a specific item. The poster may include at least one image corresponding to the item, and a text description corresponding to the item. Furthermore, to enhance the image effect, the poster may include additional content such as pattern decorations.
[0032] In step 102, in response to a trigger operation on the processing control, a color processing page is displayed, and in some embodiments, the color processing page includes at least one color processing category, and at least some of the color processing categories include at least one color card consisting of different colors.
[0033] In this embodiment, after displaying the image processing page, a color processing page can be displayed in response to a user trigger operation on the processing controls on the image processing page. Within the color processing page, the user can perform adjustment operations on the color of the image to be processed.
[0034] The color processing page includes at least one color processing category, and at least some of the color processing categories include at least one color card consisting of different colors.
[0035] In practical applications, the color processing categories may include gradient color categories, user-recently used color processing categories, and recommended color processing categories. In some embodiments, the gradient color category may include color cards consisting of gradient colors corresponding to different colors. The recently used color processing category may include at least one color card used by the user within a given time range. The recommended color processing category may include recommended color cards consisting of a predetermined set of harmonious colors.
[0036] Step 103: In response to the user's selection operation on the color processing page, the target color card selected by the user is determined.
[0037] In this embodiment, the user performs a selection operation for at least one color processing category and determines a target color card according to their actual needs.
[0038] In some embodiments, the user can determine the target color card through a predetermined trigger operation on any color card. In some embodiments, this predetermined trigger operation includes, but is not limited to, operations such as clicking, double-clicking, and long-pressing.
[0039] In step 104, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the target color card to obtain the target image.
[0040] In this embodiment, after determining the target color card, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the target color card, thereby obtaining the target image.
[0041] Continuing from the above example, if the image to be processed is a poster, the background color, text decoration color, and pattern decoration color of the poster can be adjusted to the colors in the target color card selected by the user, without having to adjust the image material itself. This enables rapid color adjustment of decorative elements and allows the adjustment results to better match the user's personalization needs.
[0042] Furthermore, based on any of the above embodiments, after step 102,
[0043] The further includes switching and displaying color cards corresponding to different color processing categories in response to the user's sliding operation in a predetermined direction within the color processing page.
[0044] In this embodiment, there may be multiple color processing categories, and it is not possible to display all of them on the color processing page. Therefore, in order to enable viewing of color cards corresponding to a larger number of color processing categories, the display of color cards corresponding to different color processing categories can be switched in response to the user's sliding operation in a predetermined direction on the color processing page. This allows the user to flexibly switch the page display content according to their actual needs.
[0045] Figure 2 is a schematic diagram of the interface interaction provided by an embodiment of the present invention. As shown in Figure 2, the image processing page 21 may display an image to be processed 22 and a predetermined processing control 23. In response to a user trigger operation on the processing control, a color processing page 24 may be displayed. In some embodiments, the color processing page 24 includes at least one color processing category 25, each color processing category 25 including at least one color card 26 consisting of different colors. The user can switch between color processing categories 25 by sliding up and down or left and right on the color processing page 24.
[0046] The image processing method provided by this embodiment allows a color processing page to be displayed through a trigger operation on a predetermined processing control on the image processing page. On this color processing page, multiple color processing categories are displayed, and in some embodiments, at least some of the color processing categories are associated with color cards. This allows the user to select a target color card according to their actual needs and perform individual targeted adjustments on decorative materials in the image to be processed based on at least one color within that target color card. This optimizes the display effect of the adjusted target image and enables color adjustments that better meet the user's personalization needs. Furthermore, the user can perform image color adjustments through simple interface interaction operations, improving the efficiency of image color adjustment.
[0047] Figure 3 is a schematic flowchart of an image processing method provided by another embodiment of the present invention, and based on any of the above embodiments, the color processing page further includes a color card addition control. As shown in Figure 3, after step 102, the following steps are further included.
[0048] In step 301, in response to a trigger operation on the color card add control, the system enters the color card color extraction page, and in some embodiments, the color card color extraction page includes an image upload control.
[0049] In step 302, a color-extracted image is obtained in response to a trigger operation on the image upload control.
[0050] In step 303, the color information within the color-extracted image is identified.
[0051] In step 304, a color extraction color card is generated based on the color information identification result.
[0052] In step 305, the color extraction color card is displayed on the color processing page.
[0053] In this embodiment, the color card processing category may specifically include a first color processing category, and in some embodiments, the first color category may include a color card corresponding to an image generated by the user. This allows the color of the image to be processed to be adjusted to the color corresponding to the image generated by the user, based on the color card corresponding to the first color processing category.
[0054] In some embodiments, the color processing page further includes a color card addition control. In response to a user trigger operation on the color card addition control, a color extraction image generated by the user is obtained. In some embodiments, the color extraction image may be captured by the user in real time or selected and uploaded by the user from a predetermined save path; however, the present invention is not limited thereto.
[0055] Furthermore, after obtaining a color-extracted image, the color information within the image can be identified, and the identification result can be obtained. Based on the identification result, a color-extracted color card corresponding to the color-extracted image is generated, and the color-extracted color card corresponding to the color-extracted image is displayed on the color processing page.
[0056] As a feasible implementation, to enable the addition of color cards to the first color processing category, a color card addition page can be displayed in response to a user trigger operation on the color card addition control. In some embodiments, the color card addition page displays a color palette, a hue slider bar, a color value input control, and a color display control. The user can customize different colors based on the hue slider bar and color value input control. The user generates a customized color card based on at least one customized color.
[0057] The image processing method provided by this embodiment acquires a color-extracted image generated by the user in response to a user trigger operation on an additional control, and generates a color card based on the color-extracted image, so that the user can adjust the colors of the image to be processed to match the colors of the color-extracted image. The display effect of the adjusted target image is then tailored to the user's personalization needs. Furthermore, the user does not need to adjust the colors themselves, enabling rapid image color adjustment operations.
[0058] Furthermore, based on any of the above embodiments, after step 302,
[0059] The method further includes displaying the color extraction image in a first display area of the color card color extraction page, and displaying the color extraction color card associated with the color extraction image in a second display area of the color card color extraction page.
[0060] In this embodiment, in order to allow the user to view the currently generated color extraction image and its associated color information more intuitively in the display interface, a predetermined color card color extraction page can be displayed after performing color identification on the color extraction image. The color extraction image is displayed in the first display area of the color card color extraction page, and the color extraction color card associated with the color extraction image is displayed in the second display area of the color card color extraction page.
[0061] In some embodiments, the first and second display areas may be distributed horizontally or vertically, or the second display area may be displayed within the first display area in a picture-in-picture manner. The first and second display areas may have the same display size, or the display size of the second display area may be smaller than that of the first display area. In a feasible form, the user can adjust the display position and display size of the first and second display areas according to their actual needs, and the present invention does not limit the display position or display size of the first and second display areas.
[0062] Figure 4 is a schematic diagram of another interface interaction provided by an embodiment of the present invention, where, as shown in Figure 4, the color processing page 41 includes a color card addition control 42 associated with a first color processing category. In response to a user trigger operation on the color card addition control 42, a user-generated color extraction image 43 can be obtained. The color information in the color extraction image 43 is identified. The color extraction image 43 is displayed in a first display area of the color card color extraction page 44, and the color extraction color card 45 associated with the color extraction image is displayed in a second display area of the color card color extraction page 44.
[0063] The image processing method provided by this embodiment displays the color-extracted image in a first display area on the color card color extraction page and displays the color extraction color card associated with the color-extracted image in a second display area on the color card color extraction page. This allows the user to view the currently generated color-extracted image and its associated color extraction color card more intuitively in the display interface, thereby improving the user experience.
[0064] Furthermore, based on any of the above embodiments, the first display area further includes a predetermined switching control. The method further includes, in response to a trigger operation on the switching control, acquiring a color extraction switching image, switching and displaying the color extraction switching image in the first display area, identifying color information in the color extraction switching image, and displaying a color extraction color card of the color extraction switching image in the second display area.
[0065] In this embodiment, after performing color identification on a color-extracted image and obtaining a corresponding color-extracted color card, the user can switch the color-extracted image according to their actual needs, thereby better matching the final generated color-extracted color card to the user's personalization needs.
[0066] In some embodiments, the first display area further includes a predetermined switching control. In response to a user trigger operation on the switching control, a user-generated color extraction switching image can be acquired, and the color extraction switching image can be switched and displayed within the first display area. In some embodiments, the color extraction switching image may be captured by the user in real time, or it may be selected and uploaded by the user from a predetermined save path, and the present invention is not limited thereto.
[0067] The color information within the color extraction switching image is identified, and the color extraction color card within the switching image is displayed in the second display area. In some embodiments, the method for identifying the color of the switching image is the same as the method for identifying the color of the color extraction image, and the present invention is not limited thereto.
[0068] The image processing method provided by this embodiment allows users to set a switching control, enabling them to more flexibly switch between color-extracted images based on the switching control. This ultimately improves the user experience by better matching the generated color-extracted color cards to the user's personalization needs.
[0069] Furthermore, based on any of the above embodiments, the color extraction color card associated with the color extraction image is displayed in a second display area of the color card color extraction page, and then, in response to the user's trigger operation on any of the target color information in the color extraction color card, a color editing page associated with the target color information is displayed, in some embodiments the color editing page includes a color palette, a hue slider bar, a color value input control, and a color display control.
[0070] In the color editing color page, in response to an editing operation triggered by the user based on the hue slider bar and / or the color value input control, an editing operation is performed on the target color information.
[0071] In this embodiment, the user can perform personalized editing operations on any of the colors within the color extraction color card corresponding to the color extraction image, according to their actual needs, thereby making the final generated color extraction color card more closely match the user's personal needs.
[0072] In some embodiments, a color editing page associated with a target color can be displayed in response to a user trigger operation on any of the target color information. In some embodiments, the color editing page includes a color palette, a hue slider bar, a color value input control, and a color display control. The user can perform editing operations on the color based on the hue slider bar and / or the color value input control. The editing operation is performed on the target color information in response to an editing operation triggered by the user based on the hue slider bar and / or the color value input control on the color editing page.
[0073] For example, a user can input specific color value information through a color value input control and determine the color to be edited based on that information. Alternatively, a user can perform editing operations on target color information by sliding a hue slider bar in the color palette. Or, the two implementation methods described above can be combined. For example, a user can input specific color value information through a color value input control and display the color corresponding to that information in the color palette. The user can further interact with the color palette via a slider bar to determine a color that better matches their personal needs.
[0074] The image processing method provided by this embodiment can display a color editing page associated with a target color information based on a user's trigger operation on any of the target color information in a color extraction color card. This allows the user to perform editing operations on the target color information on the color editing page, thereby better matching the color information in the color card to the user's actual needs and obtaining higher quality image processing effects based on the color card.
[0075] Furthermore, based on any of the above embodiments, the color card color extraction page further includes predetermined generation controls.
[0076] Displaying the color extraction color card on the color processing page includes displaying the color extraction color card on the color processing page in response to the user's trigger operation on the generation control.
[0077] In this embodiment, the color card color extraction page further includes predetermined generation controls. After displaying the color extraction image and its corresponding color extraction color card, if the current color extraction color card meets the user's actual needs, the user can, through a trigger operation on the generation control, display the color extraction color card for the user to select on the color processing page.
[0078] Figure 5 is a schematic diagram showing an interface provided by an embodiment of the present invention. As shown in Figure 5, a color extraction image 52 is displayed in the first display area of the color card color extraction page 51, and a color extraction color card 53 associated with the color extraction image is displayed in the second display area of the color card color extraction page 51. The color card color extraction page 51 further includes a predetermined generation control 54. The user can display the color extraction color card for selection on the color processing page through a trigger operation on the generation control 53.
[0079] The image processing method provided by this embodiment allows for the rapid display of color extraction color cards on the color processing page based on pre-configured generation controls, thereby enriching the image processing interaction method and simplifying the color extraction color card generation flow.
[0080] In some embodiments, step 302 includes identifying the color information of the entire color extraction image by a predetermined color recognition algorithm, based on any of the above embodiments.
[0081] In this embodiment, multiple different color recognition algorithms can be pre-configured to perform color recognition operations on color-extracted images. In actual applications, the user can select one or more of these color recognition algorithms to perform color recognition operations according to their specific needs.
[0082] In some embodiments, a given color recognition algorithm includes, but is not limited to, intelligent classification, intelligent clustering, hyperpixel, and perceptual weighting. In some embodiments, intelligent classification refers to and optimizes the Haishoku method according to the RGB color space. This automatically divides categories based on the maximum and minimum values of the RGB channels of the color-extracted image and calculates the average output for each. Intelligent clustering clusters colors in the color-extracted image using the K-means algorithm according to a specified number of color extractions, using the center of each cluster as the representative value for each color. Hyperpixel uses each color block as the minimum computational unit for color. Hyperpixel computation can be used as a submodule of other color extraction algorithms. Perceptual weighting assigns higher weights to colors with higher saturation and brightness and can be used as a submodule of other color extraction algorithms.
[0083] After obtaining a color-extracted image, the color information of the entire color-extracted image can be identified using a color recognition algorithm.
[0084] The image processing method provided by this embodiment can accurately determine the color information corresponding to a color-extracted image by pre-setting a color recognition algorithm and performing a global color recognition operation based on the color recognition algorithm.
[0085] In some embodiments, based on any of the above embodiments, step 303 includes identifying a foreground region, a background region, and a text region in the color extraction image, and performing an identification operation on the colors corresponding to the foreground region, the background region, and the text region, respectively, using a predetermined color identification algorithm, to obtain the identification result.
[0086] Step 304 includes generating a color extraction color card corresponding to the color extraction image based on the colors corresponding to the foreground region, background region, and text content in the identification result.
[0087] In this embodiment, the color extraction image may include a foreground area, a background area, and text content. For example, the foreground area may display an image of a predetermined object, and the text content may be a text description corresponding to the object. The background area may display a background image having a texture.
[0088] To achieve accurate identification of image colors, a predetermined color identification algorithm is used to perform identification operations on the colors corresponding to the foreground, background, and text content, respectively, and identification results can be obtained. Based on the color determination colors corresponding to the foreground, background, and text content in the identification results, color cards for color extraction are extracted from the image.
[0089] In some embodiments, generating a color extraction color card corresponding to the color extraction image based on the colors corresponding to the foreground region, background region, and text content in the identification result, based on any of the above embodiments, includes determining at least one target color among the colors corresponding to the foreground region, background region, and text content whose proportion exceeds a predetermined proportion threshold, and generating a corresponding color extraction color card in the color extraction image based on the at least one target color.
[0090] In this embodiment, at least one target color whose proportion exceeds a predetermined proportion threshold can be selected from the colors corresponding to the foreground area, background area, and text content, respectively, as a color extraction color card corresponding to the color extraction image. In some embodiments, the at least one target color whose proportion exceeds a predetermined proportion threshold may specifically be the single target color with the largest proportion. Alternatively, the colors corresponding to the comparison foreground area, background area, and text content can be sorted according to their color share ratio, and the top N colors in the sort can be used as color information in the color extraction image. The present invention is not limited thereto.
[0091] Furthermore, based on any of the above embodiments, the decorative material includes background decoration and text decoration. Step 104 includes switching the color of the background decoration to a color corresponding to the foreground area. Switching the color of the text decoration to a color corresponding to the text content to obtain the target image.
[0092] In this embodiment, after determining the colors corresponding to the foreground area, background area, and text content, a color adjustment operation is performed based on the colors corresponding to the background area and text content. In some embodiments, the color of the background decoration can be switched to the color corresponding to the foreground area. The color of the text decoration is switched to the color corresponding to the text content to obtain the target image.
[0093] The image processing method provided by this embodiment performs identification operations on the colors corresponding to the foreground area, background area, and text content, respectively, and extracts color extraction color cards corresponding to the image based on the color determination colors corresponding to the foreground area, background area, and text content in the identification results, thereby improving the accuracy of generating color extraction color cards.
[0094] In some embodiments, step 302 includes determining the deletion area determined by the user based on the color extraction image, based on any of the above embodiments. A predetermined color recognition algorithm identifies the color information of the areas in the color extraction image other than the deletion area.
[0095] In this embodiment, the color-extracted image may contain some areas whose colors do not meet the user's personalization needs. Therefore, the user can determine the areas to be deleted according to their actual needs. For example, the user can determine these areas to be deleted by performing a smearing operation on the color-extracted image. Taking the example that the color-extracted image is a person's image, the user can determine areas such as skin and hair as areas to be deleted.
[0096] Furthermore, after determining the deletion area, the deletion operation can be performed on the deletion area within the color-extracted image. The color information of areas other than the deletion area is identified, and the corresponding color information is obtained from the color-extracted image.
[0097] The image processing method provided by this embodiment identifies the color information of areas other than the deletion area in the color-extracted image using a color recognition algorithm, thereby allowing the identified color information of the color-extracted image to better match the user's personalization needs.
[0098] Figure 6 is a schematic flowchart of an image processing method provided by another embodiment of the present invention, wherein, based on any of the above embodiments, the color processing page further includes color coordination controls. Following step 102, the following steps are further included.
[0099] In step 601, in response to the user's trigger operation on the color coordination control, a template content corresponding to the image to be processed is determined.
[0100] In step 602, a template color card corresponding to the template content is determined, and in some embodiments, the template color card includes at least one color corresponding to the template content.
[0101] In step 603, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the template color card to obtain the target image.
[0102] In this embodiment, the image to be processed may be generated based on image materials generated by the user and predetermined template content. To perform color adjustment operations on the image to be processed, the color processing page further includes a color coordination control. Based on the color coordination control, a template color card for color coordination can be determined based on the template content, and the color adjustment operation can be performed based on the template color card.
[0103] In some embodiments, in response to a user trigger operation on a color coordination control, template content corresponding to the image to be processed is determined. A template color card corresponding to the template content is determined, and in some embodiments, the template color card contains at least one color corresponding to the template content. In some embodiments, the color identification operation of the template color card can be implemented using any of the color identification methods described above. Based on the template color card, an adjustment operation is performed on the color of the decorative material associated with the image to be processed to obtain the target image.
[0104] Furthermore, based on any of the above embodiments, step 104 includes determining a first color mode corresponding to the image to be processed. The image to be processed is then adjusted from the first color mode to the second color mode.
[0105] In the second color mode, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0106] In this embodiment, since the image to be processed includes text decoration, the contrast between the text decoration and the background display content can be increased to make the text decoration stand out more. To achieve the above-mentioned contrast adjustment, a first color mode corresponding to the image to be processed can be determined. The image to be processed is adjusted from the first color mode to the second color mode. For example, the image to be processed may be in RGB mode, and an RGB image to be processed can be converted to LAB mode. In the second color mode, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the target color card to obtain the target image.
[0107] The image processing method provided by this embodiment allows for the pre-setting of color coordination controls, enabling rapid image color adjustment operations based on a template color card of the image to be processed, thereby simplifying the image processing process and obtaining high-quality image processing effects based on the template color card.
[0108] Figure 7 is a schematic diagram of the structure of an image processing apparatus provided by an embodiment of the present invention, which, as shown in Figure 7, comprises a display module 71, a display module 72, a determination module 73, and an adjustment module 74. In some embodiments, the display module 71 is used to display an image processing page, which in some embodiments includes an image to be processed and predetermined processing controls, the image to be processed consisting of at least one image material and decorative materials. The display module 72 is configured to display a color processing page in response to a trigger operation on the processing controls, which in some embodiments includes at least one color processing category, and at least some color processing categories include at least one color card consisting of different colors. The determination module 73 is used to determine a target color card selected by the user in response to a selection operation on the color processing page. The adjustment module 74 is used to perform an adjustment operation on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0109] Furthermore, based on any of the above embodiments, the color processing page further includes a color card addition control. The device further includes a display module for entering a color card color extraction page in response to a trigger operation on the color card addition control, and in some embodiments, the color card color extraction page includes an image upload control. An acquisition module is used to acquire a color extraction image in response to a trigger operation on the image upload control. An identification module is used to identify the color information in the color extraction image. A generation module is used to generate a color extraction color card based on the identification result of the color information. A display module is used to display the color extraction color card on the color processing page.
[0110] Furthermore, based on any of the above embodiments, the apparatus further comprises a display module for displaying the color extraction image in a first display area of the color card color extraction page and for displaying the color extraction color card associated with the color extraction image in a second display area of the color card color extraction page.
[0111] Furthermore, based on any of the above embodiments, the first display area further includes a predetermined switching control. The device further includes an acquisition module for acquiring a color extraction switching image in response to a trigger operation on the switching control, and for switching and displaying the color extraction switching image within the first display area. An identification module is used to identify color information within the color extraction switching image and to display a color extraction color card of the color extraction switching image within the second display area.
[0112] Furthermore, based on any of the above embodiments, the identification module is used to identify the foreground region, background region, and text region in the color extraction image, and to perform identification operations on the colors corresponding to the foreground region, background region, and text region, respectively, using a predetermined color identification algorithm, in order to obtain the identification result. The generation module is used to generate a color extraction color card corresponding to the color extraction image based on the colors corresponding to the foreground region, background region, and text content in the identification result.
[0113] Furthermore, based on any of the above embodiments, the generation module is used to determine at least one target color among the colors corresponding to the foreground area, background area, and text content, in which the proportion of the color exceeds a predetermined proportion threshold, and to generate the corresponding color extraction color card in the color extraction image based on the at least one target color.
[0114] Furthermore, based on any of the above embodiments, the decorative material includes background decoration and text decoration. The adjustment module is used to switch the color of the background decoration to a color corresponding to the background area, and to switch the color of the text decoration to a color corresponding to the text content, in order to obtain the target image.
[0115] Furthermore, based on any of the above embodiments, the identification module is used to determine the deletion region determined by the user based on the color extraction image and to identify the color information of the region other than the deletion region in the color extraction image using a predetermined color identification algorithm.
[0116] Furthermore, based on any of the above embodiments, the apparatus further comprises a switching module for switching and displaying color cards corresponding to different color processing categories in response to the user's sliding operation in a predetermined direction within the color processing page.
[0117] Furthermore, based on any of the above embodiments, the color processing page further includes a color coordination control. The apparatus further includes a determination module for determining template content corresponding to the image to be processed in response to the user's trigger operation on the color coordination control. The determination module is further used to determine a template color card corresponding to the template content, and in some embodiments, the template color card includes at least one color corresponding to the template content. An adjustment module is used to perform adjustment operations on the color of the decorative material associated with the image to be processed based on the template color card to obtain a target image.
[0118] Furthermore, based on any of the above embodiments, the adjustment module is used to determine a first color mode corresponding to the image to be processed. The image to be processed is adjusted from the first color mode to a second color mode. In the second color mode, an adjustment operation is performed on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0119] The device provided by this embodiment can be used to implement the technical solution of the embodiment of the above method, the implementation principle and technical effect thereof are similar and will not be described again in this embodiment.
[0120] To realize the above embodiment, the embodiment of the present invention further provides an electronic device comprising a processor and memory,
[0121] The aforementioned memory stores computer execution instructions,
[0122] The processor executes the image processing method described in any of the above embodiments by executing computer execution instructions stored in the memory.
[0123] Figure 8 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, and as shown in Figure 8, the electronic device 800 may be a terminal device or a server. Here, terminal devices may include, but are not limited to, mobile devices such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 8 is merely an example and does not limit the functions and scope of use of the embodiments of the present invention.
[0124] As shown in Figure 8, the electronic device 800 may include a processor (e.g., a central processing unit, graphics processor, etc.) 801 capable of performing various appropriate operations and processes based on a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 further stores various programs and data necessary for the operation of the electronic device 800. The processor 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0125] Typically, devices such as input devices 806 including touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, and gyroscopes; output devices 807 including liquid crystal displays (LCDs), speakers, and vibrators; storage devices 808 including magnetic tape and hard disks; and communication devices 808 may be connected to the I / O interface 805. The communication devices 808 can enable the electronic device 800 to communicate wirelessly or via wired connections to exchange data with other devices. While the drawings show the electronic device 800 with various devices, it should be understood that it is not necessary to implement or have all of the shown devices. More or fewer devices may be implemented or have been included as alternatives.
[0126] In particular, according to embodiments of the present invention, the process described with reference to the flowchart above may be implemented as a computer software program. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such embodiments, the computer program may be downloaded and installed from a network via a communication device 808, or installed from a storage device 808 or ROM 802. When the computer program is executed by the processor 801, the above-described functions, limited to the method of embodiments of the present invention, are performed.
[0127] It should be noted that the computer-readable medium described above in the present invention may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above. The computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage mediums may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, the computer-readable storage medium may be a tangible medium containing or storing a program that can be used in combination with an instruction execution system, apparatus, or device. Also in the present invention, the computer-readable signal medium may contain data signals propagated in the baseband or as part of a carrier carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination described above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium for transmitting, propagating, or transmitting programs for use by or in combination with instruction execution systems, apparatuses, or devices. Program code contained in a computer-readable medium can be transmitted using any suitable medium, including but not limited to wired, fiber optic cables, RF (radio frequency), or any suitable combination described above.
[0128] To realize the above embodiments, the embodiments of the present invention further provide a computer-readable storage medium in which computer execution instructions are stored, and when the computer execution instructions are executed by a processor, the image processing method described in any of the above embodiments is realized.
[0129] To realize the above embodiments, the embodiments of the present invention further provide a computer program product including a computer program, wherein when the computer program is executed by a processor, the image processing method described in any of the above embodiments is realized.
[0130] The computer-readable medium described above may be included in the electronic device described above, or it may exist separately and not be assembled in the electronic device.
[0131] The computer-readable medium described above contains one or more programs, and when one or more of these programs are executed by the electronic device, the electronic device is made to perform the method shown in the above embodiment.
[0132] Computer program code for performing the operations of the present invention can be written in one or more programming languages or a combination thereof, and the aforementioned programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may run entirely on the user's computer, partially on the user's computer, run as a standalone software package, run partially on the user's computer and partially on a remote computer, or run entirely on a remote computer or server. If a remote computer is involved, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (for example, connected via the Internet using an Internet service provider).
[0133] The flowcharts and block diagrams in the drawings illustrate implementable architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. From this perspective, each box in a flowchart or block diagram may contain one or more executable instructions for implementing a specified logical function and may represent a module, program segment, or part of code. It should also be noted that in some alternative implementations, the functions shown within a box may occur in a different order than shown in the drawings. For example, two boxes shown consecutively may actually be executed substantially in parallel, or, depending on the functions involved, in reverse order. It should also be noted that each box in a block diagram and / or flowchart, and combinations of boxes in a block diagram and / or flowchart, may be implemented in a dedicated hardware-based system that performs the specified function or operation, or in a combination of dedicated hardware and computer instructions.
[0134] The units described as being involved in embodiments of the present invention may be implemented by software or by hardware. In this context, the names of the units do not constitute a limitation of the unit itself in any particular case; for example, the first acquisition unit may be further described as "a unit for acquiring at least two Internet Protocol addresses."
[0135] The functions described herein may be performed, at least in part, by one or more hardware logic components. For example, non-limiting exemplary types of hardware logic components that may be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standards (ASSPs), systems-on-a-chip (SOCs), and composite programmable logic devices (CPLDs).
[0136] In the context of the present invention, a machine-readable medium may be a tangible medium that contains or can store a program that can be used by an instruction execution system, apparatus, or device in combination with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0137] The above description represents preferred embodiments of the present invention and merely describes the applicable technical principles. Those skilled in the art should understand that the scope of the invention as described herein is not limited to technical solutions formed by specific combinations of the above technical features, but also includes other technical solutions formed by any combination of the above technical features or equivalent features without departing from the concept of the invention. For example, it should be understood that this also includes technical solutions formed by switching between the above features and similar functional technical features disclosed herein (but not limited to these).
[0138] Furthermore, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed sequentially in a specific order or sequence shown. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the invention. Certain features described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment can also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0139] While this subject matter has been described in terms specific to the structural features and / or the logical operation of the method, it should be understood that the subject matter limited in the attached claims is not necessarily limited to the specific features or operations described above. Conversely, the specific features and operations described above are merely illustrative forms of realizing the claims.
Claims
1. Displaying an image processing page, wherein the image processing page includes an image to be processed and predetermined processing controls, and the image to be processed is composed of at least one image material and decorative materials. In response to a trigger operation on the processing control, a color processing page is displayed, wherein the color processing page includes at least one color processing category, and at least some of the color processing categories include at least one color card consisting of different colors. In response to the selection operation on the aforementioned color processing page, the system determines the target color card selected by the user, This includes performing an adjustment operation on the color of the decorative material associated with the image to be processed based on the target color card, in order to obtain a target image. Image processing methods.
2. The aforementioned color processing page further includes a color card addition control, In response to a trigger operation on the color card addition control, the system enters the color card color extraction page, which includes an image upload control. In response to a trigger operation on the aforementioned image upload control, a color-extracted image is obtained. Identify the color information within the aforementioned color extraction image, Based on the identification result of the aforementioned color information, a color extraction color card is generated. The color extraction color card is displayed on the aforementioned color processing page. The image processing method according to claim 1.
3. The color extraction image is displayed in a first display area on the color card color extraction page, and the color extraction color card associated with the color extraction image is displayed in a second display area on the color card color extraction page. The image processing method according to claim 2.
4. The first display area further includes a predetermined switching control, In response to a trigger operation for the switching control, a color extraction switching image is acquired, and the color extraction switching image is switched and displayed within the first display area. The further includes identifying the color information within the color extraction switching image and displaying the color extraction color card of the color extraction switching image within the second display area. The image processing method according to claim 3.
5. Identifying the color information within the aforementioned color-extracted image means that Identifying the foreground region, background region, and text region within the aforementioned color extraction image, This includes performing an identification operation on the colors corresponding to the foreground area, the background area, and the text area using a predetermined color identification algorithm, and obtaining the identification result, Based on the identification result of the aforementioned color information, generating a color extraction color card is: This includes generating a color extraction color card corresponding to the color extraction image based on the colors corresponding to the foreground region, background region, and text content in the identification result, The image processing method according to claim 2.
6. Generating a color extraction color card corresponding to the color extraction image based on the colors corresponding to the foreground region, background region, and text content in the identification result is: To determine at least one target color among the colors corresponding to the foreground area, background area, and text content, in which the proportion of the color exceeds a predetermined proportion threshold, This includes generating a corresponding color extraction color card in the color extraction image based on the at least one target color, The image processing method according to claim 5.
7. The aforementioned decorative material includes background decoration and text decoration. To obtain a target image by performing adjustment operations on the color of the decorative material associated with the image to be processed, based on the target color card, Switching the color of the background decoration to the color corresponding to the background area, This includes switching the color of the text decoration to a color corresponding to the text content and obtaining the target image. The image processing method according to claim 5.
8. Identifying the color information within the aforementioned color-extracted image means that Based on the color extraction image, the deletion area determined by the user is determined, This includes identifying the color information of the region of the color extraction image other than the deletion region using a predetermined color recognition algorithm, The image processing method according to claim 2.
9. In response to a user trigger operation on the aforementioned processing control, after displaying a predetermined color processing page, The further includes switching and displaying color cards corresponding to different color processing categories in response to the user's sliding operation in a predetermined direction within the color processing page, The image processing method according to any one of claims 1 to 8.
10. The color processing page further includes color coordination controls, In response to a user trigger operation on the aforementioned processing control, after displaying a predetermined color processing page, In response to the user's trigger operation on the color coordination control, the template content corresponding to the image to be processed is determined, The process involves determining a template color card corresponding to the template content, wherein the template color card includes at least one color corresponding to the template content. The further includes performing adjustment operations on the color of the decorative material associated with the image to be processed based on the template color card to obtain a target image, The image processing method according to any one of claims 1 to 8.
11. To obtain a target image by performing adjustment operations on the color of the decorative material associated with the image to be processed, based on the target color card, Determining the first color mode corresponding to the image to be processed, The process involves adjusting the image to be processed from the first color mode to the second color mode. In the second color mode, the process includes performing an adjustment operation on the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image. The image processing method according to any one of claims 1 to 8.
12. A display module for displaying an image processing page, wherein the image processing page includes an image to be processed and predetermined processing controls, and the image to be processed is composed of at least one image material and decorative materials, and the display module A display module for displaying a color processing page in response to a trigger operation on the processing control, wherein the color processing page includes at least one color processing category, and at least some of the color processing categories include at least one color card consisting of different colors, A decision module for determining the target color card selected by the user in response to the user's selection operation on the color processing page, The system includes an adjustment module for performing adjustment operations on the color of decorative materials associated with the image to be processed based on the target color card, in order to obtain a target image. Image processing device.
13. An electronic device comprising a processor and memory, The aforementioned memory stores computer execution instructions, The processor causes the processor to execute the image processing method described in any one of claims 1 to 11 by executing computer execution instructions stored in the memory. electronic equipment.
14. Computer execution instructions are stored, and when the computer execution instructions are executed by the processor, the image processing method described in any one of claims 1 to 11 is realized. Computer-readable storage medium.
15. The computer program includes, when executed by a processor, a computer program that implements the image processing method described in any one of claims 1 to 11. Computer program products.