Image processing method and apparatus, device, computer readable storage medium, and product
Patent Information
- Application Number
- PCT/CN2024/094313
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-23
- Filing Date
- 2024-05-20
- Publication Date
- 2024-11-28
Smart Images

Figure CN2024094313_28112024_PF_FP_ABST
Abstract
Description
Image processing method, device, equipment, computer-readable storage medium and product
[0001] This application claims priority to the Chinese invention patent application entitled “Image processing methods, devices, equipment, computer-readable storage media and products” filed on May 23, 2023, with application number 2023105937221, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present disclosure 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 obtain a better display effect of the image, the 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 partial areas of the entire image one by one based on the color selected by the user, resulting in a relatively simple image processing effect and the inability to achieve color matching effects for different materials in the entire image.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide an image processing method, apparatus, device, computer-readable storage medium, and product, which are used to solve the technical problem that existing image color adjustment methods have relatively single adjustment effects.
[0007] In a first aspect, an embodiment of the present disclosure provides an image processing method, comprising: displaying an image processing page, wherein the image processing page includes an image to be processed and a preset processing control, and the image to be processed is composed of at least one image material and a decorative material; in response to a triggering operation on the processing control, displaying a color processing page, 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 composed of different colors; in response to a selection operation on the color processing page, determining a target color card selected by the user; and adjusting 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 second aspect, an embodiment of the present disclosure provides an image processing device, comprising: a display module for displaying an image processing page, wherein the image processing page includes an image to be processed and a preset processing control, and the image to be processed is composed of at least one image material and a decorative material; a display module for displaying a color processing page in response to a triggering 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 composed of different colors; a determination module for determining a target color card selected by the user in response to a selection operation of the user on the color processing page; and an adjustment module for adjusting the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0009] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the image processing method described in the first aspect and various possible designs of the first aspect.
[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0011] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image processing method described in the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0013] FIG1 is a schematic diagram of a flow chart of an image processing method provided by an embodiment of the present disclosure;
[0014] FIG2 is a schematic diagram of an interface interaction provided by an embodiment of the present disclosure;
[0015] FIG3 is a schematic flow chart of an image processing method provided by yet another embodiment of the present disclosure;
[0016] FIG4 is another schematic diagram of an interface interaction provided by an embodiment of the present disclosure;
[0017] FIG5 is a schematic diagram of a display interface provided by an embodiment of the present disclosure;
[0018] FIG6 is a schematic flow chart of an image processing method provided by yet another embodiment of the present disclosure;
[0019] FIG7 is a schematic structural diagram of an image processing device provided by an embodiment of the present disclosure;
[0020] FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0022] In order to solve the technical problem that the existing image color adjustment methods have relatively single adjustment effects, the present disclosure provides an image processing method, device, equipment, computer-readable storage medium and product.
[0023] It should be noted that the image processing method, apparatus, device, computer-readable storage medium, and product provided by the present disclosure can be applied to any application scenario of performing local color adjustment on an image.
[0024] Current image color processing methods generally require users to select corresponding filters based on actual needs to perform global color processing on the image. However, the resulting image display effects often fail to meet the user's personalized needs.
[0025] In the process of solving the above-mentioned technical problems, the inventors discovered through research that, when the image to be processed includes both image material and decorative material, in order to achieve targeted color adjustments to the decorative material and to make the color adjustment results more tailored to the user's personalized needs, multiple different color processing categories can be pre-set. Each color processing category includes at least one color card composed of different colors. This allows the user to select a corresponding target color card based on actual needs and perform color adjustments on the decorative material based on the target color card. In some embodiments, the color combinations in the target color card can be harmonious colors, so that color adjustments based on the target color card can improve the display effect of the target image.
[0026] Furthermore, the image to be processed and the processing controls can be displayed on the image processing page. In response to a user triggering the processing controls, a preset color processing page is displayed, displaying the multiple color swatches described above. In response to a user selection on the color processing page, a target color swatch selected by the user is determined. Based on the target color swatch, the color of the decorative material associated with the image to be processed is adjusted to obtain the target image. This allows users to adjust image color through simple interface interaction, improving the efficiency of image color adjustment.
[0027] FIG1 is a flow chart of an image processing method provided by an embodiment of the present disclosure. As shown in FIG1 , the method includes:
[0028] Step 101: Display an image processing page. In some embodiments, the image processing page includes an image to be processed and preset processing controls. The image to be processed is composed of at least one image material and a decoration material.
[0029] The execution subject of this embodiment is an image processing device, which can be coupled to a terminal device to adjust the image color based on a user-triggered operation on the terminal device. In some embodiments, the image processing device can also be coupled to a server. The server can communicate with the terminal device to obtain the image processing operation triggered by the user on the terminal device, adjust the image color based on the image processing operation, and control the terminal device to display the adjusted target image.
[0030] In this embodiment, the display interface may display an image processing page. In some embodiments, the image processing page includes an image to be processed and preset processing controls. The image to be processed may be selected by the user on the terminal device based on actual needs, or may be automatically generated based on at least one image material provided by the user. In some embodiments, the image to be processed is composed of at least one image material and decorative material, wherein the decorative material includes at least one of a background decoration, a text decoration, and a pattern decoration.
[0031] To tailor the display of processed images to the user's individual needs, the color of the processed image can be adjusted based on the user's actual needs after the image is obtained. Therefore, processing controls can be pre-set within the image processing page, and users can perform image processing operations based on these processing controls.
[0032] For example, the image to be processed may be a poster of an item. The poster may include at least one image of the item and a text description of the item. Furthermore, to enhance the image quality, the poster may also include decorative patterns and other content.
[0033] Step 102: In response to the triggering operation of the processing control, display a color processing page. 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 composed of different colors.
[0034] In this embodiment, after the image processing page is displayed, in response to the user triggering the processing control in the image processing page, a color processing page can be displayed. In the color processing page, the user can adjust the color of the image to be processed.
[0035] The color processing page may include at least one color processing category, and at least some of the color processing categories include at least one color card composed of different colors.
[0036] For example, the color processing categories may include a gradient color category, a user's most recently used color processing category, and a recommended color processing category. In some embodiments, the gradient color category may include color swatches composed of gradient colors corresponding to different colors. The most recently used color processing category may include at least one color swatch used by the user within a preset timeframe. The recommended color processing category may include recommended color swatches composed of a plurality of preset harmonious colors.
[0037] Step 103: In response to the user's selection operation on the color processing page, determine the target color card selected by the user.
[0038] In this embodiment, the user can select at least one color processing category according to actual needs to determine the target color card.
[0039] In some embodiments, the user can determine the target color card by performing a preset trigger operation on any color card. In some embodiments, the preset trigger operation includes but is not limited to single click, double click, long press, etc.
[0040] Step 104 : Adjust the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0041] In this embodiment, after the target color card is determined, the color of the decorative material associated with the image to be processed can be adjusted based on the target color card to obtain the target image.
[0042] Continuing with the previous example, if the image being processed is a poster, the background color, text decoration color, and pattern decoration color can be adjusted to the colors in the target color palette selected by the user, without adjusting the image material. This allows for quick color adjustments of decorative materials, ensuring that the adjustment results are more personalized to the user's needs.
[0043] Furthermore, based on any of the above embodiments, after step 102, the following steps may be further included:
[0044] In response to the user's sliding operation in a preset direction within the color processing page, color cards corresponding to different color processing categories are switched and displayed.
[0045] In this embodiment, there can be multiple color processing categories, not all of which can be displayed on the color processing page. Therefore, to enable viewing of color swatches corresponding to more color processing categories, the color processing page can be switched to display color swatches corresponding to different color processing categories in response to a user's swiping operation in a preset direction. This allows users to flexibly switch the page display content based on their actual needs.
[0046] FIG2 is a schematic diagram of an interface interaction provided by an embodiment of the present disclosure. As shown in FIG2 , an image processing page 21 may display an image 22 to be processed and preset processing controls 23. In response to a user triggering a 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, and each color processing category 25 includes at least one color swatch 26 composed of different colors. The user can switch between color processing categories 25 by swiping up or down or left or right within the color processing page 24.
[0047] The image processing method provided in this embodiment can display a color processing page by triggering a preset processing control within the image processing page. This color processing page displays multiple color processing categories. In some embodiments, at least some of these color processing categories correspond to color swatches. This allows users to select a target color swatch based on their actual needs and make targeted adjustments to the decorative materials in the image being processed based on at least one color in that target color swatch. This optimizes the display effect of the adjusted target image and allows color adjustments to better meet the user's personalized needs. Furthermore, users can adjust image colors through simple interface interactions, improving the efficiency of image color adjustment.
[0048] FIG3 is a flow chart of an image processing method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the color processing page further includes a color card adding control. As shown in FIG3, after step 102, the method further includes:
[0049] Step 301: In response to a triggering operation of adding a control to the color card, a color card color selection page is entered. In some embodiments, the color card color selection page includes a picture upload control.
[0050] Step 302: In response to the triggering operation of the image upload control, a color-selected image is obtained.
[0051] Step 303: Identify the color information in the color-selected image.
[0052] Step 304: Generate a color card based on the recognition result of the color information.
[0053] Step 305: Display the color card on the color processing page.
[0054] In this embodiment, the color swatch processing category may specifically include a first color processing category. In some embodiments, the first color category may include a color swatch corresponding to a user-generated image. Thus, based on the color swatch corresponding to the first color processing category, the color of the image to be processed can be adjusted to the color corresponding to the user-generated image.
[0055] In some embodiments, the color processing page also includes a color swatch add control. In response to a user triggering the color swatch add control, a user-generated color image is acquired. In some embodiments, the color image can be captured in real time by the user or uploaded by the user from a preset storage path, which is not limited in this disclosure.
[0056] Furthermore, after acquiring the color-picked image, the color information in the color-picked image can be identified to obtain an identification result. A color-picked color card corresponding to the color-picked image is generated based on the identification result, and the color-picked color card corresponding to the color-picked image is displayed on the color processing page.
[0057] As one practicable approach, to enable the addition of a color swatch in the first color processing category, a color swatch addition page can be displayed in response to a user triggering a color swatch addition control. In some embodiments, the color swatch addition page displays a color wheel, a hue slider, a color value input control, and a color display control. The user can customize different colors based on the hue slider and color value input control. A customized color swatch is generated based on at least one user-defined color.
[0058] The image processing method provided in this embodiment responds to a user's triggering operation on an add control, obtains a user-generated color image, and generates a color swatch based on the color image. This allows the user to adjust the color of the image being processed to match the color image. This allows the display of the adjusted target image to better meet the user's personalized needs. This eliminates the need for the user to manually match colors, allowing for rapid image color adjustment.
[0059] Furthermore, based on any of the above embodiments, after step 302, the following steps may be further included:
[0060] The first display area in the color card color picking page displays the color picking image, and the second display area in the color card color picking page displays the color picking color card associated with the color picking image.
[0061] In this embodiment, to allow the user to more intuitively view the currently generated color-picking image and its associated color information on the display interface, a preset color card color-picking page can be displayed after color recognition of the color-picking image. The first display area of the color card color-picking page displays the color-picking image, and the second display area of the color card color-picking page displays the color-picking color card associated with the color-picking image.
[0062] In some embodiments, the first display area and the second display area can be distributed left and right, or up and down, or the second display area can be displayed in the first display area in a picture-in-picture manner. The display sizes of the first display area and the second display area can be the same, or the display size of the second display area can be smaller than the first display size. As an implementable method, the user can adjust the display position and display size of the first display area and the second display area according to actual needs. The present disclosure does not limit the display position and display size of the first display area and the second display area.
[0063] FIG4 is another schematic diagram of an interface interaction provided by an embodiment of the present disclosure. As shown in FIG4 , a color processing page 41 includes a color swatch add control 42 associated with a first color processing category. In response to a user triggering color swatch add control 42, a user-generated color image 43 is obtained. The color information in color image 43 is identified. The color image 43 is displayed in the first display area of a color swatch color page 44, and a color swatch 45 associated with the color image is displayed in the second display area of the color swatch color page 44.
[0064] The image processing method provided in this embodiment displays the color picking image in the first display area of the color card color picking page, and displays the color picking color card associated with the color picking image in the second display area of the color card color picking page, so that the user can more intuitively view the currently generated color picking image and its associated color picking color card on the display interface, thereby improving the user experience.
[0065] Furthermore, based on any of the above embodiments, the first display area further includes a preset switching control. The method further includes: in response to a triggering operation on the switching control, obtaining a color replacement image, switching to display the color replacement image in the first display area; identifying color information in the color replacement image, and displaying a color palette of the color replacement image in the second display area.
[0066] In this embodiment, after performing color recognition on the color picking image and obtaining its corresponding color picking color card, the user can switch the color picking image according to actual needs, so that the ultimately generated color picking color card better meets the user's personalized needs.
[0067] In some embodiments, the first display area further includes a preset toggle control. In response to a user triggering the toggle control, a user-generated color replacement image can be obtained and displayed in the first display area. In some embodiments, the color replacement image can be captured in real time by the user or selected and uploaded by the user from a preset storage path, which is not limited in this disclosure.
[0068] The color information in the color-picking replacement image is identified, and the color-picking color card in the replacement image is displayed in the second display area. In some embodiments, the color identification method of the replacement image can be the same as the color identification method of the color-picking image, and this disclosure does not limit this.
[0069] The image processing method provided in this embodiment sets a switching control so that the user can more flexibly implement the switching operation of the color picking image based on the switching control, so that the final generated color picking color card is more in line with the user's personalized needs, thereby improving the user experience.
[0070] Further, based on any of the above embodiments, after the second display area in the color card color picking page displays the color picking card associated with the color picking image, it also includes: in response to the user's triggering operation on any target color information in the color picking card, displaying the color editing page associated with the target color information. In some embodiments, the color editing page includes a color wheel, a hue slider, a color value input control, and a color display control.
[0071] In response to an editing operation triggered by the user on the color editing color page based on the hue slider and / or the color value input control, an editing operation is performed on the target color information.
[0072] In this embodiment, for the color palette corresponding to the color-picking image, the user can perform personalized editing operations on any color in the color palette according to actual needs, so that the ultimately generated color palette is more in line with the user's personalized needs.
[0073] In some embodiments, a color editing page associated with any target color information can be displayed in response to a user triggering an operation on the target color information. In some embodiments, the color editing page includes a color wheel, a hue slider, a color value input control, and a color display control. The user can use the hue slider and / or the color value input control to perform color editing operations. The target color information is edited by responding to an edit operation triggered by the user on the color editing page based on the hue slider and / or the color value input control.
[0074] For example, a user can input specific color value information through a color value input control, and the color edited by the user is determined based on the color value information. Alternatively, the user can edit the target color information by sliding the hue slider on the color wheel. Alternatively, the above two implementation methods can be combined. For example, a user can input specific color value information through a color value input control, and the color corresponding to the color value information is displayed on the color wheel. The user can further interact on the color wheel using the slider to determine a color that better meets their personalized needs.
[0075] The image processing method provided in this embodiment displays a color editing page associated with any target color information in a color card based on a user's triggering operation on the target color information, so that the user can perform editing operations on the target color information within the color editing page, making the color information in the color card more in line with the user's actual needs, and thus being able to obtain a better quality image processing effect based on the color card.
[0076] Furthermore, based on any of the above embodiments, the color card color selection page also includes a preset generation control.
[0077] The displaying of the color picking palette on the color processing page includes: displaying the color picking palette on the color processing page in response to a triggering operation of the generating control by the user.
[0078] In this embodiment, the color swatch page also includes a preset generation control. After displaying the color swatch image and its corresponding color swatch, if the current color swatch meets the user's actual needs, the user can trigger the generation control to display the color swatch on the color processing page for selection.
[0079] Figure 5 is a schematic diagram of a display interface provided by an embodiment of the present disclosure. As shown in Figure 5 , a color swatch 51 displays a color image 52 in the first display area, and a color swatch 53 associated with the color image in the second display area. Furthermore, the color swatch 51 includes a preset generation control 54. By triggering generation control 53, the user can display the color swatch on the color processing page for selection.
[0080] The image processing method provided in this embodiment, by pre-setting a generation control, can quickly realize the display operation of the color picking color card on the color processing page based on the generation control, enriching the interactive mode of image processing and simplifying the process of generating the color picking color card.
[0081] In some embodiments, based on any of the above embodiments, step 302 includes: identifying color information of the entire color-selected image using a preset color recognition algorithm.
[0082] In this embodiment, in order to implement the color recognition operation on the color-picked image, a plurality of different color recognition algorithms can be pre-set. In actual application, the user can select one or more color recognition algorithms to perform the color recognition operation according to actual needs.
[0083] In some embodiments, the preset color recognition algorithm includes but is not limited to an intelligent classification method, an intelligent clustering method, a superpixel method, and a perceptual weighting method. In some embodiments, the intelligent classification method refers to the Haishoku method, and is optimized based on the RGB color space. It automatically divides the categories according to the maximum and minimum values of the RGB channels of the color-picking image, and then calculates the mean output respectively. The intelligent clustering method can cluster the colors in the color-picking image using the Kmeans algorithm according to the specified number of colors, and use the center of each cluster as the representative value of each color. The superpixel method uses each color block as the minimum calculation unit of color. Superpixel calculation can be used as a submodule of other color-picking algorithms. The perceptual weighting method gives higher weights to colors with high saturation and brightness, and can be used as a submodule of other color-picking algorithms.
[0084] After the color-selected image is acquired, a color recognition algorithm may be used to recognize the color information of the entire color-selected image.
[0085] The image processing method provided in this embodiment pre-sets a color recognition algorithm and performs a global color recognition operation based on the color recognition algorithm, thereby accurately determining the color information corresponding to the color-selected image.
[0086] In some embodiments, based on any of the above embodiments, step 303 includes: identifying the foreground area, background area and text area in the color-selected image; performing recognition operations on the colors corresponding to the foreground area, the background area and the text area respectively through a preset color recognition algorithm to obtain the recognition result.
[0087] Step 304 includes generating a color palette corresponding to the color-picking image based on the colors corresponding to the foreground area, the background area, and the text content in the recognition result.
[0088] In this embodiment, the color image may include a foreground area, a background area, and text content. For example, the foreground area may display a preset object image, the text content may be a text description of the object, and the background area may display a textured background image.
[0089] To accurately identify the colors of the color-picked image, a preset color recognition algorithm can be used to identify the colors corresponding to the foreground area, background area, and text content, respectively, to obtain a recognition result. A color-picked color card in the color-picked image is determined based on the colors corresponding to the foreground area, background area, and text content in the recognition result.
[0090] In some embodiments, based on any of the above embodiments, the color card corresponding to the color-picking image is generated based on the colors corresponding to the foreground area, background area and text content in the recognition result, including: respectively determining at least one target color whose color proportion exceeds a preset proportion threshold among the colors corresponding to the foreground area, background area and text content; and generating the corresponding color card in the color-picking image based on the at least one target color.
[0091] In this embodiment, at least one target color whose color proportion exceeds a preset ratio threshold can be selected from the colors corresponding to the foreground area, the background area, and the text content as the color card corresponding to the color picking image. In some embodiments, the at least one target color whose color proportion exceeds the preset ratio threshold can specifically be a target color with the largest color proportion. Alternatively, the colors corresponding to the foreground area, the background area, and the text content can be sorted according to the color proportion, and the top N colors in the sorting can be used as the color information in the color picking image. This disclosure does not impose any restrictions on this.
[0092] Furthermore, based on any of the above embodiments, the decoration material includes background decoration and text decoration. Step 104 includes: switching the color of the background decoration to the color corresponding to the foreground area. Switching the color of the text decoration to the color corresponding to the text content to obtain the target image.
[0093] In this embodiment, after determining the colors corresponding to the foreground area, background area, and text content, a color adjustment operation can be 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.
[0094] The image processing method provided in this embodiment performs recognition operations on the colors corresponding to the foreground area, background area and text content respectively, and determines the color card corresponding to the color-picking image based on the colors corresponding to the foreground area, background area and text content in the recognition results, thereby improving the accuracy of color card generation.
[0095] In some embodiments, based on any of the above embodiments, step 302 includes: determining a deletion area determined by the user based on the color-selected image, and identifying color information of areas in the color-selected image other than the deletion area using a preset color recognition algorithm.
[0096] In this embodiment, the color of some areas in the color-selected image may not meet the user's personalized needs. Therefore, the user can select areas to be deleted based on actual needs. For example, the user can select the areas to be deleted by painting on the color-selected image. For example, if the color-selected image is a portrait image, the user can select areas such as skin and hair as areas to be deleted.
[0097] Furthermore, after the deletion area is determined, the deletion area in the color-selected image can be deleted, and the color information of the area other than the deletion area can be identified to obtain the color information corresponding to the color-selected image.
[0098] The image processing method provided in this embodiment uses a color recognition algorithm to identify the color information of areas other than the deleted area in the color-picked image, thereby enabling the color information of the identified color-picked image to better meet the personalized needs of the user.
[0099] FIG6 is a flow chart of an image processing method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the color processing page further includes a color coordination control. After step 102, the method further includes:
[0100] Step 601: In response to the user triggering the color coordination control, determine the template content corresponding to the image to be processed.
[0101] Step 602: Determine a template color card corresponding to the template content. In some embodiments, the template color card includes at least one color corresponding to the template content.
[0102] Step 603: Adjust the color of the decorative material associated with the image to be processed based on the template color card to obtain a target image.
[0103] In this embodiment, the image to be processed can be generated based on user-generated image material and preset template content. To enable color adjustment of the image to be processed, the color processing page also includes a color coordination control. This color coordination control can be used to determine a color-coordinated template color swatch based on the template content, and then perform color adjustment based on this template color swatch.
[0104] In some embodiments, in response to a user triggering a color coordination control, the template content corresponding to the image to be processed is determined. A template color swatch corresponding to the template content is determined. In some embodiments, the template color swatch includes at least one color corresponding to the template content. In some embodiments, the color recognition operation on the template color swatch can be implemented using any of the aforementioned color recognition methods. Based on the template color swatch, the color of the decorative material associated with the image to be processed is adjusted to obtain a target image.
[0105] Further, based on any of the above embodiments, step 104 includes: determining a first color mode corresponding to the image to be processed, and adjusting the image to be processed from the first color mode to a second color mode.
[0106] In the second color mode, the color of the decorative material associated with the image to be processed is adjusted based on the target color card to obtain a target image.
[0107] In this embodiment, since the image to be processed includes text decorations, in order to make the text decorations more eye-catching, the contrast between the text decorations and the underlying display content can be increased. In order 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 can be in RGB mode, and the image to be processed in RGB mode can be converted to LAB mode. In the second color mode, the color of the decorative material associated with the image to be processed is adjusted based on the target color card to obtain the target image.
[0108] The image processing method provided in this embodiment pre-sets a color coordination control so that the image color adjustment operation can be quickly performed based on the template color card of the image to be processed based on the color coordination control, thereby simplifying the image processing process and achieving high-quality image processing effects based on the template color card.
[0109] FIG7 is a schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure. As shown in FIG7 , the device includes: 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. In some embodiments, the image processing page includes an image to be processed and a preset processing control. The image to be processed is composed of at least one image material and a decorative material. The display module 72 is used to display a color processing page in response to a triggering operation on the processing control. 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 composed of different colors. The determination module 73 is used to determine the 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 adjust the color of the decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0110] Furthermore, based on any of the above embodiments, the color processing page also includes a color card adding control. The device also includes: a display module for entering the color card color picking page in response to a triggering operation on the color card adding control. In some embodiments, the color card color picking page includes a picture upload control. An acquisition module for acquiring a color picking image in response to a triggering operation on the picture upload control. An identification module for identifying color information in the color picking image. A generation module for generating a color picking color card based on the identification result of the color information. A display module for displaying the color picking color card in the color processing page.
[0111] Furthermore, based on any of the above embodiments, the device also includes: a display module for displaying the color picking image in the first display area of the color card color picking page, and displaying the color picking color card associated with the color picking image in the second display area of the color card color picking page.
[0112] Furthermore, based on any of the above embodiments, the first display area further includes a preset switching control. The device further includes: an acquisition module for acquiring a color-selected replacement image in response to a triggering operation on the switching control, and switching the display of the color-selected replacement image in the first display area; and an identification module for identifying color information in the color-selected replacement image and displaying a color palette of the color-selected replacement image in the second display area.
[0113] Further, based on any of the above embodiments, the recognition module is used to: identify the foreground area, background area and text area in the color-picked image; perform recognition operations on the colors corresponding to the foreground area, the background area and the text area respectively through a preset color recognition algorithm to obtain the recognition result; the generation module is used to: generate a color card corresponding to the color-picked image based on the colors corresponding to the foreground area, background area and text content in the recognition result.
[0114] Furthermore, based on any of the above embodiments, the generation module is also used to: respectively determine at least one target color whose color proportion exceeds a preset ratio threshold among the colors corresponding to the foreground area, background area and text content; and generate a corresponding color card in the color picking image based on the at least one target color.
[0115] Furthermore, based on any of the above embodiments, the decorative material includes background decoration and text decoration. The adjustment module is configured to: switch the color of the background decoration to a color corresponding to the background area; and switch the color of the text decoration to a color corresponding to the text content, thereby obtaining the target image.
[0116] Furthermore, based on any of the above embodiments, the recognition module is used to: determine the deletion area determined by the user based on the color-selected image; and identify the color information of the area other than the deletion area in the color-selected image through a preset color recognition algorithm.
[0117] Furthermore, based on any of the above embodiments, the device further includes: a switching module for switching and displaying color cards corresponding to different color processing categories in response to a sliding operation of the user in a preset direction within the color processing page.
[0118] 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 configured to determine, in response to a user triggering the color coordination control, the template content corresponding to the image to be processed. The determination module is further configured to determine a template color swatch corresponding to the template content. In some embodiments, the template color swatch includes at least one color corresponding to the template content. An adjustment module is configured to adjust the color of the decorative material associated with the image to be processed based on the template color swatch to obtain a target image.
[0119] Furthermore, based on any of the above embodiments, the adjustment module is configured to: determine a first color mode corresponding to the image to be processed; adjust the image to be processed from the first color mode to a second color mode; and, in the second color mode, adjust the color of a decorative material associated with the image to be processed based on the target color card to obtain a target image.
[0120] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0121] In order to implement the above embodiment, the present disclosure further provides an electronic device, including: a processor and a memory;
[0122] The memory stores computer-executable instructions;
[0123] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the image processing method as described in any of the above embodiments.
[0124] FIG8 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG8 , the electronic device 800 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG8 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0125] As shown in Figure 8, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to 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. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the 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.
[0126] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although FIG8 shows an electronic device 800 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0127] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can 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 computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0128] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or 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, device, or component, or any combination of the above. More specific examples of computer-readable storage media 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 that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of 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 that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0129] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method described in any of the above embodiments is implemented.
[0130] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, which implements the image processing method as described in any of the above embodiments when executed by a processor.
[0131] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0132] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving 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).
[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0135] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0136] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may 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 the like.
[0137] 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 conjunction with an instruction execution system, device or equipment. 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, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, 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 foregoing.
[0138] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the present disclosure is not limited to technical solutions formed by a specific combination of the aforementioned technical features, but also encompasses other technical solutions formed by any combination of the aforementioned technical features or their equivalents, without departing from the scope of the above disclosure. For example, a technical solution formed by replacing the aforementioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0139] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0140] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should 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 processing method, include: Displaying an image processing page, wherein the image processing page includes an image to be processed and a preset processing control, and the image to be processed is composed of at least one image material and a decoration material; In response to a triggering operation on the processing control, displaying a color processing page, wherein the color processing page includes at least one color processing category, and at least part of the color processing categories includes at least one color card composed of different colors; In response to a selection operation on the color processing page, determining a target color card selected by the user; The color of the decorative material associated with the image to be processed is adjusted based on the target color card to obtain a target image.
2. The method according to claim 1, wherein the color processing page further includes a color card adding control; In response to the triggering operation of adding a control to the color card, a color card color selection page is entered. in, The color card color picking page includes a picture upload control; In response to a triggering operation on the image upload control, a color-selected image is acquired; Identifying color information in the color-picking image; Based on the recognition result of the color information, a color card is generated; The color picking color card is displayed in the color processing page.
3. The method according to claim 2, wherein the method further include: The color picking image is displayed in a first display area in the color card color picking page, and the color picking color card associated with the color picking image is displayed in a second display area in the color card color picking page.
4. The method according to claim 3, wherein the first display area further comprises a preset switching control; include: In response to a triggering operation on the switching control, a color-selected replacement image is acquired, and the color-selected replacement image is switched and displayed in the first display area; The color information in the color-changing image is identified and displayed on the second display The area displays a color card for the color-picking replacement image.
5. The method according to claim 2, wherein the color information in the color-picking image is identified. include: Identifying a foreground area, a background area, and a text area in the color-selected image; Recognize the colors corresponding to the foreground area, the background area, and the text area respectively using a preset color recognition algorithm to obtain the recognition result; The step of generating a color card based on the recognition result of the color information includes: A color picking color card corresponding to the color picking image is generated based on the colors corresponding to the foreground area, the background area, and the text content in the recognition result.
6. The method according to claim 5, wherein the color picking color card corresponding to the color picking image is generated based on the colors corresponding to the foreground area, the background area and the text content in the recognition result, include: Determine at least one target color whose color proportion exceeds a preset ratio threshold value among the colors corresponding to the foreground area, the background area, and the text content respectively; A color picking color card corresponding to the color picking image is generated based on the at least one target color.
7. The method according to claim 5, wherein the decoration material includes background decoration and text decoration; The color of the decorative material associated with the image to be processed is adjusted based on the target color card to obtain a target image. include: Switching the color of the background decoration to the color corresponding to the background area; The color of the text decoration is switched to the color corresponding to the text content to obtain the target image.
8. The method according to claim 2, wherein the color information in the color-selected image is identified. include: Determining a deletion area determined by the user based on the color-picked image; The color information of the area other than the deleted area in the color-picked image is identified by a preset color recognition algorithm.
9. The method according to any one of claims 1 to 8, wherein after displaying the preset color processing page in response to the user's triggering operation on the processing control, further include: In response to the user's sliding operation in a preset direction within the color processing page, color cards corresponding to different color processing categories are switched for display.
10. The method according to any one of claims 1 to 8, wherein the color processing page further comprises a color coordination control; After displaying the preset color processing page in response to the user's triggering operation on the processing control, the method further includes: In response to the user's triggering operation on the color coordination control, determining the template content corresponding to the image to be processed; Determine 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 color of the decorative material associated with the image to be processed is adjusted based on the template color card to obtain a target image.
11. The method according to any one of claims 1 to 8, wherein the color of the decorative material associated with the image to be processed is adjusted based on the target color card to obtain a target image, include: Determining a first color mode corresponding to the image to be processed; Adjusting the image to be processed from the first color mode to a second color mode; In the second color mode, the color of the decoration material associated with the image to be processed is adjusted based on the target color card to obtain a target image.
12. An image processing device, include: A display module, used for displaying an image processing page, wherein the image processing page includes an image to be processed and a preset processing control, and the image to be processed is composed of at least one image material and a decoration material; A display module, configured to display a color processing page in response to a triggering operation on the processing control, wherein the color processing page includes at least one color processing category, and at least part of the color processing categories includes at least one color card composed of different colors; A determination module, configured to determine a target color card selected by the user in response to a selection operation of the user on the color processing page; The adjustment module is used to adjust the color of the decoration material associated with the image to be processed based on the target color card to obtain a target image.
13. An electronic device, include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the image processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the image processing method according to any one of claims 1 to 11 is implemented.
15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the image processing method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Image processing method, device and equipment, computer readable storage medium and product
CN116578225A
Image processing method, image processing device, terminal and readable storage medium
CN115035286A
Image color data processing method and device and server
CN115810057A
Method and device for picture generation, electronic device, and storage medium
US20210264191A1
